/* =========================================================
   Eat No Eat — shared stylesheet
   Inspired by the clean, content-first layouts of
   bowtiedbull.io and caanberry.com: white background,
   black type, a bold serif for headlines, a plain sans
   for body copy, and almost no decoration.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --black: #111111;
  --grey: #5a5a5a;
  --light-grey: #8a8a8a;
  --hairline: #e6e3dd;
  --paper: #ffffff;
  --burgundy: #6b1f2a; /* Don K.'s neckerchief — used sparingly */
  --max-width: 1080px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: var(--black);
  text-decoration: none;
}

a.underline-hover:hover,
.post-title a:hover,
.feed-item h2 a:hover,
nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header.site-header {
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand svg { width: 34px; height: 34px; flex-shrink: 0; }

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

nav.site-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  align-items: center;
}

nav.site-nav a.active {
  border-bottom: 2px solid var(--black);
  padding-bottom: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 500;
}

.btn {
  display: inline-block;
  background: var(--black);
  color: var(--paper);
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--black);
}

.btn:hover { background: #000; text-decoration: none; opacity: 0.85; }

.btn.btn-outline {
  background: transparent;
  color: var(--black);
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--hairline);
}

.hero-kicker {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 780px;
}

.hero p.lede {
  font-size: 19px;
  color: var(--grey);
  max-width: 620px;
  margin: 0 0 26px;
}

/* ---------- Layout: feed + sidebar ---------- */

.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  padding-top: 48px;
  padding-bottom: 80px;
  align-items: start;
}

.feed-item {
  display: block;
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline);
}

.feed-item .feed-text { min-width: 0; }

.feed-item h2 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.28;
  margin: 0 0 10px;
}

.feed-item p.excerpt {
  color: var(--grey);
  font-size: 16px;
  margin: 0 0 14px;
}

.feed-meta {
  font-size: 13px;
  color: var(--light-grey);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--burgundy);
}

/* ---------- Sidebar ---------- */

.sidebar-card {
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 28px;
}

.sidebar-card .author-mark {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
}

.sidebar-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 8px;
}

.sidebar-card p {
  font-size: 14.5px;
  color: var(--grey);
  margin: 0 0 18px;
}

.subscribe-row {
  display: flex;
  gap: 8px;
}

.subscribe-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--sans);
  min-width: 0;
}

.sidebar h4.label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-grey);
  margin: 0 0 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-block;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
}

.tag-pill:hover { border-color: var(--black); }

/* ---------- Archive / tag listing pages ---------- */

.archive-empty {
  color: var(--grey);
  font-size: 16px;
  padding: 12px 0 8px;
}

.month-group {
  border-bottom: 1px solid var(--hairline);
}

.month-group summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: 22px;
  padding: 20px 0;
}

.month-group summary::-webkit-details-marker { display: none; }

.month-group summary::after {
  content: "+";
  font-size: 20px;
  font-family: var(--sans);
  color: var(--light-grey);
}

.month-group[open] summary::after {
  content: "–";
}

.month-articles {
  padding-bottom: 8px;
}

.month-article {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.month-article:last-child {
  border-bottom: none;
}

.month-article h2 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  margin: 0;
}

/* ---------- Single post ---------- */

.post-head { padding: 56px 0 32px; border-bottom: 1px solid var(--hairline); }

.post-head .hero-kicker { margin-bottom: 18px; }

.post-head h1 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 20px;
  max-width: 820px;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--grey);
}

.post-byline .author-mark { width: 34px; height: 34px; }

.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  font-size: 18px;
  line-height: 1.75;
}

.post-body p { margin: 0 0 22px; }

.post-body h2 {
  font-family: var(--serif);
  font-size: 27px;
  margin: 40px 0 18px;
}

.post-body blockquote {
  border-left: 3px solid var(--burgundy);
  margin: 32px 0;
  padding: 4px 0 4px 22px;
  font-style: italic;
  color: var(--grey);
}

.editor-note {
  max-width: 720px;
  margin: 0 auto 40px;
  background: #faf7f2;
  border: 1px dashed #d8cfc2;
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--grey);
}

.editor-note strong { color: var(--black); }

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 36px 0 60px;
  font-size: 13.5px;
  color: var(--light-grey);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site-footer nav { display: flex; gap: 20px; }
footer.site-footer nav a { color: var(--light-grey); }
footer.site-footer nav a:hover { color: var(--black); }

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- About page ---------- */

.about-body {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 56px;
  padding-bottom: 80px;
}

.about-body h1 {
  font-family: var(--serif);
  font-size: 40px;
  margin: 0 0 8px;
}

.about-body .role {
  color: var(--burgundy);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.about-body p {
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 22px;
}

.about-portrait {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #111;
  overflow: hidden;
  margin-bottom: 32px;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 40px; }
  .header-row { gap: 28px; }
  nav.site-nav { gap: 20px; }
  .hero h1 { font-size: 34px; }
  .post-head h1, .about-body h1 { font-size: 32px; }
  .about-portrait { max-width: 260px; margin-left: auto; margin-right: auto; }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; max-width: 100%; }

  .header-row { flex-wrap: wrap; row-gap: 10px; gap: 20px; }
  .brand-name { font-size: 19px; }
  nav.site-nav { gap: 16px; font-size: 14px; }

  .hero { padding: 36px 0 28px; }
  .hero h1 { font-size: 27px; }
  .hero p.lede { font-size: 16.5px; }

  .layout { padding-top: 36px; padding-bottom: 56px; gap: 32px; }
  .feed-item { padding: 24px 0; }
  .feed-item h2 { font-size: 21px; }

  .sidebar-card { padding: 18px; }

  .post-head { padding: 40px 0 24px; }
  .post-head h1, .about-body h1 { font-size: 27px; }
  .post-body { padding: 32px 18px 24px; }
  .post-body, .about-body p { font-size: 16.5px; }
  .about-portrait { max-width: 180px; margin-left: auto; margin-right: auto; }

  .footer-row { flex-direction: column; align-items: flex-start; }
}
