/* soupboi.us — moved out of index.php's inline <style> on 2026-10-25 so the host can run the
   family's strict CSP (style-src 'self', no 'unsafe-inline'). The page links it as
   /styles.css?v=<mtime>, so an edit is a new URL despite the 7-day asset cache. */

:root {
  --broth: #f6ede0;        /* warm cream background */
  --broth-deep: #efe1cd;
  --tomato: #d1442b;       /* soup red-orange */
  --tomato-deep: #a8321e;
  --herb: #3f6f4a;         /* garnish green */
  --pepper: #241a12;       /* near-black text */
  --pepper-soft: #5a4a3a;
  --cream: #fffaf2;
  --gold: #e6a635;         /* corn / turmeric accent */
  --line: #e2d3bd;
  /* 2026-10-26 (dark mode): --tomato-ink is tomato used AS TEXT (same as --tomato-deep in light;
     lighter in dark). --tomato / --tomato-deep stay the fills (order card, buttons) in both themes. */
  --tomato-ink: #a8321e;
  --bar-bg: rgba(246, 237, 224, 0.82);
  --chip-bg: rgba(255, 250, 242, 0.9);
  --shadow: 0 20px 45px -25px rgba(60, 40, 20, 0.45);
  --radius: 18px;
  --maxw: 1080px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(230,166,53,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(209,68,43,0.12), transparent 55%),
    var(--broth);
  color: var(--pepper);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
a { color: var(--tomato-ink); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 900; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tomato-ink);
  margin-bottom: 0.6rem;
}

/* ---------- NAV ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: var(--bar-bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; text-decoration: none; color: var(--pepper); }
.brand svg { display: block; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--pepper-soft); font-weight: 600; font-size: 0.92rem; }
.nav-links a:hover { color: var(--tomato-ink); }
.nav-cta {
  background: var(--tomato); color: #fff; text-decoration: none;
  padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
  box-shadow: var(--shadow);
}
.nav-cta:hover { background: var(--tomato-deep); }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta { padding: 8px 14px; }
}

/* ---------- HERO ---------- */
.hero { padding: 70px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

.hero h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
.hero h1 em { font-style: italic; color: var(--tomato-ink); font-weight: 500; }
.hero .lede { font-size: 1.15rem; color: var(--pepper-soft); max-width: 40ch; margin-top: 1.2rem; }

.stat-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.stat {
  background: var(--cream); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; min-width: 120px; flex: 1;
}
.stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; color: var(--tomato-ink); }
.stat span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pepper-soft); font-weight: 600; }

/* portrait / bowl */
.bowl-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: 24px;
  padding: 22px; box-shadow: var(--shadow); text-align: center;
}
.bowl-card picture { display: block; }   /* wraps .portrait: JPEG XL first, JPEG fallback */
.portrait {
  width: 100%; aspect-ratio: 4/5; border-radius: 16px; object-fit: cover;
  display: block; background: var(--broth-deep); border: 1px solid var(--line);
}
.bowl-card .cap { margin-top: 14px; font-family: var(--font-display); font-style: italic; color: var(--pepper-soft); }

/* Off the market — only rendered when 'taken' is set in _lib/config.php.
   Slapped across the portrait like the SOLD OUT card on a diner's specials board. */
.bowl-card { position: relative; }
.stamp {
  position: absolute; top: 46px; left: 50%; transform: translateX(-50%) rotate(-10deg);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  margin: 0; padding: 14px 26px 11px; white-space: nowrap;
  border: 4px double var(--tomato); border-radius: 8px;
  background: var(--chip-bg); color: var(--tomato-ink); box-shadow: var(--shadow);
  text-transform: uppercase; text-align: center; line-height: 1;
}
.stamp b { font-family: var(--font-display); font-size: 2rem; font-weight: 900; letter-spacing: .08em; }
.stamp span { font-size: .68rem; font-weight: 700; letter-spacing: .2em; }

/* ---------- SECTIONS ---------- */
section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 34px; }
.section-head p { color: var(--pepper-soft); }

.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* skills / ingredients bars */
.ingredient { margin-bottom: 18px; }
.ingredient .row { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.ingredient .row span:last-child { color: var(--tomato-ink); font-family: var(--font-display); }
.bar { height: 10px; background: var(--broth-deep); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--tomato)); border-radius: 999px; }

/* experience timeline */
.job { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.job:last-child { border-bottom: 0; }
.job .when { min-width: 130px; color: var(--pepper-soft); font-weight: 600; font-size: 0.9rem; }
.job h3 { font-size: 1.2rem; margin-bottom: 4px; }
.job .org { color: var(--tomato-ink); font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }

/* nutrition / benefits */
.nutrition { border: 3px solid var(--pepper); border-radius: 14px; padding: 20px 22px; background: var(--cream); }
.nutrition h3 { font-size: 1.9rem; border-bottom: 8px solid var(--pepper); padding-bottom: 6px; margin-bottom: 6px; }
.nutrition .line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.nutrition .line b { font-weight: 700; }
.nutrition .thick { border-bottom: 4px solid var(--pepper); }

.benefit { }
.benefit .icon { font-size: 1.6rem; }
.benefit h3 { font-size: 1.15rem; margin: 8px 0 6px; }
.benefit p { color: var(--pepper-soft); font-size: 0.95rem; margin: 0; }

/* requirements list */
ul.reqs { list-style: none; padding: 0; margin: 0; }
ul.reqs li { padding: 12px 0 12px 34px; position: relative; border-bottom: 1px solid var(--line); }
ul.reqs li:before { content: "🥄"; position: absolute; left: 0; top: 10px; }
ul.reqs li:last-child { border-bottom: 0; }
ul.reqs b { font-family: var(--font-display); }

/* FAQ */
details {
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 20px; margin-bottom: 12px;
}
details summary {
  cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; font-size: 1.02rem;
}
details summary::-webkit-details-marker { display: none; }
details summary:after { content: "＋"; color: var(--tomato-ink); font-size: 1.3rem; }
details[open] summary:after { content: "－"; }
details p { color: var(--pepper-soft); padding-bottom: 16px; margin: 0; }

/* apply / order */
.order { text-align: center; }
.order-card {
  background: linear-gradient(160deg, var(--tomato), var(--tomato-deep));
  color: #fff; border-radius: 26px; padding: 54px 28px; box-shadow: var(--shadow);
}
.order-card h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.order-card p { color: rgba(255,255,255,0.9); max-width: 44ch; margin: 14px auto 28px; }
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  background: #fff; color: var(--tomato-deep); text-decoration: none; font-weight: 700;
  padding: 13px 24px; border-radius: 999px; font-size: 0.98rem; transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.5); }


footer {
  text-align: center; padding: 46px 22px 60px; color: var(--pepper-soft); font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
footer .disclaimer { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--pepper); margin-bottom: 8px; }

/* ---------- Utilities (2026-10-25) ----------
   These replaced the page's inline style="" attributes (the CSP now blocks those).
   !important because each stands in for an inline style, which beat every selector. */
.u-m0-soft { margin: 0 !important; color: var(--pepper-soft) !important; }
.u-m0 { margin: 0 !important; }
.u-w-100 { width: 100% !important; }
.u-w-99 { width: 99% !important; }
.u-w-98 { width: 98% !important; }
.u-w-96 { width: 96% !important; }
.u-w-95 { width: 95% !important; }
.u-w-92 { width: 92% !important; }
.u-w-71 { width: 71% !important; }
.u-h-sm { font-size: 1.25rem !important; margin-bottom: 10px !important; }
.u-fine { font-size: 0.82rem !important; margin-top: 20px !important; margin-bottom: 0 !important; }
.u-on-dark { color: rgba(255,255,255,0.85) !important; }
.u-mw-760 { max-width: 760px !important; }
.u-rows-3 { display: grid !important; grid-template-rows: 1fr 1fr 1fr !important; gap: 16px !important; }
.u-note-cell { border: 0 !important; font-size: 0.8rem !important; color: var(--pepper-soft) !important; }
.u-bt-0 { border-top: 0 !important; }

/* ---- Skip link (2026-10-26): hidden until focused, first Tab stop ---- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 999px; background: var(--tomato-deep); color: #fff; font-weight: 700; text-decoration: none; transition: top .2s ease; }
.skip-link:focus { top: 12px; }

/* ---- Focus + reduced motion (2026-10-26) ----------------------------------------------
   Keyboard focus gets a visible ring in the soup red (the page relied on the browser default);
   visitors who ask for less motion get no hover lifts or smooth scrolling. */
:focus-visible { outline: 3px solid var(--tomato-ink); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}

/* ---- Dark mode (UX batch 4, 2026-10-26) ------------------------------------------------
   Follows the OS unless the visitor picked a theme with the toggle (theme-init.js applies the
   saved choice before first paint; script.js runs the toggle), same model as the family sites.
   Keep the two blocks in step. The order card stays tomato in both themes. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --broth: #1c1612; --broth-deep: #251d17; --cream: #2a211b;
    --pepper: #f3e9dc; --pepper-soft: #c9b8a5; --line: #3d3027;
    --tomato-ink: #f47a5c;
    --bar-bg: rgba(28, 22, 18, 0.86); --chip-bg: rgba(42, 33, 27, 0.92);
    --shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --broth: #1c1612; --broth-deep: #251d17; --cream: #2a211b;
  --pepper: #f3e9dc; --pepper-soft: #c9b8a5; --line: #3d3027;
  --tomato-ink: #f47a5c;
  --bar-bg: rgba(28, 22, 18, 0.86); --chip-bg: rgba(42, 33, 27, 0.92);
  --shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.6);
}
.theme-transition, .theme-transition * { transition: background-color .3s, color .3s, border-color .3s !important; }

/* ---- Header controls: menu (phones/tablets), theme toggle, order (2026-10-26) ---------- */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-toggle {
  display: inline-grid; place-items: center; align-content: center; gap: 4px;
  width: 38px; height: 38px; padding: 0; background: transparent; color: var(--pepper);
  border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--tomato); color: var(--tomato-ink); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
/* Icon shows the *effective* theme: moon in light, sun in dark. */
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle[hidden], .menu-toggle[hidden] { display: none !important; }
.menu-toggle { display: none; }
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
/* Below 820px the section links used to vanish with no replacement; the ☰ opens them as a dropdown. */
@media (max-width: 820px) {
  .menu-toggle { display: inline-grid; }
  .nav-links.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--broth); border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .12); padding: 4px 0 8px;
  }
  .nav-links.is-open a { padding: 13px 22px; font-size: 1rem; border-top: 1px solid var(--line); }
  .nav-links.is-open a:first-child { border-top: 0; }
}
@media (max-width: 420px) { .nav-actions { gap: 6px; } .nav-cta { padding: 8px 12px; font-size: .85rem; } }
@media (prefers-reduced-motion: reduce) { .menu-toggle span, .theme-toggle, .menu-toggle { transition: none; } }
.nav-actions > * { flex-shrink: 0; }   /* keep the round buttons round on narrow phones */
.nav-inner { gap: 12px; }   /* brand never touches the ☰ on narrow phones */
