:root {
  --night: #0b1410;
  --night-2: #13241d;
  --parch: #ecdcb4;
  --parch-light: #f4e8c8;
  --parch-dark: #d3bb86;
  --ink: #2a1c0f;
  --ink-soft: #5b4630;
  --emerald: #1d4a38;
  --emerald-bright: #2c6a51;
  --wax: #7c1d1d;
  --wax-light: #a8302b;
  --gold: #c9a24b;
  --gold-soft: rgba(201, 162, 75, .35);
  --serif: 'IM Fell English', 'Iowan Old Style', Georgia, serif;
  --caps: 'IM Fell English SC', 'IM Fell English', Georgia, serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .16 0 0 0 0 .06 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--parch);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  background:
    radial-gradient(ellipse at 50% 0%, #1c3a2e 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, #0f1d17 0%, transparent 70%),
    var(--night);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

main { position: relative; z-index: 1; }

.music-toggle {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 40;
  padding: .35em .8em;
  font-family: var(--caps);
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--parch);
  background: rgba(7, 14, 11, .75);
  border: 1px solid var(--gold-soft);
  border-radius: 2px;
  cursor: pointer;
}
.music-toggle:hover { border-color: var(--gold); }
@media (max-width: 640px) {
  .music-toggle { left: auto; bottom: auto; right: 8px; top: 8px; padding: .3em .7em; font-size: .72rem; }
  .after { padding: 0 14px 30px; }
  .block { padding-top: 56px; }
}

[hidden] { display: none !important; }

img { display: block; max-width: 100%; }

/* Buttons */
.btn {
  appearance: none;
  font: inherit;
  font-family: var(--caps);
  font-size: 1.02rem;
  letter-spacing: .06em;
  padding: .72em 1.3em;
  color: var(--ink);
  background: rgba(255, 250, 230, .35);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  box-shadow: 2px 2px 0 rgba(42, 28, 15, .55);
  touch-action: manipulation;
}
.btn:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 rgba(42, 28, 15, .55); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(42, 28, 15, .55); }
.btn:focus-visible { outline: 2px dashed var(--wax); outline-offset: 3px; }
.btn-primary { background: var(--emerald); color: var(--parch-light); border-color: #0f2a20; }
.btn-primary:hover { background: var(--emerald-bright); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* Section scaffolding */
.after { padding: 0 20px 40px; }

.block {
  max-width: 1040px;
  margin: 0 auto;
  padding: 90px 0 30px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.block.seen { opacity: 1; transform: none; }

.eyebrow {
  margin: 0;
  font-family: var(--caps);
  font-size: .85rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::after {
  content: '';
  display: inline-block;
  width: 70px;
  height: 1px;
  margin-left: 14px;
  vertical-align: middle;
  background: var(--gold-soft);
}

.block h2 {
  margin: .1em 0 .35em;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.9rem, 8vw, 4.6rem);
  line-height: 1.05;
  color: var(--parch-light);
}

.block-intro { max-width: 36em; margin: 0 0 28px; font-style: italic; color: #cdbf9c; }

.foot { text-align: center; padding: 70px 0 30px; font-style: italic; color: #a99c7c; }
.foot p { margin: 0; }
.foot-thanks { font-family: var(--script); font-style: normal; font-size: clamp(2.6rem, 8vw, 3.8rem); line-height: 1.1; color: var(--parch-light); }
.foot-small { margin-top: 8px !important; font-family: var(--caps); font-style: normal; font-size: .8rem; letter-spacing: .25em; color: #6f6750; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
