/* Takk shared stylesheet (homepage, recipe pages, notebook) */
:root {
  --paper: #fdfcfa;
  --ink: #22252a;
  --ink-soft: #61666e;
  --berry: #a03e46;
  --berry-soft: #f6ecec;
  --line: #e7e4de;
  --card: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Google Sans", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 740px; margin: 0 auto; padding: 0 24px; }

/* top nav */
nav.top {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
nav.top .wrap {
  display: flex; align-items: center; gap: 22px;
  padding-top: 16px; padding-bottom: 16px;
}
nav.top .brand {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600; font-size: 19px;
  color: var(--ink); text-decoration: none;
  margin-right: auto;
}
nav.top .brand span { color: var(--berry); }
nav.top a:not(.brand) {
  color: var(--ink-soft); text-decoration: none; font-weight: 500;
}
nav.top a:not(.brand):hover, nav.top a[aria-current="page"] { color: var(--berry); }

/* hero / opening page */
header.hero { padding: 84px 0 60px; text-align: center; }
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 18px;
}
h1 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(38px, 6.5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 em { font-style: italic; color: var(--berry); }

.opening {
  max-width: 620px;
  margin: 34px auto 0;
  text-align: left;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink);
}
.opening p + p { margin-top: 18px; }
.opening .places { font-style: italic; color: var(--ink-soft); }
.opening .closing { font-style: italic; }

.rule { width: 64px; height: 1px; background: var(--line); margin: 0 auto; }

section { padding: 56px 0; }
h2 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(27px, 4vw, 34px);
  margin-bottom: 16px;
}
section > .wrap > p, .lede { max-width: 620px; color: var(--ink-soft); font-size: 16.5px; }

/* recipe collection grid */
.recipes { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.recipe-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.recipe-card:hover { border-color: var(--berry); transform: translateY(-2px); }
.recipe-card .tag {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--berry); margin-bottom: 8px;
}
.recipe-card h3 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600; font-size: 21px; line-height: 1.25;
  margin-bottom: 6px;
}
.recipe-card p { font-size: 14.5px; color: var(--ink-soft); }

/* still-cooking list */
.still-cooking { margin-top: 34px; }
.still-cooking h3 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600; font-style: italic; font-size: 21px;
  margin-bottom: 10px;
}
.still-cooking ul { list-style: none; }
.still-cooking li {
  border-top: 1px dashed var(--line);
  padding: 11px 2px;
  font-size: 15px; color: var(--ink-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.still-cooking li strong { color: var(--ink); font-weight: 500; }
.still-cooking li .why { font-size: 13.5px; }

/* link panels (notebook / design studies) */
.panels { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel {
  display: block;
  background: var(--berry-soft);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
}
.panel:hover h3 { text-decoration: underline; }
.panel h3 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600; font-size: 21px; color: var(--berry);
  margin-bottom: 6px;
}
.panel p { font-size: 14.5px; color: var(--ink-soft); }

.note {
  margin-top: 32px;
  background: var(--berry-soft);
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 15px;
  color: var(--ink-soft);
}
.note strong { color: var(--berry); font-weight: 500; }

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 44px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
}
footer a { color: var(--berry); text-decoration: none; font-weight: 500; }
footer a:hover { text-decoration: underline; }

/* ============ recipe pages ============ */
article.recipe { padding: 56px 0 24px; }
article.recipe .crumb {
  font-size: 13.5px; margin-bottom: 26px;
}
article.recipe .crumb a { color: var(--berry); text-decoration: none; font-weight: 500; }
article.recipe .crumb a:hover { text-decoration: underline; }
article.recipe .tag {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--berry); margin-bottom: 12px;
}
article.recipe h1 { font-size: clamp(34px, 5.5vw, 48px); }
.headnote {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 16px 0 0;
}
.recipe-photo {
  margin: 34px auto 0;
  max-width: 520px;
}
.recipe-photo img {
  display: block; width: 100%; height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.recipe-photo figcaption {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: 15.5px;
  color: var(--ink-soft);
  text-align: center;
  padding: 10px 6px 0;
}
.recipe-body { display: grid; grid-template-columns: 250px 1fr; gap: 40px; margin-top: 42px; }
.ingredients h2, .method h2, .serve h2 {
  font-size: 15px; font-family: "Google Sans", system-ui, sans-serif;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--berry);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px; margin-bottom: 14px;
}
.ingredients ul { list-style: none; }
.ingredients li {
  font-size: 15px; padding: 7px 0;
  border-bottom: 1px dotted var(--line);
}
.ingredients li:last-child { border-bottom: 0; }
.ingredients .subhead {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic; font-weight: 600; font-size: 16.5px;
  color: var(--ink); border-bottom: 0; padding-top: 16px;
}
.method ol { list-style: none; counter-reset: step; }
.method ol li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 46px;
  font-size: 16px;
}
.method ol li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--berry-soft); color: var(--berry);
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600; font-size: 16px;
  display: grid; place-items: center;
}
.method h3 {
  font-size: 16px; font-weight: 600; margin-bottom: 2px;
}
.serve { margin-top: 8px; }
.serve ul { list-style: none; }
.serve li { font-size: 15.5px; padding: 5px 0; }
.margin-note {
  margin-top: 36px;
  border-left: 3px solid var(--berry);
  background: var(--berry-soft);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
}
.margin-note .who {
  display: block; margin-top: 6px;
  font-family: "Google Sans", system-ui, sans-serif;
  font-style: normal; font-size: 12.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--berry); font-weight: 600;
}

/* ============ notebook ============ */
.nb-section { padding: 44px 0; border-top: 1px solid var(--line); }
.nb-section:first-of-type { border-top: 0; }
.nb-section h2 { margin-bottom: 6px; }
.nb-section .sub { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 20px; }
.nb-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 14px;
}
.nb-card h3 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600; font-size: 20px; margin-bottom: 8px;
}
.nb-card p { font-size: 15.5px; color: var(--ink-soft); }
.nb-card p + p { margin-top: 10px; }
.nb-card p strong { color: var(--ink); font-weight: 500; }
.nb-card ul { margin: 8px 0 0 20px; font-size: 15.5px; color: var(--ink-soft); }
.nb-card ul li { padding: 3px 0; }
.nb-quote {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic; font-size: 18px; color: var(--ink);
}
.nb-photo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin: 14px auto 0;
  max-width: 440px;
}
.nb-photo img { display: block; width: 100%; height: auto; border-radius: 8px; }
.nb-photo figcaption {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: 15.5px;
  color: var(--ink-soft);
  text-align: center;
  padding: 10px 6px 4px;
}
.fav {
  display: inline-block;
  background: var(--berry); color: #fff;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 99px; padding: 3px 10px;
  vertical-align: middle; margin-left: 8px;
}
table.tracker { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
table.tracker th {
  text-align: left; font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--berry);
  border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0;
}
table.tracker td { border-bottom: 1px dotted var(--line); padding: 10px 10px 10px 0; vertical-align: top; }
table.tracker td.status { white-space: nowrap; }
table.tracker a { color: var(--berry); font-weight: 500; text-decoration: none; }
table.tracker a:hover { text-decoration: underline; }
.pill {
  display: inline-block; font-size: 12px; font-weight: 600;
  border-radius: 99px; padding: 2px 10px;
}
.pill.live { background: #e6f2e8; color: #2e6b3c; }
.pill.wip { background: #faf0dc; color: #8a6215; }

.nb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.nb-gallery a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.nb-gallery a:hover { border-color: var(--berry); transform: translateY(-2px); }
.nb-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
}

@media (max-width: 640px) {
  header.hero { padding: 56px 0 42px; }
  section { padding: 42px 0; }
  .recipes, .panels { grid-template-columns: 1fr; }
  .recipe-body { grid-template-columns: 1fr; gap: 28px; }
  nav.top .wrap { gap: 14px; flex-wrap: wrap; }
}

/* ============ margin notes (mom / daughter / grammie) ============ */
/* One rail, one thread. All three voices hang off a single hairline in the
   right margin: same column, same left edge, same width, same rhythm, so no
   voice can read as the main one (Heather, heather-385). Order in a column
   reads as sequence, not rank. The only thing that differs is hue, and hue
   carries no rank. No tilt, no stagger: strict alignment is what keeps this
   scandi and calm. Colour lives in one saturated dot on the thread. */
.voices {
  --thread: var(--line);
  border-left: 1px solid var(--thread);
  padding-left: 22px;
  display: grid;
  gap: 34px;
  margin: 40px 0 8px;
}
.voice {
  --voice: var(--berry);
  position: relative;
  max-width: 440px;
}
/* the dot sits ON the thread, not beside it */
.voice .mark {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--voice);
  transform: translateX(-5px);
}
.voice .who {
  display: block;
  font-family: "Google Sans", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--voice) 70%, var(--ink));
  font-weight: 600;
  margin-bottom: 5px;
}
.voice p {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}
.voice p + p { margin-top: 8px; }
.voice.mom      { --voice: #a03e46; }
.voice.daughter { --voice: #17787d; }
.voice.grammie  { --voice: #c98b2c; }
/* nothing written here yet: only the dot goes hollow. The name keeps its
   full weight so an unwritten voice never reads as a lesser one. */
.voice.empty .mark { background: var(--paper); border: 1.5px solid var(--voice); }

/* Wide screens: the rail moves out into the true right margin, alongside the
   recipe, with the text block staying optically centred on the page. */
@media (min-width: 1200px) {
  .recipe .wrap {
    max-width: 1276px;
    display: grid;
    grid-template-columns: 200px minmax(0, 740px) 280px;
    column-gap: 28px;
    align-items: start;
  }
  .recipe .wrap > * { grid-column: 2; }
  .recipe .wrap > .recipe-main {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 200px minmax(0, 740px) 280px;
    column-gap: 28px;
    align-items: start;
  }
  .recipe-main > .recipe-body { grid-column: 2; grid-row: 1; }
  .recipe-main > .voices {
    grid-column: 3;
    grid-row: 1;
    margin: 6px 0 0;
    max-width: none;
  }
  .recipe-main > .voices .voice { max-width: none; }
  .recipe-main > .voices .voice p { font-size: 16px; }
}

/* Narrow screens: the same rail, full width, tucked under the recipe. Nothing
   about the three notes changes relative to each other at any size. */
@media (max-width: 640px) {
  .voices { gap: 28px; padding-left: 18px; }
  .voice .mark { left: -18px; }
}
