/* Starheart: the shared design system. Candlelight on void: Cormorant Garamond
   for the voice, Instrument Sans for the labels, cream and gold on near-black.
   Every page links this file; page files add only their own layout. */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: block; src: url(/fonts/cormorant-light.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: block; src: url(/fonts/cormorant-light.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: block; src: url(/fonts/cormorant-regular.woff2) format('woff2'); }
/* The site ships one italic face (the light one): italic at any weight uses it, never the upright file. */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: block; src: url(/fonts/cormorant-light.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: block; src: url(/fonts/cormorant-regular.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: block; src: url(/fonts/instrument-sans.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: block; src: url(/fonts/instrument-sans.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: block; src: url(/fonts/instrument-sans.woff2) format('woff2'); }

:root {
  --void: #06060c;
  --void-2: #0a0a12;
  --light: #F0E6C8;
  --light-dim: #C4B48A;
  --light-faint: #8f8064;
  --gold: #D8B26C;
  --ember: #E39A5B;
  --line: rgba(240, 230, 200, 0.08);
  --line-2: rgba(240, 230, 200, 0.16);
  --glass: rgba(10, 10, 18, 0.55);
  --text: #cfc6b4;
  --text-muted: #8c8379;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --pad: clamp(1.25rem, 4.5vw, 3.25rem);
  --measure: 34rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--void);
  color: var(--text);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(216, 178, 108, 0.32); color: var(--light); }
:focus-visible { outline: 1px solid var(--light-dim); outline-offset: 4px; border-radius: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 300;
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--void); background: var(--light); padding: 0.6rem 1rem; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 1rem; }
.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; }

/* ── Type ── */
.eyebrow {
  font-family: var(--sans); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--light-faint);
}
.verse {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  color: var(--light-dim); line-height: 1.6;
}
.ref {
  font-family: var(--sans); font-size: 0.68rem; font-style: normal; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--light-faint);
}
.lit { text-shadow: 0 0 22px rgba(6, 6, 12, 0.95), 0 0 2px rgba(6, 6, 12, 0.9); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--light);
  text-decoration: none; padding: 0.85rem 1.6rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(10, 10, 18, 0.35);
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.btn:hover { border-color: var(--light-dim); background: rgba(240, 230, 200, 0.06); }
.btn .arr { transition: transform 0.3s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-quiet { border-color: transparent; background: none; color: var(--light-faint); padding-left: 0; padding-right: 0; }
.btn-quiet:hover { border-color: transparent; background: none; color: var(--light); }

/* ── Navigation ── */
.sh-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem var(--pad);
  background: linear-gradient(to bottom, rgba(6, 6, 12, 0.88) 0%, rgba(6, 6, 12, 0.5) 55%, rgba(6, 6, 12, 0) 100%);
}
.sh-mark { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--light); text-decoration: none; }
.sh-mark i {
  width: 27px; height: 27px; flex-shrink: 0; background-color: currentColor;
  -webkit-mask: url(/compass-mark.svg) center / contain no-repeat; mask: url(/compass-mark.svg) center / contain no-repeat;
}
.sh-mark span { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; }
.sh-links { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.4rem); list-style: none; }
.sh-links a {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--light-faint); text-decoration: none; transition: color 0.3s; padding: 0.4rem 0;
}
.sh-links a:hover, .sh-links a.active, .sh-links a[aria-current] { color: var(--light); }
.sh-menu a[aria-current] { color: var(--light-dim); }
.sh-menu a[aria-current] small, .sh-foot nav a[aria-current] { color: var(--gold); }
.sh-menu-btn {
  display: none; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--light); background: rgba(10, 10, 18, 0.5); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 0.6rem 1rem; cursor: pointer;
}
.sh-menu-btn b { display: block; width: 14px; height: 1px; background: currentColor; box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor; }

.sh-menu {
  position: fixed; inset: 0; z-index: 150; display: none;
  flex-direction: column; gap: 0.4rem;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 6rem var(--pad) 3rem;
  background: radial-gradient(ellipse 90% 70% at 50% 35%, rgba(26, 22, 18, 0.97), rgba(6, 6, 12, 0.985) 70%);
}
.sh-menu.open { display: flex; }
/* Centred when it fits, scrollable from the top when it does not. */
.sh-menu > :nth-child(2) { margin-top: auto; }
.sh-menu > :last-child { margin-bottom: auto; }
.sh-menu a {
  font-family: var(--serif); font-size: clamp(2.1rem, 9vw, 3rem); font-weight: 300; color: var(--light);
  text-decoration: none; line-height: 1.25;
}
.sh-menu a small { display: block; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--light-faint); margin-bottom: 0.15rem; }
.sh-menu .sh-menu-close { position: fixed; top: 1.1rem; right: var(--pad); z-index: 1; }
.sh-menu-foot { margin-top: 2.5rem; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }

@media (max-width: 860px) {
  .sh-links { display: none; }
  .sh-menu-btn { display: inline-flex; }
}

/* ── Footer ── */
.sh-foot {
  position: relative; z-index: 2;
  padding: 4.5rem var(--pad) 3.5rem; text-align: center;
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(6, 6, 12, 0.4), rgba(6, 6, 12, 0.92));
}
.sh-foot .sh-mark { flex-direction: column; gap: 1rem; margin-bottom: 1.6rem; }
.sh-foot .sh-mark i { width: 40px; height: 40px; opacity: 0.55; }
.sh-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.6rem; margin: 0 auto 2rem; }
.sh-foot nav a { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--light-faint); text-decoration: none; transition: color 0.3s; }
.sh-foot nav a:hover { color: var(--light); }
.sh-foot p { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--text-muted); line-height: 2.1; }
.sh-foot p a { color: var(--light-faint); text-decoration: none; transition: color 0.3s; }
.sh-foot p a:hover { color: var(--light); }
.sh-foot .sdg { margin-top: 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--light-faint); }

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