/* Glug marketing site — tokens ported from glug-app (src/index.css + tailwind.config.ts) */

/* ── Fonts (self-hosted, latin subsets from @fontsource) ─────────── */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/newsreader-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2');
}

/* ── Tokens ──────────────────────────────────────────────────────── */

:root {
  --vine-olive: #464B36; /* structural: hero, buttons, nav */
  --ink:        #22251B; /* body text, dark footer */
  --sage:       #6B6E56; /* secondary text */
  --dust:       #C4C3B0; /* muted borders */
  --sand:       #E4DECF; /* light-band fills */
  --sand-warm:  #EAE4D5; /* inset tiles */
  --bone:       #FBF8F0; /* page background */
  --hairline:   rgba(34, 37, 27, 0.10);

  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --gutter: 16px;
  --measure: 42rem;
}

/* ── Base ────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

img { display: block; }

/* ── Header (Support / Privacy) ──────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
}

.site-header .logo-link { display: inline-flex; }

.site-header .logo { width: 72px; height: auto; }

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--vine-olive);
  text-decoration: none;
}

.site-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Home: hero ──────────────────────────────────────────────────── */

.hero {
  background: var(--vine-olive);
  color: var(--bone);
  padding: 1.25rem var(--gutter) 5.5rem;
  text-align: center;
}

.hero-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto 3.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-nav a {
  color: var(--bone);
  text-decoration: none;
}

.hero-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

.hero-inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.hero .logo {
  width: min(320px, 78%);
  height: auto;
}

.hero .tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  line-height: 1.3;
}

/* ── Home: light band ────────────────────────────────────────────── */

.band {
  background: var(--bone);
  padding: 4rem var(--gutter);
  text-align: center;
}

.band-inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.band h2 {
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  color: var(--ink);
}

.band p {
  color: var(--sage);
  max-width: 34rem;
}

.store-cta {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--vine-olive);
  color: var(--bone);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
}

.store-cta:hover { background: var(--ink); }

/* ── Footer (dark olive) ─────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding: 3.5rem var(--gutter);
  text-align: center;
}

.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.site-footer .logo { width: 120px; height: auto; }

.site-footer a {
  color: var(--bone);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

.footer-links a { white-space: nowrap; }

.footer-meta {
  font-size: 0.75rem;
  color: var(--dust);
}

/* ── Content pages (Support / Privacy) ───────────────────────────── */

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem var(--gutter) 5rem;
}

.page h1 {
  font-size: clamp(2rem, 7vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.page .lede {
  color: var(--sage);
  margin-bottom: 2.5rem;
}

.page .updated {
  font-size: 0.875rem;
  color: var(--sage);
  margin-bottom: 2.5rem;
}

.page h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
}

.page h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  margin: 1.75rem 0 0.5rem;
}

.page p { margin: 0 0 1rem; }

.page ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.page li { margin-bottom: 0.5rem; }

.page a {
  color: var(--vine-olive);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page .divider {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 2.5rem 0;
}

/* FAQ list on Support */
.faq {
  border-top: 1px solid var(--hairline);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 1rem 0;
}

.faq summary {
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--sage);
  flex-shrink: 0;
}

.faq details[open] summary::after { content: '\2212'; }

.faq details > div { padding-top: 0.75rem; color: var(--ink); }

.faq details > div p { margin: 0 0 0.75rem; }

.faq details > div p:last-child { margin-bottom: 0; }

/* ── Wider screens ───────────────────────────────────────────────── */

@media (min-width: 640px) {
  :root { --gutter: 24px; }

  .hero { padding: 1.75rem var(--gutter) 7.5rem; }

  .hero-nav { margin-bottom: 5.5rem; }

  .site-header { padding-top: 1.75rem; }

  .page { padding-top: 3rem; }
}

/* ── Light button on the olive hero (home, /u/<id>) ─────────────── */

.hero .store-cta { background: var(--bone); color: var(--vine-olive); }

.hero .store-cta:hover { background: var(--sand); }

/* ── Profile link (/u/<id>) ──────────────────────────────────────── */

.profile-link {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-link .store-cta[hidden] { display: none; }

.profile-link .beta-note { font-size: 0.875rem; color: var(--dust); }

/* ── Waitlist (/waitlist) ────────────────────────────────────────── */

.waitlist-form { display: flex; flex-direction: column; gap: 1.25rem; }

.waitlist-form .field { display: flex; flex-direction: column; gap: 0.375rem; margin: 0; padding: 0; border: 0; font-weight: 500; }

.waitlist-form legend { padding: 0; margin-bottom: 0.375rem; }

.waitlist-form .field small { font-weight: 400; color: var(--sage); }

.waitlist-form input[type='text'],
.waitlist-form input[type='tel'],
.waitlist-form input[type='email'] {
  font: inherit;
  font-weight: 400;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--dust);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.waitlist-form .choice { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; }

.waitlist-form .choice input { accent-color: var(--vine-olive); width: 1.125rem; height: 1.125rem; margin: 0; }

.waitlist-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.waitlist-form .store-cta { align-self: flex-start; border: 0; font-family: inherit; cursor: pointer; }

.page .form-note { font-size: 0.875rem; color: var(--sage); }

.page .form-error { color: #8A2D1F; font-weight: 500; }

.page .store-cta { color: var(--bone); text-decoration: none; }
