/* getmenumax.com, in the app's design language (design spec §2-§5):
   paper and ink, serif for food and headlines, system sans for interface,
   hairline dividers instead of cards, generous space, no decorative color.
   Green and red appear only inside the allergy-shield illustration. */

:root {
  color-scheme: light;
  --paper: #faf7f2;
  --paper-raised: #ffffff;
  --ink: #1a1815;
  --ink-secondary: #6e6a63;
  --ink-tertiary: #9b968d;
  --hairline: #e5e1d8;
  --safe: #1d7a4f;
  --warn: #b3261e;
  --on-ink: #faf7f2;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --gutter: 20px;
  --measure: 680px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink-secondary);
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.hairline {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 0;
}

/* Site header: the serif wordmark, nothing else. */
.site-header {
  padding-block: 20px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

main {
  padding-block: 32px 64px;
}

/* Type, after the app's scale (design spec §4), sized up for reading on the web. */
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant: small-caps;
  text-transform: lowercase;
  color: var(--ink-secondary);
  margin: 0 0 12px;
}

.meta {
  font-size: 15px;
  color: var(--ink-secondary);
  margin: 0;
}

p {
  margin: 0 0 16px;
}

/* ---------- Landing ---------- */

.hero {
  padding-block: 32px 48px;
}

.hero h1 {
  font-size: clamp(44px, 9vw, 64px);
  margin-bottom: 8px;
}

.hero .tagline {
  font-family: var(--serif);
  font-size: clamp(24px, 4.6vw, 32px);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 24px;
}

.hero .lede {
  font-size: 18px;
  color: var(--ink-secondary);
  max-width: 560px;
  margin-bottom: 32px;
}

/* Until the app is live: a static notice, not a link (build notes). */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.badge small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

section {
  padding-block: 48px;
}

section h2 {
  font-size: clamp(26px, 5vw, 32px);
  margin-bottom: 24px;
}

/* How it works: three steps, hairline-divided. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding-block: 20px;
  border-bottom: 1px solid var(--hairline);
}

.steps .num {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-tertiary);
  line-height: 1.3;
}

.steps h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.steps p {
  color: var(--ink-secondary);
  margin: 0;
}

/* The allergy-shield illustration: the app's full-menu rows on paper, divided
   by hairlines (dividers, not cards), and the only place green and red appear
   on the site. */
.shield {
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.shield-row {
  padding-block: 16px;
  border-bottom: 1px solid var(--hairline);
}

.dish-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.dish {
  flex: 1;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.price {
  font-family: var(--serif);
  font-size: 18px;
}

.safe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant: small-caps;
  text-transform: lowercase;
  color: var(--safe);
}

.safe::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--safe);
}

.shield-row.flagged .dish,
.shield-row.flagged .price {
  color: var(--warn);
}

.flag {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--warn);
}

.shield figcaption {
  padding-block: 12px 0;
  font-size: 13px;
  color: var(--ink-tertiary);
}

/* The details: short rows. */
.details {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.details li {
  padding-block: 16px;
  border-bottom: 1px solid var(--hairline);
}

.cta {
  padding-block: 48px 16px;
  text-align: left;
}

.cta p {
  font-family: var(--serif);
  font-size: clamp(22px, 4.4vw, 28px);
  line-height: 1.3;
  margin-bottom: 20px;
}

/* ---------- Legal pages ---------- */

.legal h1 {
  font-size: clamp(34px, 7vw, 44px);
  margin-bottom: 8px;
}

.legal .effective {
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.legal p {
  font-size: 17px;
}

.legal strong {
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 24px 40px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--ink-secondary);
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  main {
    padding-block: 16px 48px;
  }

  section {
    padding-block: 40px;
  }
}
