/* Smorid — site styles */

/* Self-hosted fonts (latin subset, from Google Fonts) */
@font-face { font-family: 'Libre Caslon Text'; src: url(fonts/librecaslontext-400-normal.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(fonts/librecaslontext-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(fonts/librecaslontext-700-normal.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url(fonts/worksans-variable.woff2) format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --bg: #f6e9e6;
  --surface: #fff;
  --ink: #2b1a1e;
  --ink-soft: #5d474c;
  --ink-muted: #7d6165;
  --line: #e6d0cc;
  --line-soft: #f0dcd8;
  --input-border: #a48088;
  --accent: oklch(55% 0.10 145);
  --accent-ink: oklch(50% 0.10 145);
  --accent-deep: oklch(50% 0.10 145);
  --accent-mid: oklch(53% 0.10 145);
  --accent-tint: oklch(90% 0.05 145);
  --accent-text: #fff;
  --serif: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(56px, 7vw, 88px);
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection { background: var(--accent-tint); color: var(--ink); }

:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

[id] { scroll-margin-top: 24px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
  accent-color: var(--accent);
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
a:focus-visible { opacity: 1; }

h1, h2, h3, p { margin: 0; }

.page { overflow: hidden; min-height: 100vh; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  padding: 24px var(--gutter);
}

.brand {
  font: 700 22px var(--serif);
  letter-spacing: .02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a,
.footer-links a { padding: 6px 0; }

.pill-link {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color .15s ease;
}

.pill-link:hover { opacity: 1; background: var(--accent-ink); }

/* Shared type */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.eyebrow--light { color: #fff; }

.section-title {
  font: 400 clamp(30px, 3.5vw, 40px) / 1.15 var(--serif);
  text-wrap: pretty;
}

.section-title--lead { max-width: 640px; margin-bottom: 40px; }

.body-copy {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}


/* Hero */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
  padding: clamp(32px, 6vw, 72px) var(--gutter) var(--section-y);
  align-items: center;
}

.hero-media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 640px;
  border-radius: 24px;
  object-fit: cover;
  object-position: 50% 55%;
  background: #ecd9d5;
}

.hero-copy { display: flex; flex-direction: column; gap: 26px; }

.hero-title {
  font: 400 clamp(40px, 5.5vw, 64px) / 1.05 var(--serif);
  letter-spacing: -.01em;
  text-wrap: pretty;
}

.hero-title em { font-style: italic; color: var(--accent); }

.hero-lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 520px;
  text-wrap: pretty;
}

.fine-print { font-size: 13px; color: var(--ink-muted); }
.fine-print strong { color: var(--ink); font-weight: 600; }

/* Forms */
.join-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
  margin-top: 6px;
}

.join-form--center { justify-content: center; width: 100%; }

.input {
  flex: 1 1 220px;
  min-width: 0;
  font: 400 16px var(--sans);
  padding: 16px 20px;
  border: 1px solid var(--input-border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.input::placeholder { color: currentColor; opacity: .5; }
.input:focus-visible { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-tint); }
.input:disabled { background: var(--bg); border-color: transparent; }
.input[aria-invalid="true"] { border-color: #b8484f; }

.button {
  font: 600 15px var(--sans);
  padding: 16px 26px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.button { transition: background-color .15s ease, transform .1s ease; }
.button:hover { background: var(--accent-ink); }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.button[disabled] { cursor: default; }
.button--done { background: var(--ink); }
.button--done:hover { background: var(--ink); }

.form-message { font-size: 13px; color: var(--ink-muted); flex-basis: 100%; }
.form-message--error { color: #b8484f; }
.form-message--success { color: var(--accent-ink); }

/* Sections */
.section { padding: var(--section-y) var(--gutter); }
.section--white { background: var(--surface); }
.section--learn { padding-top: clamp(56px, 7vw, 96px); }
.section--faq { padding-top: 0; }

.split { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.split--tight { gap: 24px 64px; margin-bottom: 40px; }
.split-intro { flex: 1 1 280px; }
.split-intro .eyebrow { margin-bottom: 14px; }
.section > .eyebrow { margin-bottom: 14px; }

.split-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  align-self: flex-end;
  flex: 2 1 560px;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 2 1 560px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  padding: 28px;
  border-radius: var(--radius-lg);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.step-title { font-size: 19px; font-weight: 600; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px;
}

.card-grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.card {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card--lg { padding: 32px; gap: 12px; }

.card-title { font: 400 26px var(--serif); }
.card-title--sm { font-size: 24px; }
.card-notes { font-size: 14px; color: var(--ink-muted); }
.card-notes + .body-copy { margin-top: 6px; }

/* Taste model */
.method {
  margin: 0 var(--gutter);
  padding: clamp(36px, 5vw, 72px);
  border-radius: 28px;
  background: var(--accent);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 48px;
  align-items: center;
}

.method-copy { display: flex; flex-direction: column; gap: 22px; }

.method-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--accent-text);
}

.method-media {
  margin: 0;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  aspect-ratio: 1;
  border-radius: 20px;
  background: var(--accent-deep);
  padding: 12px;
}

.taste-chart { display: block; width: 100%; height: 100%; }

/* FAQ */
.faq-list {
  flex: 2 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 8px 28px;
}

.faq-item { border-bottom: 1px solid var(--line-soft); padding: 20px 0; }
.faq-item:last-child { border-bottom: 0; }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-ink); }
.faq-item summary span { color: var(--accent-ink); transition: transform .2s ease; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item .body-copy { margin-top: 12px; }

/* Join */
.section--join {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.join-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 520px;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 28px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-brand { font: 700 18px var(--serif); color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq-item summary span,
  .button,
  .pill-link { transition: none; }
}

@media (max-width: 640px) {
  .hero { gap: 28px; padding-top: 16px; }
  .hero-media { aspect-ratio: 16 / 10; max-height: 260px; }
}

/* Legal pages */
.legal {
  max-width: 68ch;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) var(--gutter) var(--section-y);
}
.legal h1 { font: 400 clamp(32px, 4vw, 44px) / 1.1 var(--serif); margin-bottom: 8px; text-wrap: pretty; }
.legal .updated { font-size: 14px; color: var(--ink-muted); margin-bottom: 32px; }
.legal h2 { font: 400 26px / 1.2 var(--serif); margin: 36px 0 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 12px 0; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
