/*
 * altrekyn.com — one stylesheet, no framework, no JavaScript.
 *
 * The look comes from the lore: Norse futurism, an object that belongs to two
 * eras at once (lore §11.2). Cold stone and a rune light for the present day,
 * an engraved serif for the old world, and rules that read as inscriptions
 * rather than as a user interface.
 *
 * Budgets this file respects (AGENTS.md §6.4): the whole landing stays under
 * 300 KB compressed including fonts, and the text stays readable on a phone in
 * daylight, so the contrast ratios are 7:1 or better for body text.
 */

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Cinzel-600.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Spectral-400.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Spectral-600.woff2") format("woff2");
}

:root {
  --ink: #080a10;
  --ink-2: #0d1119;
  --ink-3: #141a25;
  --stone: #9aa6b8;
  --stone-bright: #dfe7f2;
  --rune: #6fe3cf;
  --rune-dim: #2f7f74;
  --ember: #d2793f;
  --line: #232c3b;

  --measure: 62ch;
  --radius: 10px;
  --display: "Cinzel", "Iowan Old Style", Georgia, serif;
  --body: "Spectral", "Iowan Old Style", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(111, 227, 207, 0.09), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(210, 121, 63, 0.07), transparent 55%),
    var(--ink);
  color: var(--stone-bright);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--rune);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: #a5f2e3;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rune);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--rune);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip:focus {
  left: 0;
}

/* ---------- header and footer ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.34em;
  color: var(--stone-bright);
  text-decoration: none;
}
.wordmark-rune {
  color: var(--rune);
  font-size: 1.35rem;
  line-height: 1;
  text-shadow: 0 0 18px rgba(111, 227, 207, 0.55);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  font-size: 0.9rem;
}
.site-header nav a {
  color: var(--stone);
  text-decoration: none;
  padding: 0.5rem 0;
}
.site-header nav a:hover {
  color: var(--stone-bright);
}
.site-header nav a.lang {
  color: var(--rune-dim);
  border-left: 1px solid var(--line);
  padding-left: 1.1rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  /* Never let the flex parent squeeze the pill and cut the label. */
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--rune-dim);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(111, 227, 207, 0.16), rgba(111, 227, 207, 0.05));
  color: var(--rune) !important;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.cta:hover {
  border-color: var(--rune);
  background: rgba(111, 227, 207, 0.2);
}

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
  color: var(--stone);
  font-size: 0.9rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  margin-bottom: 1rem;
}
.site-footer a {
  color: var(--stone);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--rune);
}
.site-footer p {
  margin: 0.35rem 0;
}
.muted {
  color: #6f7b8d;
}

.draft-banner {
  max-width: 72rem;
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--ember);
  border-radius: var(--radius);
  color: #f0c9a9;
  background: rgba(210, 121, 63, 0.08);
  font-size: 0.92rem;
}

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

.hero {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--rune-dim);
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 12vw, 5.5rem);
  letter-spacing: 0.22em;
  line-height: 1.05;
  margin-left: 0.06em;
}
.hero .tagline {
  margin: 1.1rem 0 0;
  max-width: var(--measure);
  font-size: clamp(1.1rem, 3.6vw, 1.45rem);
  color: var(--stone-bright);
}
.hero .lede {
  margin: 1.25rem 0 0;
  max-width: var(--measure);
  color: var(--stone);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}
.play {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  background: var(--rune);
  color: #04120f;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(111, 227, 207, 0.4), 0 12px 40px -18px rgba(111, 227, 207, 0.9);
}
.play:hover {
  background: #8bf0dd;
  color: #04120f;
}
.play-note {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: #7f8b9d;
}
.read-more {
  font-size: 0.98rem;
}

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

section {
  padding: 3.25rem 0 0;
}
section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  letter-spacing: 0.06em;
}
.lead {
  margin: 0 0 1.5rem;
  max-width: var(--measure);
  font-size: 1.15rem;
  color: var(--stone-bright);
}
.prose p {
  max-width: var(--measure);
  color: var(--stone);
}
.prose p + p {
  margin-top: 1rem;
}

.rune-rule {
  height: 1px;
  border: 0;
  margin: 3rem 0 0;
  background: linear-gradient(90deg, var(--rune-dim), transparent 70%);
  opacity: 0.6;
}

.pillars {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar {
  background: var(--ink-2);
  padding: 1.4rem 1.3rem 1.6rem;
}
.pillar h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--rune);
}
.pillar p {
  margin: 0;
  color: var(--stone);
  font-size: 0.98rem;
}

/* ---------- classes ---------- */

.class-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.class-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.class-card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}
.class-role {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rune-dim);
}
.class-card p {
  margin: 0;
  color: var(--stone);
  font-size: 0.98rem;
}
.class-stats {
  margin: 0.4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  font-size: 0.85rem;
  color: #7f8b9d;
}
.class-stats b {
  color: var(--stone-bright);
  font-weight: 600;
}

/* ---------- press ---------- */

.facts {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 2rem;
}
.fact {
  background: var(--ink-2);
  padding: 1rem 1.1rem;
}
.fact dt {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rune-dim);
}
.fact dd {
  margin: 0.35rem 0 0;
  color: var(--stone-bright);
}

blockquote.pitch {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.4rem;
  border-left: 2px solid var(--rune-dim);
  background: var(--ink-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: var(--measure);
  color: var(--stone-bright);
}

.press-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 0;
  margin: 0 0 1.5rem;
  list-style: none;
}

/* ---------- prose pages ---------- */

.page-title {
  margin: 2.5rem 0 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 7vw, 3rem);
  letter-spacing: 0.08em;
}
.updated {
  margin: 0 0 2rem;
  color: #6f7b8d;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
