:root {
  color-scheme: dark;
  --ink: #eee7d6;
  --muted: #b9b09c;
  --dim: #827a68;
  --night: #0c110f;
  --panel: #141a17;
  --panel-2: #1b211d;
  --line: rgba(216, 195, 146, .23);
  --gold: #c6a45e;
  --gold-bright: #dec17a;
  --red: #9c5b4a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -10%, rgba(117, 103, 67, .18), transparent 38rem),
    linear-gradient(180deg, #111714 0, var(--night) 80%);
  color: var(--ink);
  font-family: var(--serif);
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.75' numOctaves='3' stitchTiles='stitch' type='fractalNoise'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
.skip-link { position: fixed; top: 1rem; left: 1rem; transform: translateY(-200%); z-index: 20; color: #111; background: var(--gold-bright); padding: .7rem 1rem; }
.skip-link:focus { transform: none; }

.masthead {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: .9rem; }
.brand-mark { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-bright); font-size: 1.15rem; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .24em; font-size: .92rem; }
.brand small, .edition, .eyebrow, .volume-number, .status, .details, footer { font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em; }
.brand small { color: var(--dim); font-size: .58rem; margin-top: .28rem; }
.edition { color: var(--dim); font-size: .64rem; }

main { overflow: hidden; }
.prologue { max-width: 1240px; margin: 0 auto; padding: 3.4rem 2rem 2.5rem; display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.7rem 4rem; align-items: end; }
.prologue > .eyebrow, .prologue > .principle { grid-column: 1 / -1; }
.eyebrow { color: var(--gold); font-size: .67rem; font-weight: 700; margin: 0 0 1rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 0; font-weight: 400; font-size: clamp(3.5rem, 7vw, 6.7rem); line-height: .86; letter-spacing: -.055em; }
h1 em { color: var(--gold-bright); font-weight: 400; }
.lede { max-width: 620px; margin: 0 0 .25rem; color: #ccc4b2; font-size: 1.12rem; line-height: 1.72; }
.principle { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: .7rem 2rem; color: var(--dim); font-family: var(--sans); font-size: .73rem; letter-spacing: .08em; }
.principle span + span::before { content: '◆'; color: var(--gold); margin-right: 2rem; font-size: .48rem; vertical-align: .15rem; }

.library { max-width: 1240px; margin: 0 auto; padding: 2rem 2rem 5rem; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(260px, 430px); gap: 2rem; align-items: end; padding: 0 0 1.5rem; border-bottom: 1px solid var(--line); }
.section-heading h2, .record-strip h2 { margin: 0; font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem); }
.section-heading > p { color: var(--muted); line-height: 1.65; margin: 0; }
.volumes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.4rem; }
.volume { min-width: 0; background: linear-gradient(150deg, rgba(31, 37, 32, .98), rgba(16, 21, 18, .98)); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.volume-art { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0b0f0d; }
.volume-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,6,5,.05), rgba(7,10,8,.52)); pointer-events: none; }
.volume-art img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.68) contrast(1.05); transition: transform .8s ease, filter .8s ease; }
.volume:hover .volume-art img { transform: scale(1.025); filter: saturate(.82) contrast(1.03); }
.status { position: absolute; z-index: 1; top: 1rem; left: 1rem; padding: .55rem .7rem; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); font-size: .58rem; font-weight: 700; }
.available { background: rgba(68, 87, 62, .82); }
.forthcoming { background: rgba(91, 66, 51, .84); }
.volume-copy { padding: 1.75rem; }
.volume-number { display: flex; justify-content: space-between; color: var(--dim); font-size: .6rem; }
.volume h3 { font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.8rem); letter-spacing: .06em; margin: 1.4rem 0 0; }
.volume-subtitle { color: var(--gold); font-style: italic; font-size: 1.15rem; margin-bottom: 1.4rem; }
.volume-copy > p:not(.volume-subtitle) { color: var(--muted); line-height: 1.66; font-size: 1rem; min-height: 5.1rem; }
.details { display: flex; flex-wrap: wrap; padding: 1rem 0; margin: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; color: #aaa18d; font-size: .61rem; gap: .55rem 1.4rem; }
.details li + li::before { content: '·'; color: var(--gold); margin-right: 1.4rem; }
.primary-action, .secondary-action { min-height: 3rem; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .85rem 1rem; border: 1px solid var(--gold); font-family: var(--sans); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease; }
.primary-action { background: var(--gold); color: #11140f; }
.secondary-action { background: transparent; color: var(--ink); }
.primary-action:hover, .secondary-action:hover { background: var(--gold-bright); color: #11140f; }
.action-note { display: block; color: var(--dim); font-family: var(--sans); font-size: .68rem; line-height: 1.5; margin-top: .7rem; }

.record-strip { max-width: 1176px; margin: 0 auto 6rem; padding: 2rem 2.2rem; border: 1px solid var(--line); display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 3rem; background: rgba(23, 29, 25, .65); }
.record-strip p:last-child { color: var(--muted); line-height: 1.7; margin: 0; }
footer { max-width: 1240px; margin: 0 auto; padding: 1.4rem 2rem 2rem; border-top: 1px solid var(--line); color: var(--dim); font-size: .58rem; display: flex; justify-content: space-between; }

.concept-dialog { width: min(960px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 3.5rem); color: var(--ink); background: #151b18; box-shadow: 0 34px 100px #000; }
.concept-dialog::backdrop { background: rgba(3,6,5,.8); backdrop-filter: blur(5px); }
.concept-dialog h2 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 400; margin-bottom: .6rem; }
.dialog-lede { max-width: 700px; color: #ccc4b2; font-size: 1.15rem; line-height: 1.65; }
.close-button { position: absolute; right: 1rem; top: 1rem; width: 2.8rem; height: 2.8rem; color: var(--ink); background: transparent; border: 1px solid var(--line); font-size: 1.8rem; cursor: pointer; }
.prospectus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 2rem 0; }
.prospectus-grid section { background: #151b18; padding: 1.4rem; }
.prospectus-grid span { color: var(--gold); font-family: var(--sans); font-size: .65rem; letter-spacing: .15em; }
.prospectus-grid h3 { font-size: 1.35rem; font-weight: 400; margin: .55rem 0; }
.prospectus-grid p { color: var(--muted); line-height: 1.55; margin: 0; }
blockquote { margin: 2.4rem 0; padding: 1.3rem 0 1.3rem 1.5rem; border-left: 2px solid var(--gold); color: var(--gold-bright); font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.45; font-style: italic; }
.close-wide { max-width: 300px; }

@media (max-width: 780px) {
  .masthead { padding: 1rem; }
  .edition { display: none; }
  .prologue { padding: 3.5rem 1rem 2.5rem; display: block; }
  h1 { font-size: clamp(3.5rem, 17vw, 5.4rem); }
  .lede { font-size: 1.05rem; margin: 1.6rem 0 2rem; }
  .principle { justify-content: flex-start; display: grid; gap: .65rem; }
  .principle span + span::before { margin-right: .7rem; }
  .library { padding: 1rem 1rem 3.5rem; }
  .section-heading, .volumes, .record-strip { grid-template-columns: 1fr; }
  .section-heading { gap: 1rem; }
  .volume-copy { padding: 1.25rem; }
  .volume-copy > p:not(.volume-subtitle) { min-height: 0; }
  .details { gap: .65rem; display: grid; }
  .details li + li::before { margin-right: .7rem; }
  .record-strip { margin: 0 1rem 4rem; padding: 1.4rem; gap: 1rem; }
  footer { padding: 1.2rem 1rem; display: grid; gap: .6rem; }
  .prospectus-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
