/* Shared structural stylesheet for network sites.
 *
 * Layout and rhythm only — every colour, typeface and radius comes from a
 * custom property the site's own stylesheet sets. Loaded BEFORE the site
 * theme, which may also override any rule here outright.
 *
 * Deliberately not Tailwind: a network site must not depend on recipe.net's
 * utility build, or a class change there could silently move this layout.
 */

:root {
  --s-paper:      #ffffff;
  --s-surface:    #ffffff;
  --s-surface-2:  #f2f2f0;
  --s-ink:        #16181a;
  --s-ink-soft:   #43484d;
  --s-muted:      #6d747a;
  --s-line:       #e2e3e1;
  --s-line-soft:  #eeefed;
  --s-accent:     #2c4a7c;
  --s-accent-ink: #ffffff;
  --s-accent-2:   #a05a32;

  --s-display: Georgia, "Times New Roman", serif;
  --s-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --s-wrap: 1180px;
  --s-measure: 68ch;
  --s-radius: 3px;
  --s-card-ratio: 3 / 2;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--s-paper);
  color: var(--s-ink);
  font-family: var(--s-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--s-accent); text-underline-offset: 2px; }
a:hover { color: var(--s-accent-2); }
:focus-visible { outline: 2px solid var(--s-accent-2); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

main { flex: 1; }

.sat-wrap { width: 100%; max-width: var(--s-wrap); margin: 0 auto; padding: 0 24px; }
.sat-narrow { max-width: 760px; }
.sat-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Type ────────────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--s-display);
  line-height: 1.14; margin: 0; text-wrap: balance; color: var(--s-ink);
}
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 1.95rem); }
h3 { font-size: 1.14rem; }
p { margin: 0 0 1.05rem; max-width: var(--s-measure); }

.sat-eyebrow {
  font-family: var(--s-body); font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--s-accent-2);
  margin: 0 0 .55rem;
}
.sat-lede { font-size: 1.1rem; color: var(--s-ink-soft); max-width: 60ch; text-wrap: pretty; }
.sat-muted { color: var(--s-muted); }
.sat-count { font-size: .85rem; }
.sat-page-head { margin-bottom: 38px; }
.sat-page-head h1 { margin-bottom: 14px; }

/* ── Buttons, crumbs, search ─────────────────────────────────────────── */

.sat-btn {
  display: inline-block; padding: 12px 24px;
  background: var(--s-accent); color: var(--s-accent-ink);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; border: 0;
  border-radius: var(--s-radius); cursor: pointer; transition: opacity .15s ease;
}
.sat-btn:hover { opacity: .88; color: var(--s-accent-ink); }

.sat-crumbs {
  font-size: .74rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--s-muted); margin-bottom: 20px;
}
.sat-crumbs a { text-decoration: none; }
.sat-crumbs span { margin: 0 8px; opacity: .5; }

.sat-search { display: flex; gap: 10px; max-width: 520px; margin: 0 0 38px; }
.sat-search input {
  flex: 1; padding: 12px 14px; border: 1px solid var(--s-line);
  border-radius: var(--s-radius); font: inherit; background: var(--s-surface);
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.sat-hero { padding: 54px 0 10px; }
.sat-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.sat-hero-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--s-radius); background: var(--s-surface-2); }
.sat-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.sat-hero-text h1 { margin-bottom: 16px; }
@media (max-width: 860px) {
  .sat-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .sat-hero { padding-top: 30px; }
}

.sat-hero-figure { margin: 26px 0 38px; border-radius: var(--s-radius); overflow: hidden; }

/* ── Sections and cards ──────────────────────────────────────────────── */

.sat-section { padding: 50px 0; }
.sat-section + .sat-section { border-top: 1px solid var(--s-line-soft); }
.sat-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; margin-bottom: 28px; flex-wrap: wrap;
}
.sat-section-head a {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.sat-section-desc { margin: -14px 0 26px; color: var(--s-muted); }

.sat-grid { display: grid; gap: 34px 28px; }
.sat-grid-4 { grid-template-columns: repeat(4, 1fr); }
.sat-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .sat-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .sat-grid-4, .sat-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .sat-grid-4, .sat-grid-3 { grid-template-columns: 1fr; } }

.sat-card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.sat-card-img {
  aspect-ratio: var(--s-card-ratio); overflow: hidden;
  background: var(--s-surface-2); border-radius: var(--s-radius);
}
.sat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sat-card:hover .sat-card-img img { transform: scale(1.035); }
.sat-card-meta {
  font-size: .7rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--s-accent-2); margin: 0;
}
.sat-card-title { font-size: 1.1rem; line-height: 1.28; }
.sat-card-title a { text-decoration: none; color: var(--s-ink); }
.sat-card:hover .sat-card-title a { color: var(--s-accent); }
.sat-card-title a::after { content: ""; position: absolute; inset: 0; }
.sat-card-desc { font-size: .9rem; color: var(--s-muted); margin: 0; }

/* ── Recipe page ─────────────────────────────────────────────────────── */

.sat-article { padding: 38px 0 18px; }

.sat-facts {
  display: flex; flex-wrap: wrap; margin: 0 0 38px;
  border: 1px solid var(--s-line); border-radius: var(--s-radius);
  background: var(--s-surface);
}
.sat-fact { flex: 1 1 140px; padding: 15px 20px; border-right: 1px solid var(--s-line-soft); }
.sat-fact:last-child { border-right: 0; }
.sat-fact dt {
  font-size: .65rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--s-muted); margin-bottom: 4px;
}
.sat-fact dd {
  margin: 0; font-family: var(--s-display); font-size: 1.28rem;
  font-variant-numeric: tabular-nums;
}

.sat-cols { display: grid; grid-template-columns: 320px 1fr; gap: 54px; align-items: start; }
@media (max-width: 900px) { .sat-cols { grid-template-columns: 1fr; gap: 34px; } }

.sat-ingredients {
  background: var(--s-surface); border: 1px solid var(--s-line);
  border-top: 3px solid var(--s-accent); border-radius: var(--s-radius);
  padding: 24px; position: sticky; top: 88px;
}
@media (max-width: 900px) { .sat-ingredients { position: static; } }
.sat-ingredients h2 { font-size: 1.2rem; margin-bottom: 16px; }
.sat-ingredients ul { list-style: none; margin: 0; padding: 0; }
.sat-ingredients li {
  display: flex; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--s-line-soft); font-size: .94rem;
}
.sat-ingredients li:last-child { border-bottom: 0; }
.sat-amount { font-weight: 700; color: var(--s-accent); white-space: nowrap; font-variant-numeric: tabular-nums; }

.sat-method h2 { margin: 0 0 20px; }
.sat-method h2 + * { margin-top: 0; }
.sat-method > h2:not(:first-child) { margin-top: 42px; }

.sat-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.sat-steps li { counter-increment: step; position: relative; padding: 0 0 24px 56px; }
.sat-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--s-surface-2); color: var(--s-accent);
  font-family: var(--s-display); font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.sat-steps li p { margin: 0; max-width: none; }

.sat-note {
  background: var(--s-surface-2); border-left: 3px solid var(--s-accent);
  padding: 16px 20px; border-radius: var(--s-radius); margin: 0 0 14px;
}
.sat-note p { margin: 0; }

.sat-faq { border-top: 1px solid var(--s-line); }
.sat-faq details { border-bottom: 1px solid var(--s-line-soft); }
.sat-faq summary {
  cursor: pointer; list-style: none; padding: 15px 0; font-weight: 700;
  display: flex; justify-content: space-between; gap: 16px;
}
.sat-faq summary::-webkit-details-marker { display: none; }
.sat-faq summary::after { content: "+"; color: var(--s-accent-2); font-size: 1.3rem; line-height: 1; }
.sat-faq details[open] summary::after { content: "\2013"; }
.sat-faq .sat-answer { padding: 0 0 18px; color: var(--s-ink-soft); }

.sat-prose { max-width: var(--s-measure); }
.sat-prose h2 { margin: 2.2rem 0 .8rem; }
.sat-prose h3 { margin: 1.7rem 0 .6rem; }
.sat-prose ul, .sat-prose ol { padding-left: 1.2rem; }
.sat-prose li { margin-bottom: .4rem; }
.sat-prose img { border-radius: var(--s-radius); margin: 1.6rem 0; }
.sat-prose blockquote {
  margin: 1.6rem 0; padding-left: 20px;
  border-left: 3px solid var(--s-accent-2); font-style: italic; color: var(--s-ink-soft);
}

.sat-empty {
  border: 1px dashed var(--s-line); border-radius: var(--s-radius);
  padding: 42px 26px; text-align: center; color: var(--s-muted);
}

/* ── Header / footer skeleton ────────────────────────────────────────── */

.sat-header { background: var(--s-accent); color: var(--s-accent-ink); }
.sat-header a { color: inherit; text-decoration: none; }
.sat-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 66px;
}
.sat-logo { font-family: var(--s-display); font-size: 1.45rem; font-weight: 700; white-space: nowrap; }
.sat-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.sat-nav a { font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; opacity: .88; }
.sat-nav a:hover { opacity: 1; }
.sat-nav-toggle {
  display: none; background: none; border: 1px solid currentColor; color: inherit;
  border-radius: var(--s-radius); padding: 7px 11px; font: inherit; font-size: .76rem;
  letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
@media (max-width: 880px) {
  .sat-nav-toggle { display: block; }
  .sat-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 13px; padding: 4px 0 18px; }
  .sat-header-inner { flex-wrap: wrap; padding-top: 12px; }
  .sat-nav[data-open="true"] { display: flex; }
}

.sat-footer { margin-top: auto; background: var(--s-ink); color: #cfd2d4; padding: 48px 0 28px; font-size: .9rem; }
.sat-footer a { color: #cfd2d4; text-decoration: none; }
.sat-footer a:hover { color: #fff; }
.sat-footer h2 {
  font-family: var(--s-body); font-size: .68rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: #8d9296; margin: 0 0 13px;
}
.sat-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .sat-footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.sat-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sat-footer-base {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: #8d9296;
}
