/* Golden Days — warm editorial site.
   Palette mirrors the app (src/constants/theme.ts). */

@font-face {
  font-family: 'Lora';
  src: url('assets/fonts/Lora-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('assets/fonts/Lora-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #201b18;
  --muted: #6b635f;
  --paper: #fdfaf4;
  --panel: #ffffff;
  --line: #e0d5c5;
  --gold: #c77b00;
  --gold-soft: #fff3d9;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Spline Sans', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1rem;
}

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

.wrap-narrow {
  max-width: 720px;
}

/* Header */
.site-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 22px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  border-radius: 10px;
  height: 34px;
  width: 34px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 26px;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  align-items: center;
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1.05fr 1fr;
  padding-bottom: 56px;
  padding-top: clamp(40px, 6vw, 84px);
}

.hero-copy {
  text-align: left;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  border: 1.5px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 30px 70px -40px rgba(32, 27, 24, 0.6);
  display: block;
  height: auto;
  width: 100%;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 20px;
  max-width: 15ch;
}

.hero .lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin: 0 0 32px;
  max-width: 40ch;
}

.hero-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 20px 0 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Launch toggle: exactly one CTA variant is visible at a time. */
html.is-prelaunch .cta-live,
html.is-launched .cta-prelaunch {
  display: none !important;
}

html.is-prelaunch .eyebrow-pre {
  display: inline;
}

html.is-launched .eyebrow-pre {
  display: none;
}

.cta-prelaunch {
  width: 100%;
}

.cta-live {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.waitlist {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.waitlist input[type='email'] {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  flex: 1 1 240px;
  font-family: var(--sans);
  font-size: 1rem;
  min-width: 0;
  padding: 14px 20px;
}

.waitlist input[type='email']:focus {
  border-color: var(--gold);
  outline: 2px solid var(--gold-soft);
  outline-offset: 1px;
}

.waitlist button[type='submit'] {
  background: var(--gold);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  white-space: nowrap;
}

.waitlist button[type='submit']:hover:not(:disabled) {
  background: #a96600;
}

.waitlist button[type='submit']:disabled {
  cursor: default;
  opacity: 0.6;
}

.waitlist .honeypot {
  display: none !important;
}

.waitlist-status {
  flex-basis: 100%;
  font-size: 0.9rem;
  margin: 0;
}

.waitlist-status.is-error {
  color: #a13327;
}

.waitlist-status.is-done {
  color: var(--gold);
  font-weight: 600;
}

.cta-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 10px 0 0;
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.cta-secondary {
  align-self: center;
}

.btn {
  border-radius: 999px;
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
}

.btn-primary:hover {
  background: #a96600;
}

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Feature graphic */
.feature {
  border: 1.5px solid var(--line);
  border-radius: 22px;
  display: block;
  height: auto;
  margin: 12px auto 0;
  max-width: 900px;
  width: 100%;
}

/* Sections */
.section {
  padding-bottom: clamp(48px, 7vw, 88px);
  padding-top: clamp(48px, 7vw, 88px);
}

.section-title {
  margin: 0 auto 14px;
  max-width: 22ch;
  text-align: center;
}

.section-sub {
  color: var(--muted);
  margin: 0 auto 48px;
  max-width: 46ch;
  text-align: center;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.card .glyph {
  color: var(--gold);
  display: block;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

/* Screenshots */
.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 26px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots img {
  border: 1.5px solid var(--line);
  border-radius: 22px;
  height: 560px;
  scroll-snap-align: center;
  width: auto;
}

/* Closing band */
.band {
  background: var(--gold-soft);
  border-radius: 26px;
  margin: 24px auto;
  padding: clamp(40px, 6vw, 72px) 32px;
  text-align: center;
}

.band h2 {
  margin: 0 auto 16px;
  max-width: 20ch;
}

.band p {
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 44ch;
}

.band .cta-prelaunch {
  margin: 0 auto;
  max-width: 520px;
}

.band .waitlist {
  justify-content: center;
}

.band .waitlist-status {
  text-align: center;
}

.band .cta-live {
  justify-content: center;
}

.band .cta-note {
  text-align: center;
}

/* Legal / prose pages */
.page {
  padding-bottom: 96px;
  padding-top: clamp(40px, 6vw, 72px);
}

.page h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 10px;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 44px;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.5rem;
  margin: 44px 0 12px;
}

.prose h3 {
  margin: 28px 0 8px;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.callout {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  margin: 28px 0;
  padding: 22px 24px;
}

.callout p:last-child {
  margin-bottom: 0;
}

dl.faq {
  margin: 0;
}

dl.faq dt {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 32px;
}

dl.faq dd {
  color: var(--muted);
  margin: 8px 0 0;
}

/* Footer */
.site-footer {
  border-top: 1.5px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  padding: 40px 0 56px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
}

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

.site-footer a:hover {
  color: var(--gold);
}

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

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero h1,
  .hero .lede {
    margin-left: auto;
    margin-right: auto;
  }
  .hero .cta-row {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }
  .site-header {
    gap: 10px;
    padding: 16px 18px;
  }
  .brand {
    font-size: 1.1rem;
  }
  .brand img {
    height: 28px;
    width: 28px;
  }
  .nav {
    gap: 14px;
  }
  .nav a {
    font-size: 0.85rem;
  }
  .nav a.nav-features {
    display: none;
  }
  .shots img {
    height: 460px;
  }
}
