/* Gourmet Whiz — Cook it once, cook it right */

:root {
  --accent: #55652e;
  --accent-ink: #3c481f;
  --ink: #21241b;
  --muted: #63675a;
  --line: #e3e4d8;
  --soft: #f6f7f0;
  --ad-bg: #f2f3ea;
  --ground: #ffffff;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Vollkorn", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.68;
}

::selection { background: var(--accent); color: #fff; }

img { max-width: 100%; height: auto; }

a { color: var(--accent); }
a:hover { color: var(--accent-ink); }

h1, h2, h3 {
  font-family: "Alegreya", Georgia, serif;
  color: var(--ink);
  line-height: 1.18;
  margin: 0;
}

.wrap {
  max-width: 1168px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ---------- Masthead ---------- */

.masthead { padding-top: 36px; text-align: center; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand .mark { width: 42px; height: 42px; color: var(--accent); flex: none; }

.brand-name {
  font-family: "Alegreya", Georgia, serif;
  font-weight: 800;
  font-size: clamp(30px, 5.4vw, 44px);
  letter-spacing: 0.01em;
}

.tagline {
  margin: 2px 0 0;
  color: var(--muted);
  font-style: italic;
  font-size: 18px;
}

.site-nav {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 26px;
  padding: 10px 0;
}

.nav-row a {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 2px;
}

.nav-row a:hover { color: var(--accent); }
.nav-row a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* ---------- Page grid ---------- */

main { padding-bottom: 8px; }

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  gap: 40px;
  justify-content: center;
  align-items: start;
  padding-top: 8px;
}

.side-col { display: none; }

@media (min-width: 1168px) {
  .page-grid { grid-template-columns: minmax(0, 780px) 300px; }
  .side-col { display: block; }
}

/* ---------- Advertising placeholders ---------- */

.ad { display: none; margin-inline: auto; }

.ad-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--ad-bg);
  color: #8d9080;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ad-word { pointer-events: none; }

.ad-728x90 .ad-box { width: 728px; height: 90px; }
.ad-468x60 .ad-box { width: 468px; height: 60px; }
.ad-320x50 .ad-box { width: 320px; height: 50px; }
.ad-300x250 .ad-box { width: 300px; height: 250px; }
.ad-300x600 .ad-box { width: 300px; height: 600px; }

.ad-band { margin: 28px 0 6px; text-align: center; }
.ad-band.bottom { margin: 44px 0 12px; }

/* One leaderboard size visible at a time, only when the container fits it whole. */
@media (min-width: 368px) and (max-width: 515px) { .ad-320x50 { display: flex; } }
@media (min-width: 516px) and (max-width: 785px) { .ad-468x60 { display: flex; } }
@media (min-width: 786px) { .ad-728x90 { display: flex; } }

/* Sidebar slots: only where the two-column layout actually exists. */
@media (min-width: 1168px) {
  .ad-300x600.side, .ad-300x250.side { display: flex; }
}

/* In-flow slot for narrow and mid layouts, where the sidebar is absent. */
@media (min-width: 356px) and (max-width: 1167px) {
  .ad-300x250.mid { display: flex; }
}

/* ---------- Shared bits ---------- */

.kicker {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.intro { margin: 30px 0 6px; max-width: 700px; }
.intro p { margin: 0; font-size: 21px; line-height: 1.6; color: var(--ink); }

/* ---------- Lead ---------- */

.lead { margin: 28px 0 6px; }

.lead-link {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.lead-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}

.lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lead-title {
  display: block;
  font-family: "Alegreya", Georgia, serif;
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.15;
  margin-top: 6px;
}

.lead-dek {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

a.lead-link:hover .lead-title { color: var(--accent-ink); }

@media (max-width: 640px) {
  .lead-link { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Cards ---------- */

.topic-block { margin-top: 46px; }

.topic-h {
  font-size: 26px;
  border-top: 2px solid var(--accent);
  padding-top: 14px;
}

.topic-h a { color: var(--ink); text-decoration: none; }
.topic-h a:hover { color: var(--accent); }

.topic-count {
  font-family: "Vollkorn", Georgia, serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--muted);
  margin-left: 10px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 30px;
  margin-top: 18px;
}

@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-text { display: block; padding-top: 12px; }

.card-title {
  display: block;
  font-family: "Alegreya", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  margin-top: 3px;
}

a.card-link:hover .card-title { color: var(--accent-ink); }

.card-dek {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}

/* ---------- Page heads (topic / tag) ---------- */

.page-head { margin: 32px 0 10px; }

.page-head h1 { font-size: clamp(30px, 4vw, 40px); }

.page-sub { margin: 6px 0 0; color: var(--muted); font-size: 16px; }

.back-home { margin: 26px 0 0; font-size: 16px; }

/* ---------- Article ---------- */

.crumbs {
  margin: 26px 0 4px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.crumb-sep { margin: 0 8px; }

.art-head { margin: 16px 0 0; }

.art-head h1 {
  font-size: clamp(31px, 4.6vw, 44px);
  line-height: 1.1;
  margin-top: 6px;
  max-width: 740px;
}

.dek {
  margin: 14px 0 0;
  font-size: 21px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 700px;
}

figure { margin: 30px 0; }

figure img {
  width: auto;
  max-width: 100%;
  max-height: 640px;
  height: auto;
  display: block;
  margin-inline: auto;
  border: 1px solid var(--line);
}

figcaption {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

.credit { color: #8a8d7d; }

.art-body { margin-top: 6px; }

.unit { margin: 0 0 34px; }

.unit + .unit,
.inline-fig + .unit,
.unit + .inline-fig { border-top: 1px solid var(--line); padding-top: 28px; }

.unit h2 {
  font-size: 25px;
  line-height: 1.25;
  margin-bottom: 10px;
  max-width: 680px;
}

.art-body > .unit:first-child > p:first-of-type::first-letter {
  float: left;
  font-family: "Alegreya", Georgia, serif;
  font-weight: 700;
  font-size: 62px;
  line-height: 0.85;
  padding: 5px 10px 0 0;
  color: var(--accent);
}

.unit p { margin: 0 0 18px; max-width: 680px; }
.unit p:last-child { margin-bottom: 0; }

.ad.mid { margin: 36px auto; }

/* ---------- Tags, source note ---------- */

.tag-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.chip {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 6px 12px;
}

.chip:hover { color: var(--accent); border-color: var(--accent); }

.source-note {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--muted);
}

.note-h {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}

.source-note p { margin: 0; }
.source-note a { overflow-wrap: anywhere; }

/* ---------- Related ---------- */

.related {
  margin-top: 42px;
  border-top: 2px solid var(--accent);
  padding-top: 16px;
}

.related-h { font-size: 26px; }

.rel-list { list-style: none; margin: 8px 0 0; padding: 0; }

.rel-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rel-list li:last-child { border-bottom: 0; }

.rel-title {
  font-family: "Alegreya", Georgia, serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  text-decoration: none;
}

a.rel-title:hover { color: var(--accent-ink); text-decoration: underline; }

.rel-dek { display: block; color: var(--muted); font-size: 15.5px; line-height: 1.5; margin-top: 4px; }

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

.side-col .ad { margin-bottom: 26px; }

.side-box {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 18px 20px;
  margin-bottom: 26px;
}

.side-h {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

.side-list { list-style: none; margin: 0; padding: 0; }

.side-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.side-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.side-list a { color: var(--ink); text-decoration: none; font-size: 16px; }
.side-list a:hover { color: var(--accent); }

.side-count { font-size: 14px; color: var(--muted); flex: none; }

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

.site-foot {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 30px;
  font-size: 15.5px;
}

.foot-brand { margin: 0; color: var(--ink); }
.foot-brand em { color: var(--muted); }

.foot-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
}

.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--accent); }
