/* Shared styles for Skald & Stone project pages. Tokens mirror the main site. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  --bg: #E7E2D4;
  --surface: #DBD5C3;
  --ink: #26241C;
  --ink-soft: #5B5745;
  --line: #C7BFA9;
  --brass: #B98A3A;
  --brass-text: #76520F;
  --kall: #9C7A2E;
  --vaettir: #33513F;
  --valewolf: #6B2A38;
  --secondbreakfast: #B0502A;
  --wispling: #5B4A78;
  --chip-bg: #F4F0E5;
  --chip-line: #DCD5C2;
  --tile-1: #100F0B;
  --tile-2: #38352A;
  --focus: #6F4B0B;
  --accent: var(--brass);
  --accent-hero: #B98A3A;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17160F;
    --surface: #211F16;
    --ink: #EEE8D9;
    --ink-soft: #B4AC94;
    --line: #38352A;
    --brass: #B98A3A;
    --brass-text: #D9A85C;
    --kall: #D9A85C;
    --vaettir: #74AC8A;
    --valewolf: #C06B78;
    --secondbreakfast: #DD8156;
    --wispling: #A896D1;
    --chip-bg: #211F16;
    --chip-line: #38352A;
    --focus: #F2C56D;
  }
}

:root[data-theme="dark"] {
  --bg: #17160F;
  --surface: #211F16;
  --ink: #EEE8D9;
  --ink-soft: #B4AC94;
  --line: #38352A;
  --brass: #B98A3A;
  --brass-text: #D9A85C;
  --kall: #D9A85C;
  --vaettir: #74AC8A;
  --valewolf: #C06B78;
  --secondbreakfast: #DD8156;
  --wispling: #A896D1;
  --chip-bg: #211F16;
  --chip-line: #38352A;
  --focus: #F2C56D;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- nav ---------- */
nav.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
nav.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.6rem;
  max-width: 60rem;
}
.nav-mark { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.nav-mark svg { width: 22px; height: 22px; color: var(--brass); }
.nav-mark span {
  font-family: "Cinzel", serif; font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.11em; color: var(--ink); white-space: nowrap;
}
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft);
}
.nav-links a:hover { color: var(--brass-text); }

/* ---------- hero (fixed dark, matches the main page) ---------- */
header.hero {
  background: radial-gradient(140% 120% at 50% -10%, #2A2818 0%, #16150F 55%, #100F0B 100%);
  color: #EEE8D9;
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
}
.hero-icon {
  width: 64px; height: 64px; border-radius: 14px; margin: 0 auto 1.4rem;
  background: radial-gradient(120% 130% at 26% 20%, var(--tile-2), var(--tile-1) 70%);
  display: flex; align-items: center; justify-content: center;
}
.hero-icon svg { width: 32px; height: 32px; color: var(--accent-hero); }
.hero-tag {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-hero); margin: 0 0 0.9rem;
}
.hero h1 {
  font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.08; letter-spacing: -0.01em;
  margin: 0 0 1.1rem; text-wrap: balance; color: #F5F1E6;
}
.hero p.lede {
  font-size: 1.05rem; line-height: 1.65; max-width: 42ch; margin: 0 auto 1.5rem;
  color: #C9C2AC;
}
.hero-status {
  display: inline-block;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent-hero);
  border: 1px solid var(--accent-hero);
  border-radius: 999px; padding: 0.3rem 0.75rem;
}
.hero-actions {
  margin-top: 1.5rem;
  display: flex; gap: 0.9rem; justify-content: center; align-items: center; flex-wrap: wrap;
}
.hero-launch {
  display: inline-block;
  background: var(--accent-hero); color: #16150F;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.35rem; border-radius: 8px;
}
.hero-launch:hover { filter: brightness(1.08); }

/* ---------- sections ---------- */
main { background: var(--bg); }
section { padding: 3.4rem 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 0.8rem;
}
h2 {
  font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 1.8rem); letter-spacing: -0.005em; margin: 0 0 1rem; text-wrap: balance;
}
section p { font-size: 1.02rem; line-height: 1.7; margin: 0 0 1.1rem; }
section p:last-child { margin-bottom: 0; }

ul.plain {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 0.8rem;
}
ul.plain li {
  display: flex; gap: 0.7rem; align-items: baseline;
  font-size: 1rem; line-height: 1.6;
}
ul.plain li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: none; transform: translateY(-1px);
}

.name-note {
  display: flex; align-items: flex-start; gap: 0.8rem;
  border: 1px solid var(--chip-line); background: var(--chip-bg);
  border-radius: 12px; padding: 1.3rem 1.4rem;
  color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65;
}
.name-note svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- hook (pull-quote under the hero lede, for "the insight") ---------- */
.hook {
  font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; font-weight: 500;
  font-style: italic; font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.5;
  color: var(--ink); border-left: 3px solid var(--accent);
  padding-left: 1.2rem; margin: 0;
}

/* ---------- proof strip ---------- */
.proof-strip {
  display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem;
}
.proof-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--chip-line); background: var(--chip-bg);
  border-radius: 999px; padding: 0.45rem 0.9rem;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem; letter-spacing: 0.03em; color: var(--ink-soft);
}
.proof-chip b { color: var(--ink); font-weight: 600; }
.proof-founder {
  margin-top: 1.2rem; font-size: 1rem; line-height: 1.65; color: var(--ink-soft);
}
.proof-founder b { color: var(--ink); }

/* ---------- edge (named-competitor comparison) ---------- */
.edge-list { display: flex; flex-direction: column; gap: 0.9rem; margin: 0 0 1.3rem; }
.edge-row {
  display: flex; gap: 0.9rem; align-items: baseline;
  padding-bottom: 0.9rem; border-bottom: 1px solid var(--chip-line);
}
.edge-row:last-child { border-bottom: none; padding-bottom: 0; }
.edge-who {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-soft); flex: none; width: 8.5rem;
}
.edge-gap { font-size: 0.98rem; line-height: 1.55; margin: 0; }
.edge-bet {
  font-size: 1.02rem; line-height: 1.65; margin: 0;
  padding-top: 0.2rem; border-top: 1px dashed var(--chip-line);
}
.edge-bet b { color: var(--accent); }

/* ---------- footer ---------- */
footer.contact { padding: 3.2rem 0 3rem; border-top: 1px solid var(--line); }
.foot-sign { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.9rem; }
.foot-mark { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.foot-mark svg { width: 18px; height: 18px; color: var(--brass); }
.foot-mark span {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
}
.foot-email {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 0.72rem;
  letter-spacing: 0.06em; text-decoration: none; color: var(--brass-text);
}
.foot-email:hover { text-decoration: underline; }
