/* ForkNest: warm cream, terracotta, charcoal. System fonts only, no webfonts, no frameworks. */
:root {
  --cream: #FBF6EE;
  --cream-2: #F4EBDA;
  --card: #FFFDF8;
  --terra: #C75B39;
  --terra-dark: #A84A2C;
  --ink: #26221E;
  --muted: #6B6259;
  --line: #E7DCC9;
  --sage: #7A8B6F;
  --mustard: #C08A2D;
  --radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

a { color: var(--terra-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra); }

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(1.65rem, 5.5vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 4vw, 1.9rem); margin-top: 2.2em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ---------- header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 14px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--terra); border-bottom-color: var(--terra); }
.site-nav a[aria-current="page"] { color: var(--terra-dark); border-bottom-color: var(--terra); }

/* ---------- hero ---------- */
.hero { padding: 0 0 8px; }
.hero-img {
  width: 100%;
  height: clamp(190px, 34vw, 340px);
  object-fit: cover;
  border-bottom: 4px solid var(--terra);
}
.hero-text {
  max-width: 720px;
  margin: -56px auto 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px 22px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(38, 34, 30, 0.07);
}
.hero-text p.lede {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terra);
  margin: 0 0 8px;
}

/* ---------- sections & cards ---------- */
section { padding: 12px 0 8px; }
.section-intro { max-width: 640px; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin: 20px 0 8px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 6px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--terra); }
.card-meta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--terra-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.card-body p { color: var(--muted); font-size: 0.98rem; margin-bottom: 12px; }
.card-link { margin-top: auto; font-weight: 700; }

/* ---------- boards ---------- */
.board-list { list-style: none; margin: 18px 0 0; padding: 0; }
.board-list li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}
.board-list li:last-child { border-bottom: 0; }
.board-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 10px;
  transform: translateY(-1px);
}
.dot-terra { background: var(--terra); }
.dot-sage { background: var(--sage); }
.dot-mustard { background: var(--mustard); }
.dot-grey { background: #B9AF9F; }
.board-list a { font-weight: 700; color: var(--ink); text-decoration: none; }
.board-list a:hover { color: var(--terra); text-decoration: underline; }
.board-list .board-name { font-weight: 700; }
.tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
}
.board-list p { margin: 0; color: var(--muted); font-size: 0.95rem; flex-basis: 100%; padding-left: 20px; }

/* ---------- promise ---------- */
.promise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin: 18px 0 6px;
}
.promise-item { border-top: 3px solid var(--terra); padding-top: 12px; }
.promise-item:nth-child(2) { border-top-color: var(--sage); }
.promise-item:nth-child(3) { border-top-color: var(--mustard); }
.promise-num {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--terra);
}
.promise-item h3 { margin: 4px 0 6px; }
.promise-item p { color: var(--muted); font-size: 0.98rem; }

/* ---------- recipe pages ---------- */
.recipe-hero { border-radius: var(--radius); overflow: hidden; margin: 6px 0 22px; }
.recipe-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.recipe-lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

.time-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin: 20px 0 26px;
  overflow: hidden;
}
.time-strip div {
  flex: 1 1 110px;
  padding: 12px 10px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.time-strip div:last-child { border-right: 0; }
.time-strip .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.time-strip .value {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.recipe-body { display: grid; grid-template-columns: 1fr; gap: 8px 40px; }
@media (min-width: 760px) {
  .recipe-body { grid-template-columns: 300px 1fr; }
  /* Align the Method heading with the Ingredients heading in the 2-column layout. */
  .method h2 { margin-top: 0; }
}
.ingredients {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  align-self: start;
}
.ingredients h2 { margin-top: 0; font-size: 1.3rem; }
.ingredients ul { margin: 0; padding-left: 20px; }
.ingredients li { margin-bottom: 7px; }
.ingredients li::marker { color: var(--terra); }

.method ol { margin: 0; padding-left: 0; list-style: none; counter-reset: step; }
.method li {
  counter-increment: step;
  margin-bottom: 16px;
  padding-left: 46px;
  position: relative;
}
.method li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--terra);
  color: #FFF8EE;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 32px;
  text-align: center;
}

.tip {
  background: var(--cream-2);
  border-left: 4px solid var(--sage);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin: 26px 0;
}
.tip strong { color: var(--ink); }

.used-box {
  background: var(--cream-2);
  border-left: 4px solid var(--terra);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
  margin: 26px 0;
}
.used-box h2 { margin-top: 0; font-size: 1.3rem; }
.used-box p { margin: 0; }

.save-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 16px 20px;
  margin: 26px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.save-strip p { margin: 0; font-weight: 600; }
.save-strip a { font-weight: 700; white-space: nowrap; }

/* ---------- plain pages ---------- */
/* .page sets only top and bottom padding. Horizontal padding comes from
   .wrap, which shares the element (class="wrap page"). A full padding
   shorthand here would override .wrap and push text to the screen edges. */
.page { padding-top: 26px; padding-bottom: 40px; }
.page h1 { margin-bottom: 10px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 18px;
}
.contact-card h2 { margin-top: 0; font-size: 1.3rem; }
.contact-card p { margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #EDE4D3;
  margin-top: 44px;
  padding: 30px 0 26px;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  align-items: flex-start;
}
.footer-brand { flex: 1 1 260px; }
.footer-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  color: #FBF6EE;
}
.footer-brand p { color: #CFC4B0; margin: 6px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: #EDE4D3; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-note {
  width: 100%;
  color: #CFC4B0;
  font-size: 0.88rem;
  margin: 14px 0 0;
}
.footer-note a { color: #EDE4D3; }
.footer-note a:hover { color: #fff; }

.footer-base {
  width: 100%;
  border-top: 1px solid #453E35;
  margin-top: 20px;
  padding-top: 14px;
  color: #B7AB96;
  font-size: 0.88rem;
}

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-text { margin: -34px 20px 0; padding: 20px 18px 16px; }
  .header-inner { padding: 10px 20px; }
  .brand-name { font-size: 1.35rem; }
  .site-nav { gap: 4px 12px; }
  .site-nav a { font-size: 0.92rem; }
  .time-strip div { flex-basis: 45%; border-bottom: 1px solid var(--line); }
  /* 2x2 grid: right column has no right border, bottom row has no bottom border. */
  .time-strip div:nth-child(even) { border-right: 0; }
  .time-strip div:nth-child(n+3) { border-bottom: 0; }
  .save-strip a { white-space: normal; }
  .footer-nav { gap: 6px 16px; }
}

/* ---------- very small phones ---------- */
@media (max-width: 480px) {
  .site-nav { gap: 4px 10px; }
  .site-nav a { font-size: 0.9rem; }
  .brand-name { font-size: 1.25rem; }
  .brand img { width: 40px; height: 40px; }
}
