/* ============================================================
   Mohammed Ashfaq — mohammedashfaq.com
   Plain CSS, no build step.

   Palette: cool slate with a signal blue, picked to read like a
   dashboard rather than a kitchen. The What Do I Cook Today app
   has its own warm palette, which is kept only inside the phone
   mockup (see `.phone` further down) so the app looks like itself
   without colouring the whole site.
   ============================================================ */

:root {
  --bg: #F5F8FC;
  --bg-alt: #EAF0F8;
  --card: #FFFFFF;
  --border: #DCE5F0;
  --text: #0D1729;
  --muted: #57687F;
  --accent: #1F6FEB;
  --accent-dark: #1552C4;
  --accent-soft: #E6EFFE;
  --signal: #16A34A;
  --signal-glow: rgba(22, 163, 74, 0.55);
  --shadow: 0 6px 20px rgba(13, 23, 41, 0.07);
  --shadow-lg: 0 18px 40px rgba(13, 23, 41, 0.12);
  --topbar: rgba(245, 248, 252, 0.82);
  --serif: Georgia, "Iowan Old Style", Palatino, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 18px;
  --ring: 0 0 0 3px var(--accent-soft), 0 0 0 4px var(--accent);
}

/* Light is the default in every case, including for visitors whose system
   is set to dark. Dark is opt-in through the toggle, which sets
   `data-theme="dark"` and remembers it. */
:root[data-theme="dark"] {
  --bg: #0A0F1A;
  --bg-alt: #0E1523;
  --card: #141C2C;
  --border: #253149;
  --text: #E9EEF8;
  --muted: #93A2BA;
  --accent: #4D8DFF;
  --accent-dark: #8AB4FF;
  --accent-soft: #14233E;
  --signal: #34D399;
  --signal-glow: rgba(52, 211, 153, 0.5);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.55);
  --topbar: rgba(10, 15, 26, 0.85);
}

/* ---------------------------- base ---------------------------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

code {
  font: 0.88em var(--mono);
  background: var(--accent-soft);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}

.skip {
  position: absolute;
  left: -9999px;
  z-index: 100;
  background: var(--card);
  color: var(--text);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; top: 0; }

.wrap {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.section { padding-block: 4.5rem; }

/* --------------------------- topbar --------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--topbar);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--accent); }

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: none;
}

.nav { display: flex; gap: 1.4rem; }

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  position: relative;
  padding-block: 0.15rem;
}
.nav a:hover { color: var(--text); }

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: right 0.22s ease;
}
.nav a:hover::after,
.nav a.is-active::after { right: 0; }
.nav a.is-active { color: var(--text); }

.topbar-actions { display: flex; gap: 0.4rem; margin-left: 0.6rem; }

.icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }

.theme-icon {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset -4px -3px 0 0 var(--card);
  transition: box-shadow 0.3s ease, transform 0.4s ease;
}
:root[data-theme="dark"] .theme-icon { transform: rotate(180deg); }

.nav-btn { display: none; }

.burger, .burger::before, .burger::after {
  display: block;
  width: 17px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger::before, .burger::after { content: ""; position: absolute; }
.burger::before { transform: translateY(-5.5px); }
.burger::after { transform: translateY(5.5px); }

.nav-btn[aria-expanded="true"] .burger { background: transparent; }
.nav-btn[aria-expanded="true"] .burger::before { transform: rotate(45deg); }
.nav-btn[aria-expanded="true"] .burger::after { transform: rotate(-45deg); }

/* ---------------------------- hero ---------------------------- */

.hero {
  position: relative;
  padding-block: 4.5rem 5rem;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 1; }

.blobs { position: absolute; inset: 0; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}
.blob.b1 {
  width: 30rem; height: 30rem;
  background: var(--accent);
  top: -12rem; right: -8rem;
  opacity: 0.2;
  animation: drift 22s ease-in-out infinite;
}
.blob.b2 {
  width: 22rem; height: 22rem;
  background: #22D3EE;
  top: 6rem; left: -10rem;
  opacity: 0.18;
  animation: drift 28s ease-in-out infinite reverse;
}
.blob.b3 {
  width: 18rem; height: 18rem;
  background: #8B5CF6;
  bottom: -8rem; left: 42%;
  opacity: 0.16;
  animation: drift 34s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(2.5rem, 1.8rem, 0) scale(1.08); }
  66%      { transform: translate3d(-1.8rem, 2.6rem, 0) scale(0.95); }
}

/* The portrait flips over to a "click me" face, so it reads as
   something you can press. It flips on hover and focus, and the
   script nudges it over on its own every few seconds. */
.portrait-btn {
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  line-height: 0;
  perspective: 800px;
}

/* The script drives the rotation, so the coin can spin through several
   turns and settle on whichever face it likes. */
.portrait-flip {
  position: relative;
  display: block;
  width: 8.5rem;
  height: 8.5rem;
  transform-style: preserve-3d;
  transition: transform 1.5s cubic-bezier(0.3, 0, 0.2, 1);
}

.portrait-face {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border-radius: 50%;
  border: 4px solid var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.portrait-back {
  transform: rotateY(180deg);
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.9rem 0.35rem 0.7rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal-glow);
  animation: pulse 2.4s ease-out infinite;
  flex: none;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 6.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1.1rem;
  max-width: 30ch;
}

.swap {
  display: inline-grid;
  vertical-align: bottom;
  color: var(--accent-dark);
}
.swap-word {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.swap-word.is-on { opacity: 1; transform: none; }
.swap-word.is-out { opacity: 0; transform: translateY(-0.4em); }

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 44ch;
  margin: 0 0 1.8rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { color: #fff; filter: brightness(1.06); }

.btn-block { width: 100%; padding-block: 0.85rem; font-size: 1.02rem; }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.9rem; font-weight: 600; flex: 1; }
.btn-cook { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.btn-cook.is-logged { background: #4CAF7D; border-color: #4CAF7D; color: #fff; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin: 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
  max-width: 34rem;
}
.stats dt { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stats dd {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* A stat whose value is a phrase rather than a number. */
.stats dd.stat-text {
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: 0;
  max-width: 14rem;
  margin-top: 0.3rem;
}

.scroll-hint {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 34px;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: grid;
  place-items: start center;
  padding-top: 5px;
}
.scroll-hint span {
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(9px); opacity: 0.3; }
}

/* --------------------------- bands ---------------------------- */

.band {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
  padding-block: 4.5rem;
}
.band-last { border-bottom: none; }

.sec-head { margin-bottom: 2.4rem; max-width: 52ch; }

.kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.sec-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}

.sec-sub { color: var(--muted); margin: 0.8rem 0 0; }

.sub {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 1rem;
}

/* ------------------------- demo / phone ------------------------ */

.demo {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 60rem) {
  .demo { grid-template-columns: 20rem 1fr; gap: 3.5rem; }
}

/* The mockup keeps the app's own warm palette, and stays light in
   both site themes because the app itself ships light-only
   (`userInterfaceStyle: "light"`). Everything inside reads these
   variables, so nothing below needs its own colours. */
.phone {
  --bg: #FFF8F0;
  --bg-alt: #FDF2E7;
  --card: #FFFFFF;
  --border: #F0E2D4;
  --text: #241F1B;
  --muted: #8A7F74;
  --accent: #E2703A;
  --accent-dark: #B9531F;
  --accent-soft: #FDEEE4;
  --shadow: 0 6px 20px rgba(138, 90, 56, 0.10);

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 20rem;
  color: var(--text);
}

.phone-top { display: grid; place-items: center; height: 1.1rem; }
.notch { width: 32%; height: 5px; border-radius: 3px; background: var(--border); }

.phone-screen {
  background: var(--bg);
  border-radius: 24px;
  padding: 1.1rem 1.1rem 1.2rem;
}

.phone-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1.1rem; }
.app-icon { width: 2.1rem; height: 2.1rem; border-radius: 9px; box-shadow: var(--shadow); }
.phone-title { margin: 0; font-weight: 700; font-size: 1.05rem; }
.phone-sub { margin: 0; font-size: 0.8rem; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }

.tag {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.tag:hover { border-color: var(--accent); color: var(--text); }
.tag.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.result { min-height: 8.5rem; display: grid; margin-bottom: 1rem; }

.result-empty {
  place-self: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.result-empty p { margin: 0.5rem 0 0; }
.plate { font-size: 2.1rem; display: inline-block; }
.plate.is-spinning { animation: tumble 0.5s linear infinite; }
@keyframes tumble {
  0%   { transform: rotate(0) scale(1); }
  50%  { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

.dish {
  place-self: stretch;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  animation: pop 0.42s cubic-bezier(0.2, 1.2, 0.3, 1) both;
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.9) translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.dish-emoji { font-size: 1.9rem; line-height: 1; }
.dish-name {
  margin: 0.5rem 0 0.3rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.dish-meta { margin: 0; font-size: 0.84rem; color: var(--muted); }
.dish-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.7rem; }
.dish-tags span {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

.dish-none { place-self: center; text-align: center; color: var(--muted); font-size: 0.92rem; padding: 0 0.5rem; }

.phone-actions { display: grid; gap: 0.55rem; }
.sub-actions { display: flex; gap: 0.5rem; }

.demo-caption {
  max-width: 20rem;
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.demo-notes h3,
.demo-notes .notes-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  padding-top: 0;
  border-top: none;
}

.notes { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.9rem; }
.notes li {
  margin: 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
  font-size: 0.98rem;
}
.notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}
.notes strong { color: var(--text); }

.cook-log {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow);
}
.cook-log-title {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.cook-log ul { margin: 0; padding-left: 1.1rem; font-size: 0.93rem; }
.cook-log li { margin: 0.2rem 0; }

.ship-note { font-size: 0.92rem; color: var(--muted); margin: 0; }

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  margin-right: 0.4rem;
}

/* -------------------------- timeline -------------------------- */

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }

/* Newest role first, so the line fades as it runs back through time. */
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.7rem;
  bottom: 1.5rem;
  width: 2px;
  background: linear-gradient(var(--accent), var(--border));
  opacity: 0.5;
}

.tl-item { position: relative; padding-left: 2.4rem; margin-bottom: 1.1rem; }

.tl-marker {
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--border);
}

.tl-marker.is-now {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.tl-card.is-now { border-color: var(--accent); }

.tl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.tl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.tl-head { margin-bottom: 0.7rem; }
.tl-head h3 { margin: 0; font-size: 1.12rem; }

.when { margin: 0.15rem 0 0; font-size: 0.88rem; color: var(--muted); display: flex; align-items: center; gap: 0.4rem; }

.now-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--accent-soft);
  flex: none;
}

.tl-card ul { margin: 0; padding-left: 1.15rem; }
.tl-card li { margin: 0.3rem 0; color: var(--muted); }
.tl-card li strong, .tl-card p strong { color: var(--text); }
.tl-card > p { margin: 0 0 0.7rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.9rem 0 0; }
.chips span {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.chips span:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-1px); }

/* ------------------- the app page (/whatdoicooktoday/) -------- */

.back-link {
  display: inline-block;
  margin-bottom: 1.6rem;
  font-size: 0.93rem;
  text-decoration: none;
  color: var(--muted);
}
.back-link:hover { color: var(--accent); }

.app-intro { margin-bottom: 2.6rem; }

.app-hero-icon {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.app-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
  max-width: none;
}

/* --------------------------- cards ---------------------------- */

.cards { display: grid; gap: 1rem; }
@media (min-width: 42rem) { .cards { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.card.is-current { border-color: var(--accent); background: linear-gradient(var(--accent-soft), var(--card) 55%); }

.card-tag {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.9rem !important; font-size: 0.92rem; }
.card-links a { font-weight: 600; }
.dead { color: var(--muted); opacity: 0.75; font-style: italic; }

/* --------------------- background / split --------------------- */

.split { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.skillset { display: grid; gap: 1.2rem; }
.skill-label { margin: 0 0 0.4rem; font-weight: 700; font-size: 0.95rem; }

.edu {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow);
}
.edu h4 { margin: 0; font-size: 1.03rem; }
.edu ul { margin: 0.7rem 0 0; padding-left: 1.15rem; }
.edu li { margin: 0.25rem 0; color: var(--muted); font-size: 0.95rem; }

/* -------------------------- contact --------------------------- */

.contact { text-align: center; }
.contact .sec-head { margin-inline: auto; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* --------------------------- footer --------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: space-between; }
.footer p { margin: 0; }
.footer-meta { opacity: 0.8; }

/* ------------------------- confetti --------------------------- */

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }

.confetti i {
  position: absolute;
  top: -2rem;
  font-size: 1.5rem;
  font-style: normal;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translateY(105vh) rotate(var(--spin, 360deg)); opacity: 0.2; }
}

/* --------------------- scroll reveal -------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------- responsive ------------------------- */

@media (max-width: 46rem) {
  .nav-btn { display: inline-grid; position: relative; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.5rem 1rem;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 0.6rem; font-size: 1rem; }
  .nav a::after { display: none; }

  .stats { gap: 1.5rem; }
  .stats dd { font-size: 1.5rem; }
  .scroll-hint { display: none; }
  .section, .band, .hero { padding-block: 3.2rem; }
  .footer-inner { flex-direction: column; }
}

/* --------------------- reduced motion ------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .confetti { display: none; }
}

/* ==============================================================
   Document pages (the privacy policy at /whatdoicooktoday/privacy/)
   Scoped to a .wrap that is a direct child of body, so that page
   keeps its original typography without editing its markup — its
   URL is filed with Apple and the file is left untouched.
   ============================================================== */

body > .wrap {
  max-width: 44rem;
  padding-block: 3.5rem 4.5rem;
}

body > .wrap h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  max-width: none;
}

body > .wrap h2 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
body > .wrap h2:first-of-type { border-top: none; padding-top: 0; margin-top: 2rem; }

body > .wrap .updated { color: var(--muted); font-size: 0.95rem; margin: 0 0 2rem; }

body > .wrap .lede {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin: 0 0 1rem;
  box-shadow: var(--shadow);
}
body > .wrap .lede p { margin: 0; }

body > .wrap ul { padding-left: 1.2rem; }
body > .wrap li { margin: 0.35rem 0; }

body > .wrap .back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--muted);
}
body > .wrap .back:hover { color: var(--accent); }

body > .wrap footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
