/* ============================================================
   style.css — Obsidian for Fiction Writers coming-soon page.

   Design tokens and fonts ported from the Dryad theme on
   JenniferKyrnin.com (tokens.css / fonts.css). Self-contained:
   one page, no theme dependency.
   ============================================================ */

/* ---- Fonts (self-hosted, copied from the dryad theme) ---- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-v21-latin_latin-ext-500.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-v21-latin_latin-ext-500italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-v14-latin_latin-ext-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-v14-latin_latin-ext-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-v20-latin_latin-ext-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-v20-latin_latin-ext-500.woff2") format("woff2");
}

/* ---- Tokens (subset ported from dryad tokens.css) ---- */

:root {
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --type-display: clamp(36px, 6vw + 1rem, 60px);
  --type-lead: clamp(17px, 1.5vw + 0.75rem, 20px);
  --type-body: 16px;
  --type-eyebrow: 12px;

  --surface-section: #E7F0E6;  /* leaf bg */
  --surface-hero: #428732;     /* green dark */
  --text-primary: #231F20;     /* charcoal */
  --text-secondary: #55645B;   /* sage */
  --text-accent: #428732;      /* green dark */
  --text-inverse: #E7F0E6;     /* leaf bg on dark */

  --btn-primary-bg: #E9A738;        /* yellow */
  --btn-primary-bg-hover: #EF8700;  /* yellow dark */
  --btn-primary-text: #231F20;
  --btn-radius-pill: 999px;

  --link-default: #428732;
  --link-hover: #3CA76E;

  --tracking-eyebrow: 0.0625rem;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
}

/* ---- Base ---- */

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.625;
  color: var(--text-inverse);
  background: var(--surface-hero);
  background-image:
    radial-gradient(ellipse at top, rgba(140, 198, 62, 0.22), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(35, 31, 32, 0.35), transparent 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
}

main {
  max-width: 40rem;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--type-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-inverse);
  opacity: 0.85;
  margin: 0 0 var(--space-3);
}

h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--type-display);
  line-height: 1.1;
  margin: 0 0 var(--space-3);
  color: #FFFFFF;
}

.lead {
  font-size: var(--type-lead);
  line-height: 1.55;
  margin: 0 auto var(--space-3);
  max-width: 34rem;
}

.lead em { color: #F4E7C6; font-style: italic; }

.detail {
  color: var(--text-inverse);
  opacity: 0.9;
  margin: 0 auto var(--space-6);
  max-width: 34rem;
}

.detail a { color: #F4E7C6; text-decoration: underline; text-underline-offset: 3px; }
.detail a:hover { color: #FFFFFF; }

.cta {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--btn-primary-text);
  background: var(--btn-primary-bg);
  padding: 14px 32px;
  border-radius: var(--btn-radius-pill);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.cta:hover { background: var(--btn-primary-bg-hover); transform: translateY(-1px); }

footer {
  margin-top: var(--space-6);
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-inverse);
  opacity: 0.7;
}
footer a { color: inherit; }
