/* Sake Field Notes — early-access landing pages
   Design tokens from sake-landing-page-structure.md (Travel Field Notes) */

:root {
  --bg: #F5F0E6;
  --surface: #FFFDF7;
  --ink: #25241F;
  --accent: #9D3C2D;
  --accent-2: #315C55;
  --line: #D8CDBA;

  --font-display: "IBM Plex Serif", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --space-section: 80px;
  --space-block: 24px;
  --container: 1120px;
  --prose: 640px;

  --radius-control: 8px;
  --radius-surface: 12px;

  --ease: 180ms ease-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 16px;
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 5vw, 41px); }
h2 { font-size: clamp(24px, 3.5vw, 27px); }
h3 { font-size: 19px; font-family: var(--font-body); font-weight: 600; }

p, ul, ol { margin: 0 0 16px; }

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.header-link {
  font-size: 15px;
  color: var(--ink);
}

/* ---------- sections ---------- */

.section {
  padding-block: var(--space-section);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.prose { max-width: var(--prose); }

/* ---------- hero ---------- */

.hero .container {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 48px;
  align-items: center;
}

.hero-deck {
  font-size: 19px;
  max-width: 55ch;
}

.hero-trust {
  font-size: 15px;
  color: var(--accent-2);
  margin: 12px 0 0;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  border-radius: var(--radius-surface);
  border: 1px solid var(--line);
}

/* ---------- signup form ---------- */

.signup {
  max-width: 480px;
  margin-top: var(--space-block);
}

.signup .field {
  margin-bottom: 12px;
}

.signup label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.signup input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  transition: border-color var(--ease);
}

.signup input[type="email"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.signup input:user-invalid {
  border-color: var(--accent);
}

.error-msg {
  display: none;
  font-size: 14px;
  color: var(--accent);
  margin: 6px 0 0;
}

.signup input:user-invalid ~ .error-msg {
  display: block;
}

.signup button {
  width: 100%;
  padding: 13px 20px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-control);
  cursor: pointer;
  transition: background-color var(--ease);
}

.signup button:hover { background: #8a3427; }

.signup button:disabled {
  opacity: 0.7;
  cursor: default;
}

.form-note {
  font-size: 13.5px;
  color: var(--ink);
  opacity: 0.75;
  margin: 10px 0 0;
}

.form-status {
  font-size: 15px;
  font-weight: 600;
  margin: 10px 0 0;
  min-height: 1.5em;
}

.form-status[data-state="error"] { color: var(--accent); }
.form-status[data-state="success"] { color: var(--accent-2); }

.signup.is-done .field,
.signup.is-done button,
.signup.is-done .form-note { display: none; }

/* ---------- preview ---------- */

.preview-panel {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  padding: 40px;
  max-width: 880px;
}

.preview-panel figure { margin: 0; }

.preview-panel img {
  border-radius: var(--radius-control);
}

.preview-sample {
  font-family: var(--font-display);
  font-size: 21px;
  margin-bottom: 8px;
}

.preview-list {
  padding-left: 20px;
}

.preview-list li { margin-bottom: 8px; }

.preview-note {
  font-size: 15px;
  color: var(--accent-2);
  margin-bottom: 0;
}

/* ---------- outcomes ---------- */

.outcomes ol {
  list-style: none;
  counter-reset: outcome;
  padding: 0;
  max-width: var(--prose);
}

.outcomes li {
  counter-increment: outcome;
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.outcomes li::before {
  content: counter(outcome, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--accent);
  flex: 0 0 auto;
}

/* ---------- format ---------- */

.format-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 16px;
}

.format ul {
  list-style: none;
  padding: 0;
  max-width: var(--prose);
}

.format li {
  padding: 10px 0 10px 28px;
  position: relative;
}

.format li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.05em;
  width: 10px;
  height: 2px;
  background: var(--accent-2);
}

/* ---------- fit ---------- */

.fit-cols {
  display: grid;
  gap: 32px;
  max-width: var(--prose);
}

.fit-cols h3 { margin-bottom: 8px; }

.fit-good h3 { color: var(--accent-2); }
.fit-not h3 { color: var(--accent); }

/* ---------- faq ---------- */

.faq dl {
  max-width: var(--prose);
  margin: 0;
}

.faq dt {
  font-weight: 600;
  font-size: 18px;
  padding-top: 20px;
}

.faq dd {
  margin: 8px 0 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.faq dd:last-of-type { border-bottom: none; }

/* ---------- final cta ---------- */

.final-cta {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.final-cta .signup { margin-inline: auto; }

.final-cta .inner {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

.final-cta .signup { text-align: left; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px;
  font-size: 14px;
}

.site-footer .container {
  display: grid;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a { color: var(--ink); }

.footer-legal {
  opacity: 0.75;
  margin: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  :root { --space-section: 56px; }

  .hero .container,
  .preview-panel {
    grid-template-columns: 1fr;
  }

  .hero-figure { order: 3; }

  .preview-panel { padding: 24px; }

  .preview-panel figure {
    max-width: 380px;
  }
}

@media (min-width: 821px) {
  .fit-cols { grid-template-columns: 1fr 1fr; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
