/* DishLift tokens from the iOS Theme.swift palette.
   canvas #FAF7F2, surface #FFFFFF, surfaceMuted #EDF2EB,
   text #1A241F, textSecondary #57635C, accent #1F6347,
   accentDark #12402E, coral #C74038, gold #C28514, blue #2B6B94.
   Type is the platform UI font, the same idea as SwiftUI's system styles.
   No webfonts are downloaded. */

:root {
  --canvas: #FAF7F2;
  --surface: #FFFFFF;
  --surface-muted: #EDF2EB;
  --text: #1A241F;
  --text-secondary: #57635C;
  --accent: #1F6347;
  --accent-dark: #12402E;
  --coral: #C74038;
  --gold: #C28514;
  --blue: #2B6B94;
  --border: rgba(0, 0, 0, 0.09);
  --shadow: 0 18px 40px rgba(18, 64, 46, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --wrap: 68rem;
  --radius: 1.15rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  flex: 1 0 auto;
}

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

h1, h2, h3, p, figure, blockquote {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 4.8vw, 3.55rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
}

h3 {
  font-size: 1.2rem;
}

a {
  color: var(--accent-dark);
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4.5rem;
  z-index: 20;
  background: var(--accent-dark);
  color: var(--canvas);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
}

.header-bar,
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.125rem;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.55rem;
}

.nav-primary,
.nav-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.15rem;
}

.nav-primary a,
.nav-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.nav-primary a:hover,
.nav-footer a:hover,
.nav-primary a[aria-current="page"],
.nav-footer a[aria-current="page"] {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

main:focus {
  outline: none;
}

.hero {
  padding: 1.75rem 0 2.75rem;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.hero-mark {
  display: flex;
  justify-content: center;
  order: -1;
}

.hero-mark img {
  width: 9.25rem;
  height: auto;
  border-radius: 22%;
  box-shadow: var(--shadow);
}

.kicker {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede,
.section-intro p,
.feature-note,
.example-why,
.quiet {
  color: var(--text-secondary);
}

.lede {
  max-width: 38rem;
  margin-top: 1rem;
  font-size: 1.175rem;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 0.55rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
}

.status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
}

.button:hover {
  background: var(--accent-dark);
  color: #fff;
}

.button:focus-visible,
.closer :focus-visible,
.skip:focus-visible {
  outline-color: #fff;
}

.section {
  padding: 3.25rem 0;
}

.section-intro {
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.section-intro h2 {
  margin-bottom: 0.55rem;
}

.band {
  background: var(--surface-muted);
}

.steps,
.goals,
.features {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
}

.step h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  flex: none;
}

.step p,
.goal p,
.feature p {
  color: var(--text-secondary);
}

.goal {
  border-top: 3px solid var(--accent);
}

.goal-sodium {
  border-top-color: var(--blue);
}

.goal-sugar {
  border-top-color: var(--coral);
}

.goal h3,
.feature h3 {
  margin-bottom: 0.45rem;
}

.example {
  margin-top: 1.25rem;
  max-width: 40rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.3rem;
}

.example figcaption {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.swap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.7rem;
  margin: 0.7rem 0 0.45rem;
  font-weight: 600;
}

.swap-to {
  color: var(--accent);
  font-weight: 600;
}

.feature-note {
  max-width: 40rem;
  margin-top: 1.1rem;
}

.notice-section {
  padding-top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 4px 0 0 var(--accent);
  padding: 1.3rem 1.35rem 1.35rem 1.45rem;
}

.notice h2 {
  margin-bottom: 0.6rem;
  font-size: 1.45rem;
}

.notice p + p {
  margin-top: 0.75rem;
}

.closer {
  background: var(--accent-dark);
  color: var(--canvas);
  padding: 3.25rem 0;
}

.closer h2 {
  max-width: 18ch;
}

.closer p {
  max-width: 36rem;
  margin-top: 0.75rem;
  color: #E4EFE8;
}

.closer .button {
  background: var(--canvas);
  color: var(--accent-dark);
}

.closer .button:hover {
  background: #fff;
  color: var(--accent-dark);
}

.site-footer {
  border-top: 1px solid var(--border);
}

.copyright {
  margin: 0;
  color: var(--text-secondary);
}

.copyright a {
  color: var(--text);
  font-weight: 600;
}

.page-head {
  padding: 2.25rem 0 0.5rem;
}

.page-head p {
  max-width: 40rem;
  margin-top: 0.8rem;
  color: var(--text-secondary);
}

.prose {
  max-width: 40rem;
  padding-bottom: 3.5rem;
}

.prose h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.35rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 0.9rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li {
  margin: 0.35rem 0;
}

.prose li::marker {
  color: var(--accent);
}

.prose a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.faq-title {
  margin: 2.25rem 0 0.35rem;
  font-size: 1.35rem;
}

.page-end {
  padding-top: 2rem;
}

.updated {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

address {
  font-style: normal;
}

.contact-mail {
  margin: 1rem 0 0.25rem;
}

.contact-mail a {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--accent-dark);
}

.faq {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.35rem 0;
}

.faq summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 0;
  font-weight: 600;
  cursor: pointer;
}

.faq summary:hover {
  color: var(--accent-dark);
}

.faq details p {
  margin: 0 0 0.9rem;
  color: var(--text-secondary);
  max-width: 40rem;
}

@media (min-width: 720px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 4rem));
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .goals {
    grid-template-columns: repeat(3, 1fr);
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 880px) {
  .hero {
    padding: 4rem 0 4.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.8fr);
    gap: 3rem;
  }

  .hero-mark {
    order: 0;
    justify-content: flex-end;
  }

  .hero-mark img {
    width: 16rem;
  }

  .section {
    padding: 4.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .skip,
  .cta-row,
  .closer {
    position: static;
  }

  .site-header {
    border-bottom: 1px solid #ccc;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    text-decoration: underline;
  }
}
