/* Hungry site — shared base (home uses home.css on top). Tokens mirror the app: terracotta accent, warm paper, ink. */
@font-face { font-family: "Inter Tight"; src: url(/assets/fonts/inter-tight.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/assets/fonts/instrument-serif.woff2) format("woff2"); font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/assets/fonts/instrument-serif-italic.woff2) format("woff2"); font-style: italic; font-display: swap; }

:root {
  --terra: #d95430;
  --terra-deep: #b8431f;
  --terra-soft: #fbece6;
  --cream: #f9f3ea;
  --paper: #fffdf9;
  --ink: #1c1b1a;
  --ink-2: #6f6a63;
  --line: rgba(28, 27, 26, .12);
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "New York", Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* document pages */
  --bg: var(--paper); --fg: var(--ink); --fg-2: var(--ink-2); --accent-ink: var(--terra-deep); --surface: #f6f2eb;
}
@media (prefers-color-scheme: dark) {
  body.doc-page { --bg: #1c1b1a; --fg: #f5f2ee; --fg-2: #a9a39c; --line: rgba(255, 255, 255, .14); --accent-ink: #f59a7c; --surface: #262524; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--terra); color: #fff; }

/* Floating pill navigation */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.nav .pill {
  pointer-events: auto; margin: 0 auto; width: min(760px, 100% - 28px); height: 56px; padding: 0 8px 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(28, 27, 26, .78); color: #f9f3ea; border-radius: 999px;
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 10px 40px -12px rgba(40, 15, 5, .45), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; font-weight: 750; font-size: 19px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 14.5px; font-weight: 500; }
.nav-links a { color: rgba(249, 243, 234, .72); padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .08); }
.nav-links a.btn-solid { color: #fff; background: var(--terra); padding: 0 18px; height: 40px; display: inline-flex; align-items: center; margin-left: 6px; font-weight: 650; }
.nav-links a.btn-solid:hover { background: #e8633f; }
@media (max-width: 640px) { .nav-links a.hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 999px; font: 650 17px/1 var(--sans); border: 1.5px solid transparent; cursor: pointer; transition: transform .4s var(--ease), background .25s, color .25s, border-color .25s; will-change: transform; }
.btn:hover { text-decoration: none; }
.btn-solid { background: var(--terra); color: #fff; }
.btn-solid:hover { background: var(--terra-deep); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #000; }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost { border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { background: var(--surface); }
.btn[aria-disabled="true"] { cursor: default; }
.btn svg { width: 18px; height: 18px; }

/* Footer */
.foot { background: var(--ink); color: rgba(249, 243, 234, .6); padding: 40px 0 52px; font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: rgba(249, 243, 234, .6); }
.foot a:hover { color: #fff; text-decoration: none; }
.foot small { display: block; flex-basis: 100%; font-size: 12.5px; line-height: 1.55; opacity: .85; max-width: 90ch; }

/* Document pages (privacy) */
.doc { padding: clamp(110px, 14vw, 160px) 0 clamp(56px, 8vw, 100px); }
.doc .wrap { width: min(720px, 100% - 40px); }
.doc h1 { font: 400 clamp(44px, 7vw, 76px)/1 var(--serif); letter-spacing: -.02em; }
.doc .meta { margin-top: 14px; color: var(--fg-2); font-size: 15px; }
.doc h2 { font-size: 24px; margin: 46px 0 12px; letter-spacing: -.02em; font-weight: 700; }
.doc p, .doc li { color: var(--fg-2); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 8px; }
.doc strong { color: var(--fg); font-weight: 650; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--fg); font-weight: 650; }
.doc td { color: var(--fg-2); }

/* Link fallback page */
.open { min-height: 100svh; display: grid; place-items: center; padding: 100px 0 40px; background: radial-gradient(120% 90% at 20% 0%, #e0714f, var(--terra) 45%, #a8452a); color: var(--cream); }
.open-card { max-width: 440px; margin: auto; text-align: center; }
.open-card img { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 28px; box-shadow: 0 24px 50px -18px rgba(60, 15, 0, .6); }
.open-card h1 { font: 400 clamp(44px, 9vw, 60px)/1 var(--serif); letter-spacing: -.02em; }
.open-card p { margin-top: 16px; opacity: .85; }
.open-card .cta { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.open-card .btn-line { color: var(--cream); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
