:root {
  color-scheme: dark;
  --ink: #f4f0e6;
  --muted: #c5cbd0;
  --accent: #ebc783;
  --bg: #0d1620;
  --panel: #141f2a;
  --line: #3a4650;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: system-ui, sans-serif;
  line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip { position: absolute; left: 1rem; top: 1rem; transform: translateY(-160%); background: var(--bg); z-index: 1; }
.skip:focus { transform: none; }
.shell { width: min(69rem, calc(100% - 3rem)); margin-inline: auto; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.brand { color: var(--accent); font: 700 1.35rem var(--serif); letter-spacing: .1em; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem clamp(.8rem, 3vw, 2rem); font-size: .9rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero {
  --trace: #82b4cb;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  margin-block: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.5rem, 5vw, 4rem);
}
.hero::before, .hero-copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  inset: 0;
  border: 1px solid #456376;
  opacity: .7;
  background:
    linear-gradient(var(--trace), var(--trace)) left top / 2.4rem 2px,
    linear-gradient(var(--trace), var(--trace)) left top / 2px 2.4rem,
    linear-gradient(var(--trace), var(--trace)) right top / 2.4rem 2px,
    linear-gradient(var(--trace), var(--trace)) right top / 2px 2.4rem,
    linear-gradient(var(--trace), var(--trace)) left bottom / 2.4rem 2px,
    linear-gradient(var(--trace), var(--trace)) left bottom / 2px 2.4rem,
    linear-gradient(var(--trace), var(--trace)) right bottom / 2.4rem 2px,
    linear-gradient(var(--trace), var(--trace)) right bottom / 2px 2.4rem,
    repeating-linear-gradient(90deg, #436477 0 1px, transparent 1px 5px) right 1rem bottom .85rem / 3rem .35rem;
  background-repeat: no-repeat;
}
.hero-copy { position: relative; isolation: isolate; min-width: 0; }
.hero-copy::before {
  inset: -1.5rem -1rem;
  background: url('images/humanoid-silhouette.svg') right center / contain no-repeat;
  mask-image: linear-gradient(90deg, transparent 10%, #000 78%);
  opacity: .32;
}
.eyebrow { color: var(--accent); font-size: .73rem; font-weight: 650; text-transform: uppercase; letter-spacing: .15em; margin: 0 0 .8rem; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(3.2rem, 9.5vw, 7.25rem); letter-spacing: -.06em; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -.035em; }
.book-title { font: clamp(1.17rem, 2.6vw, 1.65rem)/1.3 var(--serif); margin: .9rem 0 .25rem; }
.subtitle { margin: 0; font-style: italic; }
.byline { margin: 1.15rem 0 .12rem; font-weight: 650; }
.sanctuary { font-size: .86rem; color: var(--accent); }
.hook { border-top: 1px solid var(--line); margin-top: 1.65rem; padding-top: 1.5rem; }
.hook h2 { font-size: clamp(1.6rem, 3.2vw, 2.45rem); }
p:not(.eyebrow, .book-title, .byline) { color: var(--muted); }
.hook p { margin-bottom: 1.25rem; }
.button { display: inline-flex; align-items: center; gap: 1rem; border-radius: .2rem; background: var(--accent); color: #17212b; padding: .62rem 1rem; text-decoration: none; font-weight: 700; }
.button:hover { background: #f9dca6; }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.cover { width: min(100%, 25rem); justify-self: end; }
.cover img { width: 100%; border-radius: .35rem; outline: 1px solid #69717b; box-shadow: 0 18px 64px #0007; }
.panel { background: var(--panel); border-block: 1px solid var(--line); }
.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2rem 4rem; align-items: start; }
.about, .chapter-inner, .editions { padding-block: clamp(2.6rem, 6vw, 5rem); }
.body-copy p:first-child { margin-top: 0; }
.body-copy p:last-child { margin-bottom: 0; }
.chapter-inner > p:not(.eyebrow) { max-width: 61ch; }
.book-preview {
  max-width: 52rem;
  margin-top: 1.75rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: var(--bg);
  scroll-margin-top: 1rem;
}
.book-preview summary {
  padding: .9rem 1rem;
  color: var(--accent);
  cursor: pointer;
  font-weight: 650;
}
.book-preview:focus-visible, .book-preview summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.preview-content { padding: clamp(1rem, 3.8vw, 2rem); border-top: 1px solid var(--line); }
.preview-content h3 { margin: 0 0 .85rem; font: 400 clamp(1.4rem, 3vw, 1.85rem)/1.25 var(--serif); }
.preview-content blockquote {
  max-width: 64ch;
  margin: 0 0 1.9rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.08rem;
}
.preview-content blockquote p:first-child { margin-top: 0; }
.preview-content blockquote p:last-child { margin-bottom: 0; }
.reading-guide { max-width: 66ch; padding-left: 1.35rem; margin: 0; color: var(--muted); }
.reading-guide li + li { margin-top: .6rem; }
.reading-guide strong { color: var(--ink); }
.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 4rem; }
.editions p:last-child { margin-bottom: 0; }
@media (max-width: 650px) {
  .shell { width: calc(100% - 2rem); }
  .hero, .about, .editions { grid-template-columns: 1fr; }
  .hero { padding-inline: 1rem; }
  .hero-copy::before { inset-inline: 0; opacity: .26; }
  .cover { justify-self: center; width: min(80%, 22rem); }
}
