/* Alfred's Bar website. Tokens mirror the app (src/theme/index.ts). No JavaScript, no third-party requests. */

@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/Fraunces-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/Fraunces-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/assets/fonts/Fraunces-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/Inter-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #0c0b0a;
  --bg-clear: rgba(12, 11, 10, 0);
  --surface: #151311;
  --ivory: #f3eadb;
  --text-2: #c2b5a2;
  --text-3: #a99c8a;
  --brass: #c8a15a;
  --brass-soft: rgba(200, 161, 90, 0.14);
  --hairline: rgba(243, 234, 219, 0.1);
  --gutter: 24px;
  --max: 1180px;
  --read: 42rem;
  --radius: 20px;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--ivory); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: var(--gutter); }

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

/* ── Header ─────────────────────────────────────────────── */
.site-header { position: relative; z-index: 3; }
/* Over the hero only where the header fits on one line; on phones it sits above the scene. */
@media (min-width: 600px) { .site-header--over { position: absolute; left: 0; right: 0; top: 0; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.wordmark { font: 600 1.375rem/1 var(--display); letter-spacing: -0.02em; text-decoration: none; color: var(--ivory); white-space: nowrap; }
.wordmark:hover { color: var(--ivory); }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--text-2); padding: 6px 0; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ivory); }
.nav a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--brass); }

/* ── Hero: Alfred's Bar, emerging from the page and dissolving back into it ───── */
.hero { position: relative; isolation: isolate; }
.hero-scene { position: relative; margin: 0; }
.hero-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 74% 50%; }
.hero-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg) 0%, var(--bg-clear) 26%),
    linear-gradient(to top, var(--bg) 0%, var(--bg-clear) 34%);
}
.hero-copy { position: relative; z-index: 2; }
.hero-name { display: block; font: 600 1.125rem/1.2 var(--display); color: var(--brass); letter-spacing: -0.01em; margin: 0 0 14px; }
.hero h1 { font: 400 clamp(2.75rem, 7.4vw, 5rem)/1.02 var(--display); letter-spacing: -0.035em; margin: 0 0 22px; }
.hero-lede { font: 400 clamp(1.25rem, 2.2vw, 1.5rem)/1.4 var(--display); color: var(--ivory); margin: 0 0 12px; max-width: 26ch; }
.hero-body { color: var(--text-2); max-width: 34rem; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 0.9375rem; color: var(--text-2); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); flex: none; }

/* Phones and small tablets: the scene on top, framed on Alfred; words below. */
.hero-scene { aspect-ratio: 1 / 1; max-height: 78vh; max-height: 78svh; width: 100%; }
.hero-copy { margin-top: -18px; padding-bottom: 48px; }

@media (min-width: 600px) {
  .hero-scene { aspect-ratio: 4 / 3; }
}

/* Wide: the scene fills the hero behind the words; the shelves on the left fade into the page. */
@media (min-width: 960px) {
  .hero { min-height: min(92vh, 860px); min-height: min(92svh, 860px); display: flex; align-items: flex-end; }
  .hero-scene { position: absolute; inset: 0 0 0 auto; width: min(100%, 1448px); aspect-ratio: auto; max-height: none; }
  .hero-scene img { object-position: 70% 60%; }
  .hero-scene::after {
    background:
      linear-gradient(to right, var(--bg) 0%, rgba(12, 11, 10, 0.92) 24%, rgba(12, 11, 10, 0.55) 42%, var(--bg-clear) 62%),
      linear-gradient(to bottom, var(--bg) 0%, var(--bg-clear) 22%),
      linear-gradient(to top, var(--bg) 0%, var(--bg-clear) 30%);
  }
  .hero-copy { margin-top: 0; padding-top: 160px; padding-bottom: 104px; }
  .hero-copy .inner { max-width: 33rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-scene img { animation: arrive 900ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  .hero-copy .inner { animation: arrive 700ms 120ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ── Sections ───────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.section-title { font: 400 clamp(2rem, 4.4vw, 3.25rem)/1.06 var(--display); letter-spacing: -0.03em; margin-bottom: 18px; max-width: 18ch; }
.section-intro { color: var(--text-2); max-width: 36rem; margin-bottom: 0; }
.muted { color: var(--text-3); }

/* The question the app answers */
.question { padding: 8px 0 clamp(56px, 8vw, 96px); }
.question .statement { font: 400 clamp(1.75rem, 3.6vw, 2.75rem)/1.18 var(--display); letter-spacing: -0.02em; max-width: 24ch; margin: 0 0 22px; }
.question .statement em { font-style: italic; color: var(--brass); }

/* What it does: a menu, not cards */
.menu-grid { display: grid; gap: 48px; margin-top: 48px; }
.menu-photo { margin: 0; max-width: 440px; }
.menu-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.menu-photo figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--text-3); }
.menu { list-style: none; margin: 0; padding: 0; }
.menu li { padding: 22px 0 24px; border-top: 1px solid var(--hairline); }
.menu .kicker { margin: 0 0 6px; font: 600 0.8125rem/1.3 var(--sans); letter-spacing: 0.02em; color: var(--brass); }
.menu li:last-child { border-bottom: 1px solid var(--hairline); }
.menu h3 { font: 400 clamp(1.5rem, 2.4vw, 1.875rem)/1.15 var(--display); letter-spacing: -0.02em; margin-bottom: 8px; }
.menu p { color: var(--text-2); margin: 0; max-width: 32rem; }
@media (min-width: 900px) {
  .menu-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .menu-photo { position: sticky; top: 32px; max-width: none; }
}

/* Inside Alfred’s Bar: real app screens, no device frames */
.screens { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 48px; }
.screens li { margin: 0; width: min(76%, 320px); }
.screens li:nth-child(even) { margin-left: auto; }
.screens img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; border-radius: clamp(22px, 3vw, 34px); border: 1px solid rgba(243, 234, 219, 0.12); box-shadow: 0 32px 64px -32px rgba(0, 0, 0, 0.9); background: var(--surface); }
.screens h3 { font: 600 1.25rem/1.2 var(--display); letter-spacing: -0.01em; margin-top: 18px; }
.screens p { margin: 6px 0 0; color: var(--text-2); font-size: 0.9375rem; max-width: 22rem; }
@media (min-width: 640px) {
  .screens { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); align-items: start; }
  .screens li { width: auto; }
  .screens li:nth-child(even) { margin-left: 0; }
  .screens li:nth-child(odd) { margin-top: clamp(24px, 5vw, 64px); }
}
@media (min-width: 1000px) { .screens { max-width: 1000px; margin-left: auto; margin-right: auto; } }

/* Occasions */
.occasions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; margin: 48px 0 0; padding: 0; list-style: none; }
.occasions img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.occasions h3 { font: 600 1.25rem/1.2 var(--display); letter-spacing: -0.01em; margin-top: 14px; }
.occasions p { margin: 4px 0 0; color: var(--text-3); font-size: 0.9375rem; }
@media (min-width: 900px) { .occasions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

/* Meet Alfred */
.alfred { position: relative; overflow: hidden; }
.alfred::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 58%;
  width: 1100px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(200, 161, 90, 0.12), rgba(200, 161, 90, 0.04) 55%, rgba(200, 161, 90, 0) 100%);
  pointer-events: none;
}
.alfred .lead { display: grid; gap: 24px; }
.alfred-moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 56px 0 0; padding: 0; list-style: none; }
.alfred-moments li { margin: 0; }
.alfred-moments img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
@media (max-width: 599px) {
  .alfred-moments { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .alfred-moments li { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto; column-gap: 16px; }
  .alfred-moments img { grid-row: 1 / span 2; align-self: center; }
  .alfred-moments .step { grid-column: 2; align-self: end; margin-top: 0; }
  .alfred-moments q { grid-column: 2; align-self: start; }
}
.alfred-moments .step { display: block; margin-top: 14px; font-size: 0.8125rem; color: var(--text-3); }
.alfred-moments q { display: block; margin-top: 4px; font: italic 400 clamp(1rem, 1.9vw, 1.25rem)/1.4 var(--display); color: var(--text-2); quotes: none; }
@media (min-width: 900px) {
  .alfred .lead { grid-template-columns: 5fr 7fr; gap: 72px; align-items: end; }
  .alfred-moments { gap: 40px; max-width: 980px; }
}

/* Promises */
.promises { display: grid; gap: 40px; }
.promises h2 { font: 400 clamp(1.625rem, 2.8vw, 2.125rem)/1.15 var(--display); letter-spacing: -0.02em; margin-bottom: 14px; }
.promises p { color: var(--text-2); max-width: 32rem; }
@media (min-width: 900px) { .promises { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* Closing */
.closing { text-align: center; }
.closing-drinks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 24px); max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.closing-drinks img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.closing-drinks img:nth-child(2) { transform: translateY(clamp(-28px, -3vw, -12px)); }
.closing-title { font: 400 clamp(2.25rem, 5.6vw, 4rem)/1.05 var(--display); letter-spacing: -0.035em; max-width: 16ch; margin: 0 auto 22px; }
.status--large { font-size: 1.0625rem; color: var(--ivory); margin: 0 0 18px; }
.closing-note { color: var(--text-3); font-size: 0.9375rem; margin: 0; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--hairline); padding: 56px 0 64px; font-size: 0.9375rem; color: var(--text-3); }
.site-footer .top { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; margin-bottom: 36px; }
.site-footer .tagline { margin: 10px 0 0; font: italic 400 1.0625rem/1.4 var(--display); color: var(--text-2); }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.site-footer nav a { color: var(--text-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--ivory); }
.site-footer .fine p { margin: 0 0 6px; max-width: 46rem; }

/* ── Documents: privacy, terms, support ─────────────────── */
.doc { padding: 40px 0 96px; }
.doc .wrap { max-width: calc(var(--read) + var(--gutter) * 2); }
.doc h1 { font: 400 clamp(2.5rem, 6vw, 3.75rem)/1.05 var(--display); letter-spacing: -0.03em; margin: 24px 0 14px; }
.doc .meta { color: var(--text-3); font-size: 0.9375rem; margin-bottom: 32px; }
.doc .summary { font: 400 1.25rem/1.5 var(--display); color: var(--ivory); margin: 0 0 40px; }
.doc h2 { font: 600 1.25rem/1.3 var(--sans); letter-spacing: -0.01em; margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.doc h3 { font: 600 1.0625rem/1.4 var(--sans); margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--ivory); font-weight: 600; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.45em; }
.doc li::marker { color: var(--brass); }
.doc .toc { margin: 0 0 8px; padding: 18px 0 0; border-top: 1px solid var(--hairline); }
.doc .toc ol { margin: 8px 0 0; padding-left: 1.4em; columns: 2 14rem; column-gap: 32px; }
.doc .toc li { margin-bottom: 4px; }
.doc .toc a { color: var(--text-2); text-decoration: none; }
.doc .toc a:hover { color: var(--ivory); text-decoration: underline; }

/* Support */
.contact { margin: 8px 0 40px; padding: 28px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.contact .label { font-size: 0.9375rem; color: var(--text-3); margin: 0 0 6px; }
.contact .email { font: 400 clamp(1.5rem, 5vw, 2.25rem)/1.2 var(--display); letter-spacing: -0.02em; color: var(--ivory); text-decoration: none; overflow-wrap: anywhere; }
.contact .email:hover { color: var(--brass); }
.contact + h2 { border-top: 0; padding-top: 0; margin-top: 8px; }
.topics { list-style: none; padding: 0 !important; margin: 0; }
.topics li { padding: 18px 0; border-bottom: 1px solid var(--hairline); margin: 0 !important; }
.topics a { font-weight: 600; color: var(--ivory); }
.topics span { display: block; color: var(--text-2); margin-top: 4px; }
.faq h3 { color: var(--ivory); }

/* Items awaiting the owner's confirmation. scripts/check.mjs --publish refuses to pass while any remain. */
.pending { background: var(--brass-soft); color: var(--brass); border-bottom: 1px dashed var(--brass); padding: 0 4px; border-radius: 3px; font-style: normal; }
.review-note { margin: 0 0 32px; padding: 16px 18px; border: 1px dashed rgba(200, 161, 90, 0.5); border-radius: 12px; color: var(--text-2); font-size: 0.9375rem; background: rgba(200, 161, 90, 0.05); }
.review-note strong { color: var(--brass); }

/* 404 */
.notfound { padding: 120px 0 140px; }
