/* ==========================================================================
   Eadriel — eadriel.eu
   Palette: midnight ink, parchment, antique gold, sage.
   Type: Cormorant Garamond (display) / Karla (text).
   Deliberately unlike the cream-and-azure look of the owner's other sites.
   ========================================================================== */

:root {
  --ink:        #080b12;
  --ink-soft:   #0d1220;
  --ink-raise:  #131a2b;
  --parchment:  #efe7da;
  --parchment-dim: #d6cec1;
  --gold:       #c9a24a;
  --gold-light: #e2c47f;
  --sage:       #8aa79b;
  --line:       rgba(201, 162, 74, 0.22);
  --line-soft:  rgba(239, 231, 218, 0.12);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-text: "Karla", "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(4.5rem, 11vw, 9rem);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-text);
  font-weight: 300;
  font-size: clamp(1rem, 0.35vw + 0.94rem, 1.075rem);
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* A single, static night field behind everything. No animation, no canvas. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 78% -10%, rgba(201, 162, 74, 0.10) 0%, rgba(201, 162, 74, 0) 55%),
    radial-gradient(90% 70% at 8% 4%, rgba(138, 167, 155, 0.08) 0%, rgba(138, 167, 155, 0) 60%),
    radial-gradient(140% 120% at 50% 120%, #101728 0%, #080b12 62%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(239, 231, 218, 0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 68%, rgba(239, 231, 218, 0.22) 50%, transparent 51%),
    radial-gradient(1px 1px at 41% 14%, rgba(239, 231, 218, 0.30) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 43%, rgba(239, 231, 218, 0.18) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 77%, rgba(239, 231, 218, 0.26) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 31%, rgba(239, 231, 218, 0.20) 50%, transparent 51%),
    radial-gradient(1px 1px at 7% 84%, rgba(239, 231, 218, 0.16) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 91%, rgba(239, 231, 218, 0.14) 50%, transparent 51%);
}

img, svg, video { max-width: 100%; }

a {
  color: var(--gold-light);
  text-decoration: none;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--parchment); text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #10131a;
  padding: 0.75rem 1rem;
  z-index: 100;
  font-weight: 500;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- shell ---------- */

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(8, 11, 18, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--parchment);
  white-space: nowrap;
}
.wordmark:hover { color: var(--gold-light); text-decoration: none; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.85rem, 2.2vw, 1.9rem);
  font-size: 0.79rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav a { color: var(--parchment-dim); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-light); text-decoration: none; }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* ---------- type ---------- */

h1, h2, h3, blockquote {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.1rem);
  line-height: 1.04;
}
h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  line-height: 1.14;
}
h3 {
  font-size: clamp(1.28rem, 1.8vw, 1.55rem);
  line-height: 1.3;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-text);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
}

.lead {
  font-size: clamp(1.1rem, 1.1vw + 0.9rem, 1.32rem);
  line-height: 1.68;
  color: var(--parchment);
  max-width: 40rem;
}

.prose { max-width: var(--measure); }
.prose p { color: var(--parchment-dim); }
.prose a {
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 74, 0.45);
}
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--parchment); font-weight: 500; }
.prose h2, .prose h3 { margin: 2.6rem 0 0.9rem; color: var(--parchment); }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.1rem; color: var(--parchment-dim); }
.prose li { margin-bottom: 0.55rem; }
.prose li::marker { color: var(--gold); }

.muted { color: var(--parchment-dim); }
.small { font-size: 0.9rem; line-height: 1.72; }
.tiny  { font-size: 0.8rem; letter-spacing: 0.04em; }

.gold { color: var(--gold-light); }
.sage { color: var(--sage); }

.rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  margin: 0;
}

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

.hero {
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 7vw, 6rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.hero h1 { margin-bottom: 1.6rem; }
.hero .lead { margin-bottom: 2.2rem; }

.hero-aside {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.2rem, 2.6vw, 2rem);
  padding-bottom: 0.4rem;
}
.hero-aside p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--parchment-dim);
}
.hero-aside cite {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-text);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  background: linear-gradient(180deg, rgba(28, 37, 60, 0.92), rgba(15, 21, 36, 0.78));
  border: 1px solid rgba(239, 231, 218, 0.16);
  border-radius: var(--radius);
  transition: border-color 240ms var(--ease), transform 240ms var(--ease);
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card h3 { margin: 0; }
.card p { color: var(--parchment-dim); font-size: 0.95rem; margin: 0; }
.card .meta {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.card .price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--parchment);
}
.card-link {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card-link a {
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 74, 0.5);
  text-decoration-thickness: 1px;
}
.card-link a:hover { text-decoration-color: currentColor; }
.card a::after { content: ""; position: absolute; inset: 0; }
.card a { position: relative; z-index: 1; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.85rem 1.9rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font-text);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}
.btn:hover {
  background: var(--gold);
  color: #0a0d14;
  text-decoration: none;
}
.btn-solid { background: var(--gold); color: #0a0d14; }
.btn-solid:hover { background: var(--gold-light); color: #0a0d14; }
.btn-quiet { border-color: var(--line-soft); color: var(--parchment-dim); }
.btn-quiet:hover { border-color: var(--gold); background: transparent; color: var(--gold-light); }

.actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---------- audio practice ---------- */

.practice {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19, 26, 43, 0.7), rgba(8, 11, 18, 0.5));
}
.practice + .practice { margin-top: 1.2rem; }
.practice-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.practice h3 { margin: 0; }
.practice .dur { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }

.player {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0 1.6rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #0a0d14;
  font-family: var(--font-text);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.play-btn:hover { background: var(--gold-light); border-color: var(--gold-light); color: #0a0d14; }
.play-btn.is-playing { background: transparent; color: var(--gold-light); }
.play-btn.is-playing:hover { background: rgba(201, 162, 74, 0.12); }
.play-btn .glyph {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}
/* JS swaps this label to Pause / Play again; it is a hook, styled by its parent. */
.play-label { display: inline-block; }
.play-btn.is-playing .glyph {
  width: 9px; height: 11px;
  border: 0;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.track {
  flex: 1 1 12rem;
  height: 4px;
  background: rgba(239, 231, 218, 0.16);
  position: relative;
  cursor: pointer;
  min-width: 8rem;
  border-radius: 2px;
}
.track .fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  background: var(--gold);
  border-radius: 2px;
}
.track .knob {
  position: absolute; top: 50%; left: 0;
  width: 9px; height: 9px;
  margin-left: -4px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--gold-light);
  opacity: 0;
  transition: opacity 160ms var(--ease);
}
.track:hover .knob, .track:focus-visible .knob { opacity: 1; }

.time { font-variant-numeric: tabular-nums; font-size: 0.76rem; color: var(--parchment-dim); letter-spacing: 0.06em; }

.note {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--parchment-dim);
  border-left: 1px solid var(--line);
  padding-left: 1rem;
}

.note-block {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.2rem, 3vw, 2rem);
}
.note-block h3 { margin-bottom: 0.7rem; }
.note-block ul { padding-left: 1.1rem; }
.note-block li { margin-bottom: 0.5rem; }
.note-block li::marker { color: var(--gold); }

/* ---------- quotes and callouts ---------- */

.quote {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.quote blockquote {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.32;
  font-style: italic;
  color: var(--parchment);
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}
.quote .attrib {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3.2vw, 2.4rem);
  background: rgba(19, 26, 43, 0.45);
}
.panel h3 { margin-top: 0; }
.panel ol, .panel ul { padding-left: 1.15rem; }
.panel li { margin-bottom: 0.6rem; color: var(--parchment-dim); }
.panel li::marker { color: var(--gold); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.1em;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  width: 2rem;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  margin-top: var(--section);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: clamp(1.6rem, 4vw, 3rem);
}
.foot-grid h4 {
  font-family: var(--font-text);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.foot-grid a { color: var(--parchment-dim); }
.foot-grid a:hover { color: var(--gold-light); }
.colophon {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--parchment-dim);
  letter-spacing: 0.04em;
}

/* ---------- forms ---------- */

.stepper {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 2rem;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 0.9rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parchment-dim);
}
.stepper .step { display: flex; align-items: center; gap: 0.55rem; flex: 1 1 0; }
.stepper .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem; height: 1.55rem;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  font-size: 0.68rem;
  color: var(--parchment-dim);
}
.stepper .step.is-current { color: var(--gold-light); }
.stepper .step.is-current .step-num { border-color: var(--gold); color: var(--gold-light); }
.stepper .step.is-done .step-num { border-color: var(--sage); color: var(--sage); }

.intake fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
/* Each step of the intake; hidden/shown by [hidden], so no display rule here. */
.step-panel { margin: 0; }
.intake legend {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.field { margin-bottom: 1.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.intake label, .intake .label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  margin-bottom: 0.5rem;
}
.intake .req { color: var(--gold); }
.intake .opt { color: var(--sage); text-transform: none; letter-spacing: 0.02em; }

.intake input[type="text"],
.intake input[type="email"],
.intake textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(8, 11, 18, 0.6);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--parchment);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  transition: border-color 180ms var(--ease);
}
.intake textarea { resize: vertical; min-height: 5.5rem; }
.intake input:focus, .intake textarea:focus {
  border-color: var(--gold);
  outline: 2px solid transparent;
}
.intake input[aria-invalid="true"], .intake textarea[aria-invalid="true"] { border-color: #d4785f; }

.intake .hint { font-size: 0.78rem; line-height: 1.6; color: var(--parchment-dim); margin: 0.5rem 0 0; }

.check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(19, 26, 43, 0.4);
  font-size: 0.92rem;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  color: var(--parchment-dim);
  cursor: pointer;
}
.check:hover { border-color: var(--line); }
.check input { margin-top: 0.25rem; accent-color: var(--gold); flex: none; }

.hp { position: absolute; left: -9999px; }

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}

.confirmation {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3.4vw, 2.6rem);
  background: linear-gradient(180deg, rgba(19, 26, 43, 0.8), rgba(8, 11, 18, 0.6));
}
.reference {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  margin: 0.3rem 0 1.2rem;
}

.status {
  margin-top: 1.4rem;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid #d4785f;
  background: rgba(212, 120, 95, 0.08);
  font-size: 0.9rem;
  color: var(--parchment);
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card { transition: none; }
  .card:hover { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 62rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 1.5rem; }
  .split { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 40rem) {
  .masthead .wrap { min-height: auto; padding-block: 0.85rem; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .nav { gap: 0.8rem 1.1rem; font-size: 0.7rem; letter-spacing: 0.14em; }
  .hero { padding-block: 2.5rem 3rem; }
  .foot-grid { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .quote blockquote { text-align: left; }
  .quote .attrib { text-align: left; }
}

/* ---------- print ---------- */

@media print {
  body { background: #fff; color: #111; }
  body::before, body::after, .masthead, .site-foot, .actions { display: none; }
  a { color: #111; }
}
