/* Shared type and menu header styles, followed by the Chomp homepage. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("fonts/BricolageGrotesque-800.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/Inter-700.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --canvas: #f7f5f1;
  --surface: #ffffff;
  --hairline: #e4ded5;
  --ink: #1d1a16;
  --ink-2: #5e574e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #100f0d;
    --surface: #1c1a17;
    --hairline: #36322d;
    --ink: #f4f1ec;
    --ink-2: #bab2a7;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 0.5rem;
  z-index: 3;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.skip-link:focus {
  top: 0.5rem;
}

main:focus {
  outline: none;
}

.home {
  --tangerine: #fd7621;
  --tangerine-pressed: #e46a1e;
  --brand: #b64702;
  --brand-tint: #ffefe4;
  --sunken: #efebe5;
  --ink-3: #71695f;
  --fit-great: #177a4e;
  --shadow: 43 29 18;
  --display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  .home {
    --brand: #fd7621;
    --brand-tint: #352418;
    --sunken: #262320;
    --ink-3: #968e83;
    --fit-great: #38b27c;
    --shadow: 0 0 0;
  }
}

/* Zero-specificity resets (:where), so every class below can set its own margins. */
:where(h1, h2, h3) {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

:where(p) {
  margin: 0;
}

:where(ul, ol) {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home a:focus-visible,
.home summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

.home .ico {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

/* ---- Header, on the hero ---- */

.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
}

.top-in {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 70rem;
  margin-inline: auto;
  padding: 0.875rem 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo img {
  width: 2.5rem;
  height: 2.5rem;
}

.top nav {
  display: none;
  margin-left: auto;
}

.top nav ul {
  display: flex;
  gap: 1.75rem;
}

.top nav a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.top nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.pill {
  margin-left: auto;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #1d1a16;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.pill:hover {
  background: #ffefe4;
}

@media (min-width: 48rem) {
  .top nav {
    display: block;
  }
  .pill {
    margin-left: 0;
  }
}


/* Homepage */
.wrap {
  width: min(calc(100% - 3rem), 72rem);
  margin-inline: auto;
}
.mast { border-bottom: 1px solid var(--hairline); }
.mast-inner, .mast nav, .wordmark, .downloads, .downloads a, .foot-row, .site-foot nav { display: flex; align-items: center; }
.mast-inner { min-height: 4.8rem; justify-content: space-between; gap: 1rem; }
.wordmark { gap: .48rem; color: var(--ink); font: 800 1.8rem/1 var(--display); letter-spacing: -.07em; text-decoration: none; }
.wordmark img { border-radius: 26%; }
.mast nav { gap: clamp(.95rem, 3vw, 2.4rem); }
.mast nav a, .site-foot nav a { font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.mast nav a:hover, .site-foot nav a:hover, .menu-strip a:hover { text-decoration: underline; text-underline-offset: .23em; }
.mast nav .get-app { background: var(--ink); color: var(--canvas); border-radius: 999px; padding: .6rem 1.05rem; white-space: nowrap; }
.get-app span { margin-left: .23rem; }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem,6vw,5rem); padding-block: clamp(2rem,5vw,4.5rem); }
.intro-copy { padding-left: clamp(0rem,1vw,.8rem); }
.intro-copy h1 { font: 800 clamp(3.6rem,6.65vw,6rem)/.94 var(--display); letter-spacing: -.078em; }
.intro-copy h1 em { color: var(--brand); font-style: normal; }
.intro-text { max-width: 28rem; color: var(--ink-2); font-size: clamp(1.06rem,1.6vw,1.34rem); line-height: 1.5; margin: 1.35rem 0 1.8rem; }
#download { scroll-margin-top: 1rem; }
.downloads { flex-wrap: wrap; gap: .65rem; }
.downloads a { flex: 0 1 auto; gap: .55rem; color: white; background: #171614; border: 1px solid #54504a; text-decoration: none; padding: .48rem .84rem; min-height: 3.3rem; border-radius: .67rem; }
.downloads a:hover { background: #312e2a; }
.downloads small, .downloads strong { display: block; }
.downloads small { font-size: .65rem; line-height: 1.15; letter-spacing: .02em; }
.downloads strong { font-family: "Inter",sans-serif; font-size: 1.19rem; line-height: 1.15; font-weight: 600; letter-spacing: -.045em; }
.downloads svg { width: 1.65rem; height: 1.8rem; flex-shrink: 0; }
.price-note { color: var(--ink-2); font-size: .78rem; margin-top: .75rem; }

.meal-stage { position: relative; isolation: isolate; overflow: hidden; border-radius: 2.35rem; aspect-ratio: 1.08; background: radial-gradient(ellipse at 24% 18%, #ffcc8f, transparent 58%), linear-gradient(140deg,#ffac5d,#fa812f 68%,#ed6920); }
.meal-stage::before, .meal-stage::after { content: ""; position: absolute; z-index: -1; width: 96%; aspect-ratio: 1; border: 1px solid rgb(255 255 255 / .42); border-radius: 50%; top: 33%; left: 27%; }
.meal-stage::after { width: 122%; top: 20%; left: 14%; }
.screen { overflow: hidden; background: #f7f5f1; border: clamp(4px,.4vw,7px) solid #292724; border-radius: 13% 13% 0 0 / 7.8% 7.8% 0 0; border-bottom: 0; box-shadow: 2px 2px 0 1px #706b63, 8px 18px 32px rgb(50 24 8 / .21); }
.screen img { display: block; width: 100%; height: auto; }
.screen-meal { position: absolute; width: 56%; left: 22%; bottom: -3%; transform: rotate(-5deg); }

.menu-strip { border-block: 1px solid var(--hairline); }
.strip-inner { display: flex; align-items: baseline; gap: 2.2rem; padding-block: 1.4rem; }
.strip-inner h2 { flex: none; }
.strip-inner h2 a { font: 700 .88rem/1.5 "Inter",sans-serif; letter-spacing: 0; }
.strip-inner h2 span { color: var(--brand); }
.strip-inner ul { flex: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.25rem; }
.strip-inner li a { font: 800 clamp(1rem,1.7vw,1.35rem)/1.25 var(--display); letter-spacing: -.04em; }
.menu-strip a { text-decoration: none; color: var(--ink); }
.inside, .web-tools, .questions { padding-block: clamp(3rem,6vw,5rem); }
.inside h2, .web-tools h2, .questions h2, .end-inner h2 { font: 800 clamp(2.2rem,4.1vw,3.65rem)/1 var(--display); letter-spacing: -.065em; }
.product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; margin-top: 1.6rem; }
.feature { display: flex; flex-direction: column; overflow: hidden; color: #232421; border-radius: 1.65rem; }
.pick-feature { background: #f4e7d5; }
.map-feature { background: #e1eade; }
.feature-copy { padding: clamp(1.45rem,3vw,2.45rem) clamp(1.45rem,3vw,2.45rem) 0; }
.feature h3 { font: 800 clamp(1.6rem,2.8vw,2.3rem)/1.08 var(--display); letter-spacing: -.055em; }
.feature-copy p { max-width: 32rem; margin-top: .64rem; color: #484741; line-height: 1.55; }
.feature-art { position: relative; width: 100%; height: clamp(13rem,24vw,20rem); margin-top: 1.65rem; overflow: hidden; }
.feature-art .screen { width: min(70%,18.7rem); margin: 0 auto; }
.feature-art .screen-map { transform: rotate(3deg) translateY(.5rem); }
.feature-art .screen-picks { transform: rotate(-3deg) translateY(.5rem); }

.web-tools, .questions { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem,7vw,6rem); border-top: 1px solid var(--hairline); align-items: start; }
.web-tools p, .questions p, .end-inner p { margin-top: .8rem; color: var(--ink-2); line-height: 1.55; }
.resource-links a, .questions summary { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding: 1.15rem 0; border-bottom: 1px solid var(--hairline); font-weight: 600; text-decoration: none; color: var(--ink); }
.resource-links a:hover { color: var(--brand); }
.resource-links a span { color: var(--brand); }
.all-chains { margin-top: 1.1rem; }
.all-chains summary { font-size: .9rem; cursor: pointer; color: var(--brand); font-weight: 600; }
.all-chains ul { columns: 2; margin-top: .7rem; font-size: .83rem; color: var(--ink-2); }
.questions summary { cursor: pointer; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: '+'; color: var(--brand); }
.questions details[open] summary::after { content: '−'; }
.questions details p { padding-bottom: 1rem; }
.end-band { background: #ffe0b8; color: #231c14; }
.end-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(2.5rem,5vw,4rem); }
.end-inner p { color: #554737; }
.site-foot { border-top: 1px solid var(--hairline); padding-block: 1.65rem; }
.foot-row { justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-foot nav { gap: 1.1rem; flex-wrap: wrap; }
.site-foot p { margin-top: 1rem; font-size: .78rem; color: var(--ink-2); }

@media (max-width: 50rem) {
  .intro-grid { gap: 1.4rem; }
  .strip-inner { flex-wrap: wrap; gap: .75rem 1.25rem; }
  .strip-inner ul { flex-basis: 100%; justify-content: start; }
}
@media (max-width: 43rem) {
  .wrap { width: min(calc(100% - 2.5rem),35rem); }
  .mast-inner { min-height: 4.1rem; }
  .mast .app-tour { display: none; }
  .mast nav { gap: .9rem; }
  .wordmark { font-size: 1.55rem; }
  .wordmark img { width: 32px; height: 32px; }
  .intro-grid, .web-tools, .questions, .product-grid { grid-template-columns: 1fr; }
  .intro-grid { padding-block: 2.5rem 1.5rem; gap: 1.7rem; }
  .intro-copy { padding: 0; }
  .intro-copy h1 { font-size: clamp(3.6rem,13vw,5.4rem); }
  .intro-text { margin: 1rem 0 1.25rem; max-width: 27rem; }
  .meal-stage { aspect-ratio: 1.2; border-radius: 1.4rem; }
  .screen-meal { width: 51%; left: 24.5%; bottom: -4%; }
  .product-grid { gap: 1rem; }
  .feature-art { height: 15.5rem; }
  .end-inner { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
  .web-tools, .questions { gap: 1.2rem; }
}
@media (max-width: 22.5rem) {
  .wrap { width: calc(100% - 1.6rem); }
  .downloads { gap: .4rem; }
  .downloads a { padding: .45rem .62rem; gap: .4rem; }
  .downloads strong { font-size: 1.07rem; }
}
@media (prefers-color-scheme: dark) {
  .feature { color: #f6f2e9; }
  .pick-feature { background: #322b23; }
  .map-feature { background: #27332c; }
  .feature-copy p { color: #d3cec5; }
  .end-band { background: #33271e; color: #f6f2ec; }
  .end-inner p { color: #dbd0c5; }
}
