:root {
  --paper: #f4eef7;
  --ink: #1b1324;
  --violet: #5a2a78;
  --gold: #c4a06a;
  --rule: #d9cde3;
  --mute: #5c4e68;
  --col: 70rem;
  --pad: clamp(1.2rem, 5vw, 3.6rem);
}

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

html, body { margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

::selection {
  background: #dcc7ea;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

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

a { color: var(--violet); }
a:hover { color: var(--gold); }

button {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(var(--col), calc(100% - 2 * var(--pad)));
  margin-left: auto;
  margin-right: auto;
}

.mast {
  padding-top: 1.3rem;
  background: var(--paper);
}

.mast-inner {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 1.15rem;
}

.spine {
  grid-row: 1 / 3;
  width: 6px;
  background: var(--violet);
}

.brand {
  grid-column: 2;
  padding-bottom: 0.85rem;
}

.issue {
  margin: 0 0 0.55rem;
  font-family: Sora, "Helvetica Neue", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
}

.word {
  display: inline-block;
  color: var(--ink);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.05rem, 5.2vw, 3.3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.word:hover { color: var(--violet); }

.tag {
  margin-top: 0.5rem;
  margin-bottom: 0;
  color: var(--mute);
  font-style: italic;
  font-size: 1.05rem;
}

.rail {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.3rem;
  margin-top: 0;
  padding-top: 0.72rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--rule);
  font-family: Sora, "Helvetica Neue", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rail a {
  color: var(--ink);
  text-decoration: none;
}

.rail a:hover,
.rail a[aria-current="page"] {
  color: var(--violet);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 86vh;
  overflow: hidden;
  background: var(--ink);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 38%;
}

.veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--violet) 0%,
    rgba(90, 42, 120, 0.5) 36%,
    transparent 72%
  );
  opacity: 0.55;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(2.1rem, 8vh, 5.4rem);
  color: var(--paper);
}

.hero-copy .cut {
  color: var(--gold);
}

.hero-copy h1 {
  max-width: 16ch;
  margin: 0;
  color: var(--paper);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 4.7rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.hero-copy p {
  max-width: 34rem;
  margin-top: 0.85rem;
  margin-bottom: 0;
  color: var(--paper);
  font-size: 1.08rem;
}

.intro {
  padding-top: 2.5rem;
  padding-bottom: 0.4rem;
}

.lede {
  max-width: 38rem;
  margin-top: 0;
  margin-bottom: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.45rem, 3.1vw, 2.05rem);
  line-height: 1.28;
}

.by {
  margin-top: 0.7rem;
  margin-bottom: 0;
  font-family: Sora, "Helvetica Neue", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
}

.leaf {
  display: block;
  padding-top: 1.45rem;
  padding-bottom: 1.65rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.leaf:nth-child(odd) {
  padding-right: 1.8rem;
  border-right: 1px solid var(--rule);
}

.leaf:nth-child(even) {
  padding-left: 1.8rem;
}

.leaf .num {
  font-family: Sora, "Helvetica Neue", sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.leaf h2 {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.leaf p {
  margin: 0;
  color: var(--mute);
}

.leaf:hover h2 { color: var(--violet); }

.piece {
  padding-top: 2.2rem;
  padding-bottom: 3.4rem;
}

.cut {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-family: Sora, "Helvetica Neue", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
}

.piece h1,
.legal h1,
.miss h1 {
  max-width: 16ch;
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.piece p,
.legal p,
.legal li {
  max-width: 42rem;
}

.piece p + p,
.legal p + p,
.legal h2 + p {
  margin-top: 1rem;
}

.frame {
  margin-top: 1.5rem;
  margin-bottom: 1.7rem;
}

.frame img {
  width: 100%;
  height: min(28rem, 56vh);
  object-fit: cover;
}

.frame figcaption {
  margin-top: 0.5rem;
  font-family: Sora, "Helvetica Neue", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--mute);
}

.wide img { height: min(34rem, 64vh); }

.legal {
  padding-top: 2.2rem;
  padding-bottom: 3.4rem;
}

.legal h2 {
  margin-top: 1.7rem;
  margin-bottom: 0.45rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.legal ul {
  max-width: 42rem;
  padding-left: 1.15rem;
}

.legal code {
  font-family: Sora, ui-monospace, monospace;
  font-size: 0.86em;
}

.stack {
  display: grid;
  gap: 0;
  margin-top: 1.6rem;
  border-top: 1px solid var(--rule);
}

.stack article {
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}

.stack h2 {
  margin: 0 0 0.3rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.stack p { margin: 0; color: var(--mute); }

.mail {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: Sora, "Helvetica Neue", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.miss {
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}

.miss a.back {
  font-family: Sora, "Helvetica Neue", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.colophon {
  margin-top: 1.2rem;
  padding-top: 1.8rem;
  padding-bottom: 3rem;
  border-top: 6px solid var(--violet);
}

.colophon nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  margin-bottom: 0.9rem;
  font-family: Sora, "Helvetica Neue", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.colophon nav a {
  color: var(--ink);
  text-decoration: none;
}

.colophon nav a:hover { color: var(--gold); }

.colophon p {
  max-width: 46rem;
  margin-top: 0;
  margin-bottom: 0;
  color: var(--mute);
  font-size: 0.95rem;
}

.cookie {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding-top: 1rem;
  padding-bottom: 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid #3a2948;
}

.cookie.is-on { display: block; }

html.has-cookie body {
  padding-bottom: 8.5rem;
}

.cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.6rem;
}

.cookie p {
  margin: 0;
  color: #eadff0;
  font-size: 0.94rem;
}

.cookie a { color: var(--gold); }

.cookie-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.55rem;
}

.cookie button {
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  font-family: Sora, "Helvetica Neue", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie button[data-cookie="essential"] {
  background: transparent;
  color: var(--paper);
}

.cookie button:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

html.js [data-rise] {
  opacity: 0;
  transform: translateY(16px);
}

html.js [data-rise].is-up {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  html.js [data-rise] {
    transition: opacity 0.75s ease, transform 0.75s ease;
  }
}

@media (max-width: 720px) {
  .hero { min-height: 72vh; }

  .ledger { grid-template-columns: 1fr; }

  .leaf:nth-child(odd),
  .leaf:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }

  .cookie-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie button { width: 100%; }

  html.has-cookie body { padding-bottom: 12rem; }
}

@media (max-width: 390px) {
  .hero { min-height: 72vh; }
  .rail { gap: 0.4rem 0.95rem; }
}
