:root {
  --ink: #0d0d0e;
  --graphite: #232127;
  --paper: #f4f0e8;
  --white: #ffffff;
  --gold: #c59731;
  --gold-deep: #75571c;
  --stone: #aaa49a;
  --ink-raised: #151417;
  --paper-soft: #ebe4d8;
  --line: color-mix(in srgb, var(--stone) 40%, transparent);
  --line-gold: color-mix(in srgb, var(--gold) 48%, transparent);
  --shadow-deep: 0 1.5rem 4rem rgb(0 0 0 / .28);
  --serif: Iowan Old Style, Baskerville, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space-1: clamp(.5rem, .45rem + .25vw, .75rem);
  --space-2: clamp(1rem, .9rem + .5vw, 1.5rem);
  --space-3: clamp(1.5rem, 1.2rem + 1.5vw, 3rem);
  --space-4: clamp(3rem, 2rem + 5vw, 7rem);
  --space-5: clamp(5rem, 3rem + 8vw, 11rem);
  --shell: min(100% - 2rem, 76rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .95rem + .2vw, 1.125rem);
  line-height: 1.55;
}

a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--gold); }

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: .7rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.eyebrow {
  margin: 0 0 var(--space-1);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.folio {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: .75rem;
  margin: 0;
  color: var(--gold-deep);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.folio span:first-child {
  padding-right: .75rem;
  border-right: 1px solid var(--line-gold);
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

.material-panel {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--gold) 8%, transparent), transparent 38%),
    var(--ink-raised);
  box-shadow: var(--shadow-deep);
  color: var(--paper);
}

.material-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgb(255 255 255 / .018) 0 1px, transparent 1px 5px);
  content: '';
  pointer-events: none;
}

.editorial-rule {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--gold-deep);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.editorial-rule::after {
  min-width: 2rem;
  height: 1px;
  flex: 1;
  background: var(--line-gold);
  content: '';
  pointer-events: none;
}

.display-number {
  margin: 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(4.5rem, 2.5rem + 9vw, 12rem);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .78;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.page-hero__edition {
  position: absolute;
  z-index: 0;
  inset: 50% max(1rem, calc((100% - 76rem) / 2)) auto auto;
  color: color-mix(in srgb, var(--gold) 15%, transparent);
  font-family: var(--serif);
  font-size: clamp(11rem, 7rem + 20vw, 28rem);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.09em;
  line-height: .65;
  pointer-events: none;
  transform: translateY(-50%);
  user-select: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.scene-frame {
  position: relative;
  isolation: isolate;
}

.scene-frame::before,
.scene-frame::after {
  position: absolute;
  z-index: -1;
  content: '';
  pointer-events: none;
}

.scene-frame::before {
  inset: -1px;
  border: 1px solid var(--line-gold);
}

.scene-frame::after {
  inset: -10% -6%;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 58%);
  opacity: .28;
}

[data-scene] { opacity: 1; transform: none; }

[data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .js.reveal-ready [data-reveal] { opacity: 0; transform: translateY(1rem); transition: opacity .55s ease, transform .55s ease; }
  .js.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
  .scene-frame::after { transition: opacity 1.2s ease; }
  .scene-frame.is-scene-active::after { opacity: .62; }
}

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