:root {
  color-scheme: light dark;
  --primary: #c62828;
  --primary-dark: #7b1f1f;
  --primary-light: #fdecea;
  --accent: #ffa726;
  --background: #faf3e0;
  --paper: #fffdf8;
  --ink: rgba(0, 0, 0, 0.87);
  --muted: rgba(0, 0, 0, 0.62);
  --on-primary: #ffffff;
  --soft-surface: rgba(255, 253, 248, 0.7);
  --raised-surface: rgba(255, 253, 248, 0.93);
  --plate-ring: #fff7e9;
  --line: rgba(123, 31, 31, 0.16);
  --shadow: 0 26px 70px rgba(87, 31, 27, 0.13);
  --soft-shadow: 0 9px 22px rgba(87, 31, 27, 0.09);
  --primary-shadow: 0 10px 24px rgba(198, 40, 40, 0.2);
  --download-background: rgba(0, 0, 0, 0.87);
  --download-text: #ffffff;
  --download-muted: rgba(255, 255, 255, 0.67);
  --download-note: rgba(255, 255, 255, 0.48);
  --badge-background: #ffffff;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 88% 5%, rgba(255, 167, 38, 0.17), transparent 26rem),
    var(--background);
  color: var(--ink);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--on-primary);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.features,
.download,
.community,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-dark);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  border-radius: 23%;
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.site-header nav a,
.site-footer nav a,
.text-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.site-header nav a {
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover,
.text-link:hover {
  color: var(--primary);
}

.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
  padding: 70px 0 105px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin-bottom: 25px;
  font-size: clamp(46px, 5.4vw, 72px);
  font-weight: 760;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.store-badge:hover,
.apk-badge:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--primary);
  box-shadow: var(--primary-shadow);
  color: var(--on-primary);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  border-color: var(--line);
  background: var(--soft-surface);
  color: var(--primary-dark);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 25px;
  margin: 25px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.hero-facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  display: inline-block;
  margin: 0 9px 2px 0;
  border-radius: 50%;
  background: var(--accent);
}

.hero-mark {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.plate {
  width: min(430px, 90vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid rgba(123, 31, 31, 0.11);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow), inset 0 0 0 28px var(--plate-ring);
}

.plate-inner {
  width: 62%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 34%;
  background: var(--primary-light);
  transform: rotate(-4deg);
}

.plate-inner img {
  width: 88%;
  filter: drop-shadow(0 16px 15px rgba(95, 28, 25, 0.14));
  transform: rotate(4deg);
}

.ingredient {
  position: absolute;
  z-index: 2;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--raised-surface);
  box-shadow: var(--soft-shadow);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ingredient-search {
  top: 11%;
  right: 1%;
  transform: rotate(5deg);
}

.ingredient-steps {
  bottom: 13%;
  right: 0;
  transform: rotate(-4deg);
}

.ingredient-book {
  bottom: 21%;
  left: -3%;
  transform: rotate(4deg);
}

.features {
  padding: 95px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child,
.download-copy > p:last-child,
.community p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 255px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--soft-surface);
}

.feature-card:nth-child(2) {
  background: var(--primary);
  color: var(--on-primary);
  transform: translateY(16px);
}

.feature-symbol {
  min-width: 52px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 45px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 700;
}

.feature-card:nth-child(2) .feature-symbol {
  background: rgba(255, 255, 255, 0.16);
  color: var(--on-primary);
  font-size: 14px;
}

.feature-card h3 {
  margin-bottom: 11px;
  font-size: 21px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.feature-card:nth-child(2) p {
  color: rgba(255, 255, 255, 0.78);
}

.download {
  margin-top: 115px;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 32px;
  background: var(--download-background);
  color: var(--download-text);
}

.download-copy {
  max-width: 760px;
}

.download .eyebrow {
  color: var(--accent);
}

.download-copy > p:last-child {
  color: var(--download-muted);
}

.download-options {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.store-badge,
.apk-badge {
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: var(--badge-background);
  overflow: hidden;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.store-badge {
  min-width: 184px;
  padding: 0 10px;
}

.store-badge img {
  width: auto;
  max-width: 190px;
  height: 52px;
}

.apk-badge {
  gap: 11px;
  justify-content: flex-start;
  padding: 8px 17px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.apk-badge small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apk-mark {
  padding: 8px 7px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.download-note {
  margin: 18px 0 0;
  color: var(--download-note);
  font-size: 12px;
}

.community {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 100px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--soft-surface);
}

.community h2 {
  margin-bottom: 8px;
  font-family: inherit;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.community-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 42px 0 35px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: var(--primary-dark);
}

.footer-brand span,
.disclaimer {
  color: var(--muted);
  font-size: 12px;
}

.disclaimer {
  grid-column: 1 / -1;
  margin: 0;
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 55px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-mark {
    min-height: 460px;
  }

  .plate {
    width: min(420px, 78vw);
  }

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

  .feature-card:last-child {
    grid-column: 1 / -1;
    min-height: 220px;
  }

  .community {
    grid-template-columns: auto 1fr;
  }

  .community-links {
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .features,
  .download,
  .community,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 78px;
  }

  .site-header nav a:not(:last-child) {
    display: none;
  }

  .hero {
    gap: 30px;
    min-height: auto;
    padding: 55px 0 75px;
  }

  h1 {
    font-size: clamp(43px, 14vw, 64px);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    gap: 7px 15px;
  }

  .hero-mark {
    min-height: 360px;
  }

  .plate {
    width: min(320px, 88vw);
    box-shadow: var(--shadow), inset 0 0 0 20px var(--plate-ring);
  }

  .ingredient-search {
    top: 5%;
    right: 0;
  }

  .ingredient-steps {
    bottom: 7%;
    right: 0;
  }

  .ingredient-book {
    bottom: 18%;
    left: 0;
  }

  .features {
    padding: 74px 0;
  }

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

  .feature-card,
  .feature-card:last-child {
    grid-column: auto;
    min-height: 220px;
  }

  .feature-card:nth-child(2) {
    transform: none;
  }

  .download {
    margin-top: 70px;
    padding: 34px 22px;
    border-radius: 24px;
  }

  .download-options {
    display: grid;
  }

  .store-badge,
  .apk-badge {
    width: 100%;
  }

  .community {
    grid-template-columns: 1fr;
    margin-bottom: 70px;
    padding: 28px 22px;
  }

  .community-links {
    grid-column: auto;
    align-items: stretch;
    flex-direction: column;
  }

  .community .text-link {
    text-align: center;
  }

  .site-footer nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #d32f2f;
    --primary-dark: #ffb74d;
    --primary-light: #4e342e;
    --accent: #ffb74d;
    --background: #3e2723;
    --paper: #4e342e;
    --ink: #ffffff;
    --muted: rgba(255, 255, 255, 0.7);
    --soft-surface: rgba(78, 52, 46, 0.8);
    --raised-surface: rgba(78, 52, 46, 0.96);
    --plate-ring: #5d4037;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
    --soft-shadow: 0 9px 22px rgba(0, 0, 0, 0.22);
    --primary-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    --download-background: #4e342e;
    --download-text: #ffffff;
    --download-muted: rgba(255, 255, 255, 0.7);
    --download-note: rgba(255, 255, 255, 0.5);
  }

  body {
    background:
      radial-gradient(circle at 88% 5%, rgba(211, 47, 47, 0.2), transparent 26rem),
      var(--background);
  }

  .plate-inner img {
    filter: drop-shadow(0 16px 15px rgba(0, 0, 0, 0.22));
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
