/* LoreWind Studios: hand-rolled, no framework, no build step.
   Tokens mirror the app (web/src/routes/layout.css): ink night, parchment
   page, ember candlelight, Fraunces for lore, Inter for interface. */

/* Self-hosted variable fonts, same files the app ships (@fontsource-variable). */
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  /* Ink: the night the stories are told in. */
  --ink-950: #0d0e16;
  --ink-900: #14151f;
  --ink-800: #1d1e2c;
  --ink-700: #2a2b3d;
  --ink-500: #565873;
  --ink-400: #6f7189;
  --ink-300: #9b9cb0;
  --ink-200: #b9bac9;
  /* Parchment: the page they are written on. */
  --parchment-50: #faf7f0;
  --parchment-100: #f4efe3;
  --parchment-200: #e8dfc9;
  /* Ember: candlelight accents. */
  --ember-300: #eec886;
  --ember-400: #dfa64f;
  --ember-500: #c98a2e;
  --ember-600: #a86e1f;

  --serif: 'Fraunces Variable', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--parchment-50);
  color: var(--ink-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Header: the night sky above the page. */
header.site {
  background: var(--ink-950);
  border-bottom: 1px solid var(--ink-800);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--parchment-50);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark span { color: var(--ember-400); }
nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
nav.site a {
  color: var(--ink-300);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
nav.site a:hover { color: var(--parchment-50); }

main { padding: 72px 0; }

h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-900);
  text-wrap: balance;
}
h1 em { font-style: italic; color: var(--ember-600); }
h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 8px;
  color: var(--ink-900);
}
p.lede { font-size: 18px; color: var(--ink-500); margin-top: 16px; }
main p { margin-top: 12px; color: var(--ink-500); }
main a {
  color: var(--ink-700);
  text-decoration-color: var(--ember-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
main a:hover { color: var(--ink-900); }
main p, main a { overflow-wrap: anywhere; }

/* Product card: a lit window in the study. */
.product-card {
  margin-top: 40px;
  border: 1px solid var(--parchment-200);
  border-radius: 12px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(13, 14, 22, 0.05);
}
.product-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-900);
}
.product-card p { margin-top: 6px; color: var(--ink-500); }
.product-card .cta {
  display: inline-block;
  margin-top: 16px;
  background: var(--ember-400);
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  box-shadow: 0 0 28px rgba(223, 166, 79, 0.35);
  transition: background 0.15s;
}
.product-card .cta:hover { background: var(--ember-300); color: #000000; }

ul.plain { margin-top: 12px; padding-left: 20px; color: var(--ink-500); }
ul.plain li { margin-top: 6px; }

footer.site {
  background: var(--ink-950);
  border-top: 1px solid var(--ink-800);
  color: var(--ink-300);
  font-size: 14px;
  margin-top: 72px;
}
footer.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  padding-bottom: 24px;
}
footer.site .wrap > span { display: flex; flex-wrap: wrap; gap: 8px 16px; }
footer.site a { color: var(--ink-300); text-decoration: none; transition: color 0.15s; }
footer.site a:hover { color: var(--parchment-50); }

.notice {
  margin-top: 24px;
  border-left: 3px solid var(--ember-400);
  padding-left: 16px;
  color: var(--ink-500);
  font-size: 14px;
}

/* Keyboard focus: candlelight ring. */
nav.site a:focus-visible,
main a:focus-visible,
.product-card .cta:focus-visible,
footer.site a:focus-visible {
  outline: 2px solid var(--ember-400);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  main { padding: 48px 0; }
}
