:root {
  /* ---- color, sampled from the cover art ---- */
  --void: #0c0603; /* deepest shadow */
  --umber-deep: #1b0e07; /* primary dark background */
  --umber: #2c1710; /* secondary dark surface / cards */
  --umber-line: #42230f; /* hairlines on dark */
  --rust: #7a3313; /* burnt rust — links, secondary CTA */
  --rust-bright: #a64a1e; /* rust hover state */
  --ember: #bd753d; /* mid warm accent, borders, icons */
  --gold: #f2c571; /* bright gold — the title-lettering color */
  --gold-dim: #d9a85e; /* softer gold, body text on dark */
  --haze: #a6938a; /* dusty mauve-taupe, muted text on dark */
  --parchment: #f4e9d8; /* aged paper — light section background */
  --parchment-dim: #e8d6b8; /* light secondary surface */
  --ink: #241108; /* text on light backgrounds */
  --ink-soft: #54392a; /* secondary text on light */

  /* ---- type ---- */
  --font-script: "Pinyon Script", cursive;
  --font-display: "Cormorant Garamond", serif;
  --font-caps: "Cormorant SC", serif;
  --font-body: "Lora", serif;

  /* ---- layout ---- */
  --max-w: 1180px;
  --edge: clamp(1.25rem, 4vw, 4.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--parchment);
  color: #ffffff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 600;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}

.eyebrow {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust-bright);
}
.eyebrow.on-dark {
  color: var(--gold);
}

/* ---------- grain texture (signature atmosphere) ---------- */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* ---------- duotone photo treatment (signature motif) ---------- */
.duotone {
  position: relative;
  overflow: hidden;
}
.duotone img {
  filter: sepia(1) saturate(2.2) hue-rotate(-14deg) brightness(0.78)
    contrast(1.15);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(122, 51, 19, 0.35),
    rgba(12, 6, 3, 0.55)
  );
  mix-blend-mode: multiply;
}

/* ---------- skip link / focus ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--umber-deep);
  padding: 0.6rem 1rem;
  font-family: var(--font-caps);
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--edge);
  background: rgba(12, 6, 3, 0.96);
  border-bottom: 1px solid var(--umber-line);
}
/* Note: backdrop-filter is intentionally avoided — it would make this
   sticky header a new containing block, breaking the fixed-position
   mobile menu's full-viewport sizing. */
.nav-mark {
  font-family: var(--font-script);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.nav-links {
  display: flex;
  gap: 2.25rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--parchment);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--parchment);
  width: 30px;
  height: 22px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.nav-toggle span {
  top: 10px;
}
.nav-toggle span::before {
  top: -8px;
}
.nav-toggle span::after {
  top: 8px;
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: var(--umber-deep);
    flex-direction: column;
    gap: 0;
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--umber-line);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--umber-line);
  }
  .nav-toggle {
    display: block;
  }
}

/* ---------- scorched-edge divider (signature motif) ---------- */
.scorch-divider {
  position: relative;
  height: 70px;
  overflow: hidden;
}
.scorch-divider svg {
  position: absolute;
  bottom: -1px;
  width: 100%;
  height: 80px;
}

/* ---------- buttons (shared) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border-radius: 1px;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--ember));
  color: var(--umber-deep);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(189, 117, 61, 0.6);
}
.btn-ghost {
  border: 1px solid rgba(244, 233, 216, 0.4);
  color: var(--parchment);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-ghost.on-light {
  border-color: rgba(36, 17, 8, 0.35);
  color: var(--ink);
}
.btn-ghost.on-light:hover {
  border-color: var(--rust);
  color: var(--rust);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  background: var(--umber-deep);
  color: var(--haze);
  padding: 3.5rem var(--edge) 2rem;
}
.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-end;
}
.footer-title {
  font-family: var(--font-script);
  font-size: 2.1rem;
  color: var(--gold);
}
.footer-links {
  display: flex;
  gap: 1.9rem;
}
.footer-links a {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--haze);
}
.footer-links a:hover {
  color: var(--gold);
}
.footer-note {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 2.2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(166, 147, 138, 0.6);
  border-top: 1px solid var(--umber-line);
  padding-top: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
