/* nattrun.is: night palette taken from the photographs (candle gold on dark slate and leaf green),
   type from Náttrún's printed rune card (Uncial Antiqua, Almendra, Noto Sans Runic; OFL, renamed subsets). */

@font-face { font-family: "Nattrun Uncial"; src: url("/assets/fonts/uncial.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nattrun Almendra"; src: url("/assets/fonts/almendra.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nattrun Almendra"; font-style: italic; src: url("/assets/fonts/almendra-italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nattrun Almendra SC"; src: url("/assets/fonts/almendra-sc.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nattrun Runic"; src: url("/assets/fonts/runic.woff2") format("woff2"); font-display: swap; unicode-range: U+16A0-16F8; }

:root {
  --night: #0d0f0c;
  --night-2: #141811;
  --night-3: #1b2017;
  --ink: #ece4d2;
  --muted: #b8ae98;
  --gold: #d4a95c;
  --gold-hi: #e6c27f;
  --ember: #c4553a;
  --leaf: #3d5236;
  --line: rgba(236, 228, 210, 0.14);
  --display: "Nattrun Uncial", "Palatino", serif;
  --text: "Nattrun Almendra", "Palatino", "Georgia", serif;
  --sc: "Nattrun Almendra SC", "Nattrun Almendra", serif;
  --runic: "Nattrun Runic", "Noto Sans Runic", "Segoe UI Historic", serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 1.125rem/1.65 var(--text);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* Uncial Antiqua's lowercase t, g and s read as c, ſ and ſ ("Náccrún"), so it is only ever set in
   capitals here; smaller headings use Almendra small caps. */
h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0 0 0.6em; }
h1, h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); color: var(--ink); }
h3 { font-family: var(--sc); font-size: 1.3rem; letter-spacing: 0.05em; color: var(--gold-hi); }
p { margin: 0 0 1em; }
strong { color: var(--gold-hi); font-weight: 400; }
.runes { font-family: var(--runic); letter-spacing: 0.35em; }
.small { font-size: 0.92rem; color: var(--muted); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--night); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Top bar */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter);
}
.mark { color: var(--gold); text-decoration: none; font-size: 1.15rem; }
.top nav { display: flex; gap: clamp(0.8rem, 2.5vw, 2rem); font-family: var(--sc); font-size: 1rem; letter-spacing: 0.06em; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--gold-hi); }
.top:not(.solid) .mark, .top:not(.solid) nav a { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85); }
.nav-cta { border-bottom: 1px solid var(--gold); }
@media (max-width: 640px) {
  .top { padding: 0.8rem 1rem; }
  .mark .runes { letter-spacing: 0.18em; font-size: 1rem; }
  .top nav { gap: 0.8rem; font-size: 0.9rem; }
  .top nav a[href="#about"] { display: none; }
}
/* A slightly smaller menu keeps Storytelling on 375 px phones; narrower than that, "Rune casting" would wrap. */
@media (max-width: 380px) {
  .top nav { gap: 0.65rem; font-size: 0.86rem; }
}
@media (max-width: 369px) {
  .top nav a[href="#storytelling"] { display: none; }
}

/* Hero: the photo sits in .hero-media so the scroll parallax (on the wrapper) and the Ken Burns zoom
   (on the img) never fight over one transform. The wrapper overhangs by 8% top and bottom so the
   parallax never shows an edge. */
.hero { position: relative; min-height: min(100svh, 60rem); display: grid; align-items: end; overflow: hidden; background: var(--night); }
.hero-media { position: absolute; inset: -8% 0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% 30%; }
@media (max-width: 640px) { .hero-img { object-position: 55% 26%; } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--night) 0%, rgba(13, 15, 12, 0.85) 26%, rgba(13, 15, 12, 0.22) 56%, rgba(13, 15, 12, 0.6) 100%);
}
.hero-text { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(2rem, 6vh, 4rem); max-width: 48rem; margin-inline: auto; text-align: center; }
.hero-runes {
  font-family: var(--runic); color: var(--gold); margin: 0 0 0.25em;
  font-size: clamp(2.2rem, 7vw, 3.6rem); letter-spacing: 0.3em; padding-left: 0.3em; line-height: 1;
  -webkit-text-stroke: 0.02em currentColor;
  text-shadow: 0 0 24px rgba(212, 169, 92, 0.35);
}
.hero h1 { margin: 0 0 0.5em; letter-spacing: 0.04em; }
.hero .name { display: block; font-size: clamp(2.7rem, 11vw, 6rem); color: var(--ink); line-height: 1; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6); }
.lede { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--ink); max-width: 36rem; margin-inline: auto; }
@media (min-width: 720px) { .lede-end { display: block; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.6rem; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--sc); font-size: 1.05rem; letter-spacing: 0.06em;
  padding: 0.8rem 1.6rem; min-height: 48px; border: 1px solid var(--gold); border-radius: 2px;
  background: var(--gold); color: var(--night); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--gold-hi); color: var(--night); }
.btn.ghost { background: rgba(13, 15, 12, 0.6); color: var(--gold-hi); border-color: rgba(212, 169, 92, 0.55); }
.btn.ghost:hover { border-color: var(--gold); color: var(--ink); }
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
}

/* Bands */
.band { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.band.dark { background: var(--night-2); border-block: 1px solid var(--line); }
.band.note { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5.5rem); }
.band.note .wrap.narrow {
  background: linear-gradient(180deg, rgba(61, 82, 54, 0.18), rgba(20, 24, 17, 0.9));
  border: 1px solid rgba(212, 169, 92, 0.28);
  border-left: 3px solid var(--gold);
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.75rem);
}
.band.note p:last-child { margin-bottom: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 44rem; }
.kicker { font-family: var(--sc); color: var(--gold); letter-spacing: 0.14em; font-size: 0.95rem; margin-bottom: 0.6rem; }
.kicker::before { content: "᛫ "; font-family: var(--runic); }
.intro { max-width: 46rem; font-size: 1.2rem; }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .split.reverse { grid-template-columns: 0.75fr 1.25fr; }
}
.split-img { margin: 0; overflow: hidden; border-radius: 2px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
#rune-casting .split-img img { object-position: 55% 25%; }
.split-img.portrait img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; }
/* On one column the portrait stays above the About text, so it never stacks onto the next interlude. */
@media (max-width: 899px) {
  .split-img.portrait img { max-height: 30rem; width: 100%; object-position: 50% 16%; }
}

/* The saying: the Old Norse line, its translation, then the source as a muted reference line. */
.saying { font-size: 1.1rem; color: var(--ink); border-left: 2px solid var(--gold); padding-left: 1rem; margin: 1.6rem 0; }
.saying [lang="non"] { font-style: italic; font-size: 1.3rem; color: var(--gold-hi); }
.saying cite { display: block; margin-top: 0.45rem; font-style: normal; font-family: var(--sc); font-size: 0.95rem; letter-spacing: 0.05em; color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 1.8rem 0 0; border-top: 1px solid var(--line); }
.facts li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.facts li span { display: block; color: var(--ink); font-family: var(--sc); letter-spacing: 0.04em; font-size: 1.05rem; }

.cards { display: grid; gap: 1.2rem; margin-top: 2.4rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--night-3); border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 1.6rem 1.5rem; }
.card p { margin: 0; color: var(--ink); font-size: 1.05rem; }
/* Almendra SC's capital V swallows the word space before it ("and VIP" read "andVIP"). */
.card h3 { word-spacing: 0.15em; }

/* Name in runes */
.name-runes {
  margin-top: 2.2rem; padding: 1.5rem;
  background: linear-gradient(180deg, var(--night-3), var(--night-2));
  border: 1px solid rgba(212, 169, 92, 0.28);
}
.name-runes h3 { margin-bottom: 1rem; }
.staves {
  list-style: none; margin: 0 0 1rem; padding: 1rem 0;
  display: grid; grid-template-columns: repeat(6, 1fr); text-align: center;
  border-block: 1px solid var(--line);
}
.staves li { display: flex; flex-direction: column; align-items: center; padding: 0 0.3rem; font-size: 0.85rem; color: var(--muted); line-height: 1.3; }
.staves li + li { border-left: 1px solid var(--line); }
.staves .r { font-family: var(--runic); font-size: 2.4rem; color: var(--gold); line-height: 1.1; -webkit-text-stroke: 0.03em currentColor; }
.staves b { font-weight: 400; color: var(--ink); font-size: 1rem; }
.staves i { color: var(--gold-hi); font-style: normal; font-family: var(--sc); }
@media (max-width: 560px) {
  .name-runes { padding: 1.15rem; }
  .staves { grid-template-columns: repeat(3, 1fr); row-gap: 1rem; }
  .staves li:nth-child(4) { border-left: none; }
  .staves .r { font-size: 2.6rem; }
}

/* Full-width photo interludes between sections: no text over them, a slow parallax drift (below). */
.interlude { position: relative; margin: 0; height: clamp(20rem, 62vh, 40rem); overflow: hidden; background: var(--night); }
.interlude img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; object-position: 54% 30%; }
.interlude.low img { object-position: 52% 32%; }
.interlude::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--night) 0%, transparent 20%, transparent 78%, var(--night-2) 100%);
}
/* Form */
.form { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.row.two { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 0.35rem; font-family: var(--sc); letter-spacing: 0.04em; font-size: 1rem; color: var(--ink); }
.opt { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.02em; }
.form input, .form select, .form textarea {
  font: 1.05rem/1.5 var(--text); color: var(--ink); background: #090b08;
  border: 1px solid rgba(236, 228, 210, 0.26); border-radius: 2px; padding: 0.7rem 0.8rem; width: 100%; min-height: 48px;
}
.cf-turnstile { min-height: 65px; color-scheme: dark; max-width: 100%; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 2px rgba(212, 169, 92, 0.25); }
.form .btn { justify-self: start; min-width: 10rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: none; padding: 1rem 1.2rem; border: 1px solid; margin: 1.5rem 0 0; scroll-margin-top: 2rem; }
.notice:target { display: block; }
.notice.ok { border-color: var(--gold); background: rgba(212, 169, 92, 0.1); }
.notice.bad { border-color: var(--ember); background: rgba(196, 85, 58, 0.12); }

/* Footer */
.foot { text-align: center; padding: 3rem var(--gutter) 3.5rem; border-top: 1px solid var(--line); color: var(--muted); }
.foot .runes { color: var(--gold); font-size: 1.6rem; margin-bottom: 0.6rem; }
.foot p { margin: 0 0 0.4rem; }

/* Simple pages (privacy, 404) */
.page { max-width: 44rem; margin: 0 auto; padding: 7rem var(--gutter) 4rem; }
.page h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.page h2 { font-size: 1.5rem; margin-top: 2rem; color: var(--gold-hi); }
.top.solid { position: static; border-bottom: 1px solid var(--line); }

/* Motion. Everything is transform/opacity only, and nothing moves for prefers-reduced-motion.
   - Hero: a slow Ken Burns zoom on the photo (capped at 1.12: the 2400 px source goes soft beyond it
     on retina screens) plus a scroll parallax on its wrapper.
   - Interludes: a scroll-linked drift of the photo inside its frame.
   - Sections: fade and rise into view. Scroll-driven where supported; site.js adds the same reveal
     with IntersectionObserver for browsers without animation-timeline. */
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@keyframes drift { from { transform: translate3d(0, -7%, 0); } to { transform: translate3d(0, 7%, 0); } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 1.25rem, 0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-img { animation: kenburns 30s ease-in-out infinite alternate; will-change: transform; }
  .hero-text > * { animation: rise 0.9s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
  /* The runes are the largest text in the first screen (the LCP element): they show at once, no fade. */
  .hero-text > .hero-runes { animation: none; }
  .hero-text > :nth-child(2) { animation-delay: 0.12s; }
  .hero-text > :nth-child(3) { animation-delay: 0.24s; }
  .hero-text > :nth-child(4) { animation-delay: 0.36s; }

  @supports (animation-timeline: view()) {
    .hero { view-timeline-name: --hero; }
    .hero-media {
      animation: drift linear both;
      animation-timeline: --hero;
      animation-range: exit 0% exit 100%;
      will-change: transform;
    }
    .interlude img {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
      will-change: transform;
    }
    .band h2, .intro, .split-img, .saying, .facts, .card, .name-runes, .form {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }

  .js-reveal .reveal { opacity: 0; transform: translate3d(0, 1.25rem, 0); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1); }
  .js-reveal .reveal.in { opacity: 1; transform: none; }
}
