/* Spices website. Direction: Measuring Cup (November 2026).
   Off-white and off-black, one paprika accent, Space Grotesk for words, IBM Plex Mono for amounts, sharp corners, hairlines. */

@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/SpaceGrotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/SpaceGrotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/SpaceGrotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #FAFAF7; --paper: #FDFDFB; --ink: #151514; --muted: #67675F; --hair: #DEDED7; --quiet: #F0F0EA;
  --accent: #C4452B; --accent-ink: #FFF6F3; --accent-tint: #F9E3DD;
  --max: 1200px; --r: 2px;
  --font: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141413; --paper: #1C1C1A; --ink: #F2F1EC; --muted: #9C9B94; --hair: #2D2D2A; --quiet: #202020; --accent: #E0644A; --accent-ink: #1A0C08; --accent-tint: #3A221B; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.02; font-weight: 700; }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Reveal on scroll: index.html adds .in through IntersectionObserver */
.r { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 800ms var(--ease); }
.r.in { opacity: 1; transform: none; }
.r.d1 { transition-delay: 80ms; } .r.d2 { transition-delay: 160ms; } .r.d3 { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r { opacity: 1; transform: none; transition: none; }
  .ruler .line { transition: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -0.02em; font-size: 18px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--muted); transition: color 200ms; }
.site-nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .site-nav { display: none; } .site-header .button { margin-left: auto; } }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r); background: var(--ink); color: var(--bg); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform 160ms var(--ease), background 200ms, color 200ms; }
.button:hover { background: var(--accent); color: var(--accent-ink); }
.button:active { transform: translateY(1px); }
.button.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.button.accent { background: var(--accent); color: var(--accent-ink); }
.button.accent:hover { background: var(--ink); color: var(--bg); }
.textlink { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--hair); padding-bottom: 2px; transition: border-color 200ms; }
.textlink:hover { border-color: var(--accent); }
.note { font-size: 14px; color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 30em; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* Device frame around real screenshots */
.phone { width: 270px; aspect-ratio: 1206 / 2622; border-radius: 42px; padding: 9px; background: #121211; box-shadow: 0 30px 60px rgba(20, 20, 15, 0.22), inset 0 0 0 1px rgba(255,255,255,0.08); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }

/* Hero */
.hero { padding: 72px 0 0; border-bottom: 1px solid var(--hair); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
h1 { font-size: clamp(40px, 5.4vw, 70px); }
.ruler { margin-top: 44px; border-top: 1px solid var(--hair); padding-top: 18px; font-family: var(--mono); font-size: clamp(16px, 1.6vw, 20px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; min-height: 64px; }
.ruler .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.ruler .line { display: block; transition: opacity 320ms var(--ease), transform 420ms var(--ease); }
.ruler .line.out { opacity: 0; transform: translateY(-8px); }
.ruler .from .line { color: var(--muted); }
.ruler .to .line { color: var(--accent); font-weight: 600; }
.hero .phone { justify-self: end; margin-bottom: -48px; }
@media (max-width: 960px) { .hero { padding-top: 48px; } .hero .wrap { grid-template-columns: 1fr; } .hero .phone { justify-self: center; width: 230px; margin: 24px 0 -40px; } }

/* Sources: hairline grid */
.sources { padding: 88px 0 0; }
.sources p { font-weight: 600; margin-bottom: 18px; }
.grid-lines { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); list-style: none; margin: 0; padding: 0; }
.grid-lines li { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 20px 22px; }
.grid-lines li strong { display: block; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.grid-lines li span { color: var(--muted); font-size: 14px; font-family: var(--mono); }
@media (max-width: 860px) { .grid-lines { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .grid-lines { grid-template-columns: 1fr; } }

/* Sections */
section { scroll-margin-top: 76px; }
.section { padding: 112px 0 0; }
.head, .section-head { max-width: 46rem; margin-bottom: 40px; }
.head p, .section-head p { color: var(--muted); font-size: 19px; margin-top: 14px; max-width: 34em; }

/* Conversion tiles */
.conversions { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.conv { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 28px 26px 30px; min-height: 220px; display: flex; flex-direction: column; }
.conv .from { font-family: var(--mono); color: var(--muted); font-size: 15px; }
.conv .to { font-family: var(--mono); font-weight: 600; font-size: clamp(26px, 2.8vw, 36px); color: var(--accent); margin: 10px 0 auto; letter-spacing: -0.01em; line-height: 1.1; }
.conv p { color: var(--muted); font-size: 15px; margin-top: 22px; }
@media (max-width: 860px) { .conversions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .conversions { grid-template-columns: 1fr; } }
.fitnote { margin-top: 24px; color: var(--muted); font-size: 16px; max-width: 60ch; }

/* Sound familiar */
.familiar { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.familiar .head { position: sticky; top: 96px; }
.quotes { list-style: none; margin: 0; padding: 0; }
.quotes li { padding: 26px 0; border-top: 1px solid var(--hair); }
.quotes blockquote { margin: 0 0 8px; font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.quotes p { color: var(--muted); }
.quotes p strong { color: var(--ink); font-weight: 600; }
@media (max-width: 800px) { .familiar { grid-template-columns: 1fr; } .familiar .head { position: static; } }

/* How it works */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--hair); }
.steps li:last-child { border-bottom: 1px solid var(--hair); }
.steps .n { font-family: var(--mono); font-weight: 600; color: var(--accent); font-size: 15px; padding-top: 6px; }
.steps p { color: var(--muted); margin-top: 6px; font-size: 16px; }
.duo { position: relative; height: 620px; }
.duo .phone { position: absolute; }
.duo .one { left: 6%; top: 0; z-index: 2; }
.duo .two { right: 4%; top: 90px; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } .duo { height: 540px; } .duo .phone { width: 220px; } }

/* Household */
.house { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.house .photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); }
.house .photo img { width: 100%; height: 100%; object-fit: cover; }
.housenote { position: absolute; right: -16px; bottom: 24px; background: var(--paper); border: 1px solid var(--hair); padding: 18px 20px; max-width: 320px; box-shadow: 0 20px 40px rgba(20,20,15,0.18); }
.housenote small { display: block; font-family: var(--mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.housenote p { font-weight: 600; font-size: 17px; line-height: 1.3; }
.housenote footer { margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.house .copy p { color: var(--muted); font-size: 19px; margin-top: 14px; }
.house dl { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.house dt { font-weight: 700; }
.house dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .house { grid-template-columns: 1fr; } .housenote { right: 16px; } }

/* Cook mode */
.cook .head { margin-left: auto; margin-right: auto; text-align: center; }
.cook .phone { margin: 0 auto 40px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--hair); max-width: 900px; margin: 0 auto; }
.facts div { padding: 24px 24px 28px; border-bottom: 1px solid var(--hair); }
.facts div:nth-child(odd) { border-right: 1px solid var(--hair); }
.facts h3 { margin-bottom: 6px; }
.facts p { color: var(--muted); font-size: 16px; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } .facts div:nth-child(odd) { border-right: 0; } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cell { background: var(--paper); border: 1px solid var(--hair); padding: 28px; min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.cell h3 { margin-bottom: 8px; }
.cell p { color: var(--muted); font-size: 16px; max-width: 28em; }
.cell.w2 { grid-column: span 2; } .cell.w3 { grid-column: span 3; } .cell.w4 { grid-column: span 4; }
.cell.photo { padding: 0; min-height: 320px; border: 0; }
.cell.photo img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cell.photo .copy { position: relative; margin-top: auto; padding: 90px 28px 28px; color: #FBFAF6; background: linear-gradient(180deg, transparent, rgba(21,21,20,0.88) 60%); }
.cell.photo .copy p { color: rgba(251,250,246,0.82); }
.cell.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cell.accent p { color: color-mix(in srgb, var(--accent-ink) 82%, transparent); }
.cell.accent .price { font-family: var(--mono); font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin-bottom: 12px; }
.cell .shot { width: 140px; border-radius: 12px; margin-bottom: 18px; box-shadow: 0 14px 34px rgba(20,20,15,0.2); }
.pro { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; padding: 3px 7px; background: var(--accent); color: var(--accent-ink); vertical-align: middle; margin-left: 8px; }
@media (max-width: 860px) { .cell.w2, .cell.w3, .cell.w4 { grid-column: span 6; } }

/* FAQ */
.faq { max-width: 800px; }
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 700; font-size: 19px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 24px; line-height: 1; color: var(--accent); transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 60ch; }

/* Call to action */
.cta { margin: 112px auto 0; background: var(--ink); color: var(--bg); padding: 56px; display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; }
.cta img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); }
.cta p { margin-top: 10px; opacity: 0.72; font-size: 18px; max-width: 34em; }
.cta .button { background: var(--accent); color: var(--accent-ink); }
.cta .button:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; padding: 36px 28px; } }

/* Footer */
.site-footer { padding: 48px 0 56px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-footer nav { display: flex; gap: 22px; margin-left: auto; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .credits { flex-basis: 100%; font-size: 13px; }

/* Plain pages: support, privacy, 404 */
.page { max-width: 760px; padding: 64px 24px 96px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); }
.page h2 { font-size: 26px; margin-top: 40px; }
.page p, .page li { color: var(--muted); }
.page a { text-decoration-color: var(--hair); text-underline-offset: 3px; }
.page a:hover { text-decoration-color: var(--accent); }
.page .updated { font-family: var(--mono); font-size: 14px; margin-top: 12px; }

/* Recipe app comparison page */
.comparison { padding-bottom: 72px; }
.comparison-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 6vw, 80px); padding: clamp(40px, 7vw, 84px) 0 24px; }
.comparison-hero h1 { font-size: clamp(36px, 5.2vw, 62px); }
.comparison-example { margin: 0; border: 1px solid var(--hair); background: var(--paper); padding: clamp(18px, 3vw, 32px); }
.comparison-example dl, .comparison-formats { margin: 0; }
.comparison-example dl > div, .comparison-formats > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-family: var(--mono); font-size: 15px; }
.comparison-example dt, .comparison-formats dt { color: var(--muted); }
.comparison-example dd, .comparison-formats dd { margin: 0; font-weight: 600; color: var(--accent); }
.comparison-example figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); }
.comparison-section { padding-top: clamp(40px, 6vw, 76px); }
.comparison-section .section-head { margin-bottom: 24px; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--paper); border: 1px solid var(--hair); padding: 26px; }
.tile h3 { margin-bottom: 10px; }
.tile p { color: var(--muted); margin: 0 0 10px; font-size: 16px; }
.tile p:last-child { margin-bottom: 0; }
.tile.t-paprika { border-color: var(--accent); }
.comparison-formats { max-width: 42rem; border: 1px solid var(--hair); background: var(--paper); padding: 8px 22px; }
.comparison-formats > div:last-child { border-bottom: 0; }
.comparison-formats dd { color: var(--ink); }
.comparison-formats code { overflow-wrap: anywhere; font-family: var(--mono); }
.comparison-copy { max-width: 42rem; color: var(--muted); }
.comparison-cta { margin-top: 48px; }
@media (max-width: 720px) { .comparison-hero, .comparison-grid { grid-template-columns: 1fr; } }
