/* IntelEat website. Colors and fonts match the app. */
:root {
  --stone: #D7D1C4;
  --paper: #EEEAE0;
  --ink: #23281F;
  --ink-soft: #4E5547;
  --ink-faint: #6C7264;
  --sage: #52705A;
  --forest: #34462F;
  --gold: #93764F;
  --line: rgba(35, 40, 31, 0.16);
  --line-strong: #23281F;
  --on-forest: #F3F0E6;
  --focus: #93764F;
  --radius-lg: 22px;
  --radius-sm: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --stone: #121310;
    --paper: #1C1E19;
    --ink: #ECE8DD;
    --ink-soft: #C3C0B5;
    --ink-faint: #9A988E;
    --sage: #8FB093;
    --forest: #2B3A28;
    --gold: #C7AD82;
    --line: rgba(236, 232, 221, 0.16);
    --line-strong: #ECE8DD;
    --on-forest: #ECE8DD;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6;
}
a { color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--forest); }
@media (prefers-color-scheme: dark) { a:hover { color: var(--gold); } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

h1, h2, h3, .brand, .amount, .label-title {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.9rem); line-height: 1.05; margin: 0 0 18px; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.2; margin: 0 0 16px; }
h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.fine { font-size: 0.875rem; color: var(--ink-faint); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.3rem; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #B0916A, #7C6242); color: #34462F; }
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { color: var(--sage); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--sage); color: #fff; text-decoration: none; font-weight: 600;
  border-radius: 100px; padding: 13px 24px; border: 1.5px solid var(--sage); font-size: 1rem;
}
.btn:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn-light { background: var(--on-forest); color: #34462F; border-color: var(--on-forest); }
.btn-light:hover { background: #fff; color: #34462F; border-color: #fff; }
@media (prefers-color-scheme: dark) {
  .btn { color: #121310; } .btn:hover { color: #ECE8DD; }
  .btn-ghost { color: var(--ink); } .btn-light { color: #1C1E19; }
}

/* Hero */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } .hero { padding: 84px 0 92px; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }

/* The food-label panel: the page's one bold element. */
.label {
  margin: 0; background: #FBF9F3; color: #1A1D17; border: 3px solid #1A1D17;
  padding: 14px 16px 12px; max-width: 420px; width: 100%; justify-self: center;
  box-shadow: 10px 10px 0 var(--forest);
  font-size: 0.95rem;
}
.label-head { border-bottom: 10px solid #1A1D17; padding-bottom: 6px; margin-bottom: 2px; }
.label-title { font-size: 2.1rem; line-height: 1; margin: 0 0 6px; }
.label-sub { margin: 0; font-size: 0.85rem; }
.label-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid #1A1D17; }
.label-row span:first-child { font-weight: 700; }
.label-row span:last-child { text-align: right; }
.label-thick { border-bottom-width: 5px; }
.label-last { border-bottom: 6px solid #1A1D17; }
.label .grade { background: #3A5240; color: #fff; padding: 1px 9px; border-radius: 4px; font-weight: 700; }
.label .ok { color: #3A5240; font-weight: 600; }
.label figcaption { font-size: 0.78rem; color: #4E5547; margin-top: 8px; }

/* Sections */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-tight { padding-top: 8px; border-top: 0; }
.section-alt { background: var(--paper); }
.section-lede { color: var(--ink-soft); max-width: 40em; margin-bottom: 28px; }
.page-head { padding: 56px 0 28px; }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }

/* Features as a definition list, two columns on wide screens */
.features { display: grid; gap: 28px 48px; margin: 28px 0 0; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.features div { border-left: 3px solid var(--gold); padding-left: 16px; }
.features dt { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.2rem; margin-bottom: 4px; }
.features dd { margin: 0; color: var(--ink-soft); }

/* Plans */
.plans { display: grid; gap: 18px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.plan { background: var(--stone); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; display: flex; flex-direction: column; }
.section-alt .plan { background: var(--stone); }
.plan h3 { font-size: 1.4rem; margin-bottom: 8px; }
.price { margin: 0 0 6px; display: flex; align-items: baseline; gap: 8px; }
.amount { font-size: 2.6rem; line-height: 1; }
.per { color: var(--ink-faint); font-size: 0.95rem; }
.plan-tag { color: var(--ink-soft); min-height: 3.2em; }
.checks { list-style: none; padding: 0; margin: 8px 0 24px; flex: 1; }
.checks li { position: relative; padding: 6px 0 6px 28px; border-top: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 11px; height: 6px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.plan-featured { background: var(--forest) !important; color: var(--on-forest); border-color: var(--forest); }
.plan-featured .per, .plan-featured .plan-tag { color: rgba(243, 240, 230, 0.78); }
.plan-featured .checks li { border-top-color: rgba(243, 240, 230, 0.2); }
.plan-featured .checks li::before { border-color: #C7AD82; }
.plan-badge { display: inline-block; align-self: flex-start; background: #C7AD82; color: #2B2A1F; font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; margin-bottom: 12px; }
.center-note { margin-top: 22px; }

/* Long-form pages */
.prose h2 { margin-top: 40px; font-size: 1.45rem; scroll-margin-top: 16px; }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { color: var(--ink-soft); max-width: 68ch; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.toc { background: var(--paper); border-radius: var(--radius-sm); padding: 18px 20px; margin: 8px 0 12px; }
.toc-title { font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.toc ol { list-style: none; padding: 0; margin: 0; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 28px; } }
.toc li { margin: 0 0 6px; break-inside: avoid; font-size: 0.93rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; margin-top: 24px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.brand-footer { font-size: 1.15rem; margin-bottom: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-start; max-width: 520px; }
.footer-nav a { color: var(--ink); font-size: 0.93rem; }
.footer-nav a[aria-current="page"] { color: var(--sage); }
.copy { margin-top: 18px; }

@media (max-width: 520px) {
  .main-nav { gap: 14px; }
  .label { box-shadow: 6px 6px 0 var(--forest); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }
