/* Editions one-pager — Saddle Up copper/ink system over scroll atmosphere */
:root {
  --ed-bg: #14100c;
  --ed-bg-deep: #0e0a07;
  --ed-ink: #f7f0e4;
  --ed-muted: #b8a894;
  --ed-dim: #8a7a66;
  --ed-accent: #de8a4a;
  --ed-accent-hover: #c67438;
  --ed-gold: #d4a84b;
  --ed-line: rgba(212, 168, 75, 0.14);
  --ed-card: rgba(34, 27, 20, 0.72);
  --ed-font: "Inter", system-ui, -apple-system, sans-serif;
  --ed-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--ed-bg);
  color: var(--ed-ink);
  font-family: var(--ed-font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.ed-canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--ed-bg-deep);
  overflow: clip;
}
.ed-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.ed-canvas-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(222, 138, 74, 0.22), transparent 52%),
    radial-gradient(ellipse at 18% 28%, rgba(212, 168, 75, 0.12), transparent 42%),
    radial-gradient(ellipse at 82% 38%, rgba(196, 165, 116, 0.1), transparent 44%),
    var(--ed-bg-deep);
}

.ed-ui {
  position: relative;
  z-index: 2;
}

.ed-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(20, 16, 12, 0.88), transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.ed-top__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}
.ed-top__brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.ed-top__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ed-top__actions a:not(.ed-btn) {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ed-muted);
}
.ed-top__actions a:not(.ed-btn):hover { color: var(--ed-ink); }
.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ed-accent);
  color: #120d09;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.02em;
  border: 0;
  box-shadow: 0 0 24px rgba(222, 138, 74, 0.28);
  transition: background 0.2s var(--ed-ease), transform 0.2s var(--ed-ease);
}
.ed-btn:hover {
  background: var(--ed-accent-hover);
  transform: translateY(-1px);
}
.ed-btn--ghost {
  background: transparent;
  color: var(--ed-ink);
  border: 1px solid rgba(247, 240, 228, 0.28);
  box-shadow: none;
}
.ed-btn--ghost:hover {
  background: rgba(247, 240, 228, 0.06);
  border-color: rgba(247, 240, 228, 0.5);
}

.ed-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 80px 20px 140px;
  text-align: center;
}
.ed-hero__stage {
  width: min(100%, 1100px);
  perspective: 1400px;
  perspective-origin: 50% 50%;
}
.ed-wordmark {
  display: grid;
  place-items: center;
  height: clamp(120px, 22vw, 200px);
  margin: 10px auto 0;
  user-select: none;
  transform-style: preserve-3d;
}
.ed-wordmark__ring {
  position: relative;
  width: clamp(300px, 68vw, 720px);
  height: clamp(56px, 12vw, 128px);
  transform-style: preserve-3d;
  will-change: transform;
}
.ed-wordmark__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transform: translateZ(48px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.ed-wordmark__flat {
  display: none;
  width: min(100%, 560px);
  height: auto;
  max-width: none;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}
.ed-hero__eyebrow {
  margin: 0 0 18px;
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(222, 138, 74, 0.45);
  background: rgba(14, 10, 7, 0.72);
  color: #f0a06a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.ed-hero__copy {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  margin: 24px auto 0;
  padding: 20px 22px 22px;
  border-radius: 18px;
  background: rgba(14, 10, 7, 0.78);
  border: 1px solid rgba(212, 168, 75, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(247, 240, 228, 0.06);
}
.ed-hero__sub {
  margin: 0;
  max-width: none;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #f7f0e4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.ed-hero__meta {
  margin: 12px 0 0;
  max-width: none;
  color: #d4c6b0;
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 500;
}

.ed-pills {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  border-radius: 999px;
  background: rgba(20, 16, 12, 0.82);
  border: 1px solid var(--ed-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.ed-pills a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ed-muted);
  white-space: nowrap;
}
.ed-pills a.is-active,
.ed-pills a:hover {
  background: rgba(222, 138, 74, 0.18);
  color: var(--ed-ink);
}

.ed-chapter {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: 72px clamp(16px, 4vw, 40px) 130px;
}
.ed-chapter__card {
  width: min(100%, 560px);
  padding: 30px 30px 32px;
  border-radius: 20px;
  background: rgba(14, 10, 7, 0.88);
  border: 1px solid rgba(212, 168, 75, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(247, 240, 228, 0.06);
}
.ed-chapter__kicker {
  margin: 0 0 12px;
  color: #f0a06a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ed-chapter h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.8vw, 2.4rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #f7f0e4;
  text-wrap: balance;
}
.ed-chapter__card > p {
  margin: 14px 0 0;
  color: #d4c6b0;
  font-size: 1.02rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.ed-chapter__list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ed-chapter__list li {
  position: relative;
  padding-left: 22px;
  color: #f7f0e4;
  font-size: 0.96rem;
  line-height: 1.45;
  text-wrap: pretty;
}
.ed-chapter__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ed-accent);
  box-shadow: 0 0 12px rgba(222, 138, 74, 0.55);
}
.ed-chapter__stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 168, 75, 0.16);
}
.ed-chapter__stat strong {
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  color: var(--ed-accent);
  line-height: 1;
}
.ed-chapter__stat span {
  color: #d4c6b0;
  font-size: 0.92rem;
  line-height: 1.35;
  text-wrap: pretty;
}
.ed-chapter__link {
  display: inline-flex;
  margin-top: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ed-accent);
}
.ed-chapter__link:hover {
  color: #f0a06a;
}
.ed-chapter--right .ed-chapter__card {
  margin-left: auto;
}

.ed-close {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px 150px;
}
.ed-close__card {
  width: min(100%, 640px);
  padding: 36px 32px 34px;
  border-radius: 24px;
  background: rgba(14, 10, 7, 0.9);
  border: 1px solid rgba(222, 138, 74, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(222, 138, 74, 0.12),
    inset 0 1px 0 rgba(247, 240, 228, 0.08);
}
.ed-close__kicker {
  margin: 0 0 12px;
  color: #f0a06a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ed-close h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.045em;
  color: #f7f0e4;
  text-wrap: balance;
}
.ed-close__card > p {
  margin: 14px auto 0;
  max-width: 40ch;
  color: #d4c6b0;
  font-size: 1.05rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.ed-close__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}
.ed-close__note {
  margin: 18px 0 0;
  color: #8a7a66;
  font-size: 0.88rem;
  text-wrap: pretty;
}

.ed-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(16px, 4vw, 40px) 110px;
  font-size: 0.85rem;
  color: var(--ed-dim);
}
.ed-foot a:hover { color: var(--ed-accent); }

@media (max-width: 720px) {
  .ed-pills {
    bottom: 12px;
    border-radius: 22px;
    gap: 4px;
    padding: 6px;
  }
  .ed-pills a {
    padding: 8px 10px;
    font-size: 0.7rem;
  }
  .ed-wordmark {
    height: clamp(96px, 28vw, 140px);
  }
  .ed-wordmark__ring {
    width: min(90vw, 400px);
    height: clamp(48px, 13vw, 72px);
  }
  .ed-wordmark__face {
    transform: translateZ(28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ed-wordmark__ring {
    display: none !important;
  }
  .ed-wordmark__flat {
    display: block;
  }
  .ed-canvas-wrap { display: none; }
  body {
    background:
      radial-gradient(ellipse at 50% 40%, rgba(222, 138, 74, 0.16), transparent 50%),
      var(--ed-bg);
  }
}
