@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/newsreader-latin.20260916.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.20260916.woff2") format("woff2");
}

:root {
  --midnight: #080d16;
  --blue: #1e2d42;
  --gold: #d5aa55;
  --paper: #e1e5e8;
  --white: #f4f5f5;
  --ink: #12161c;
  --muted: #535e69;
  --measure: 76rem;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-180%);
}

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  display: flex;
  width: min(100%, calc(var(--measure) + (2 * var(--gutter))));
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem var(--gutter);
  color: var(--white);
  transform: translateX(-50%);
}

.wordmark {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  font-size: 0.95rem;
}

nav a {
  text-decoration-color: transparent;
}

nav a:hover {
  text-decoration-color: var(--gold);
}

.hero {
  position: relative;
  display: grid;
  min-height: 54rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.72fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  padding: 9rem max(var(--gutter), calc((100vw - var(--measure)) / 2)) 6rem;
  background: var(--midnight);
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: -8%;
  background-image: radial-gradient(ellipse at 76% 4%, rgb(229 237 247 / 21%), transparent 28%), radial-gradient(circle at 76% 28%, rgb(213 170 85 / 11%), transparent 31%), linear-gradient(120deg, transparent 65%, rgb(167 185 207 / 4%));
  content: "";
  pointer-events: none;
  transform-origin: 76% 8%;
  animation: spotlight 12s ease-in-out infinite alternate;
}

.hero::after {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 8%) 0.55px, transparent 0.7px);
  background-size: 5px 5px;
  content: "";
  opacity: 0.13;
  pointer-events: none;
}

.hero-copy,
.cover-stage {
  position: relative;
  z-index: 1;
}

.premise {
  margin: 0 0 2rem;
  color: #e6d4ae;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.28;
  animation: hero-reveal 700ms 80ms ease-out both;
}

h1,
h2,
h3,
.statement p {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  line-height: 0.98;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.2rem, 7.4vw, 7.2rem);
  letter-spacing: -0.045em;
  animation: hero-reveal 780ms 180ms ease-out both;
}

h1 em {
  font-weight: 400;
}

.byline {
  max-width: 34rem;
  margin: 2rem 0 0;
  color: #cbd0d5;
  animation: hero-reveal 700ms 300ms ease-out both;
}

.hero-action,
.closing-action {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.hero-action {
  animation: hero-reveal 700ms 410ms ease-out both;
}

.hero-action p,
.closing-action p {
  margin: 0;
  color: #aeb7c1;
  font-size: 0.85rem;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.45rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #10141b;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  overflow: hidden;
  transition: background-color 160ms ease, color 160ms ease;
}

.hero .button::after {
  position: absolute;
  top: -60%;
  left: -45%;
  width: 28%;
  height: 220%;
  background: rgb(255 255 255 / 42%);
  content: "";
  pointer-events: none;
  transform: rotate(18deg) translateX(-250%);
  animation: button-sheen 900ms 1.25s ease-out both;
}

.button:hover {
  background: #deb96f;
}

.button[aria-disabled="true"] {
  cursor: not-allowed;
}

.cover-stage {
  width: min(100%, 27rem);
  margin: 0 auto;
}

.cover-stage picture {
  display: block;
  transform-origin: 50% 65%;
  animation: book-drift 7s ease-in-out infinite;
}

.cover-stage img {
  width: 100%;
  border: 1px solid rgb(213 170 85 / 38%);
  box-shadow: 1.2rem 1.4rem 0 rgb(0 0 0 / 22%), 0 2rem 5rem rgb(0 0 0 / 35%);
}

.cover-stage figcaption {
  margin-top: 1.25rem;
  color: #aeb7c1;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spotlight {
  from {
    opacity: 0.72;
    transform: translate3d(-1.2%, -0.5%, 0) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translate3d(1.2%, 1%, 0) scale(1.035);
  }
}

@keyframes book-drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-0.15deg);
  }

  50% {
    transform: translate3d(0, -6px, 0) rotate(0.15deg);
  }
}

@keyframes button-sheen {
  from {
    transform: rotate(18deg) translateX(-250%);
  }

  to {
    transform: rotate(18deg) translateX(850%);
  }
}

.case,
.authors {
  padding: clamp(5rem, 10vw, 9rem) max(var(--gutter), calc((100vw - var(--measure)) / 2));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid #aeb4b7;
}

.section-heading > p,
.closing > div > p,
.error-content > p:first-child {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.5rem, 5.2vw, 5.3rem);
  letter-spacing: -0.04em;
}

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.65fr);
  gap: clamp(3rem, 9vw, 8rem);
  padding-top: clamp(3rem, 7vw, 6rem);
}

.synopsis {
  max-width: 45rem;
}

.synopsis p {
  margin: 0 0 1.5rem;
}

.synopsis .lead {
  color: var(--blue);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.35;
}

.case-notes {
  border-top: 4px solid var(--gold);
}

.case-notes p {
  margin: 0;
  padding: 1.4rem 0;
  border-bottom: 1px solid #b7bcbe;
}

.case-notes strong,
.case-notes span {
  display: block;
}

.case-notes strong {
  margin-bottom: 0.4rem;
  color: var(--blue);
  font-size: 0.9rem;
}

.case-notes span {
  color: #434a50;
  font-size: 0.95rem;
  line-height: 1.5;
}

.statement {
  margin: 0;
  padding: clamp(5rem, 11vw, 10rem) var(--gutter);
  background: var(--blue);
  color: var(--white);
  text-align: center;
}

.statement p {
  max-width: 24ch;
  margin: 0 auto;
  font-size: clamp(2.3rem, 5.5vw, 5.6rem);
  letter-spacing: -0.035em;
}

.excerpt {
  padding: clamp(5rem, 10vw, 9rem) max(var(--gutter), calc((100vw - var(--measure)) / 2));
  background: var(--midnight);
  color: var(--white);
}

.section-heading-dark {
  border-color: #3b4859;
}

.section-heading-dark > p {
  color: #aeb7c1;
}

.excerpt-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 9vw, 8rem);
  padding-top: clamp(3rem, 7vw, 6rem);
}

.excerpt-grid blockquote {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 4px solid var(--gold);
}

.excerpt-grid blockquote p {
  margin: 0;
  color: #e5c887;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.2;
}

.excerpt-copy {
  max-width: 43rem;
  color: #d1d6dc;
}

.excerpt-copy p {
  margin: 0 0 1.35rem;
}

.excerpt-copy .excerpt-turn {
  margin-top: 2.25rem;
  color: var(--white);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 500;
}

.authors {
  background: var(--white);
}

.collaboration {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: clamp(3rem, 7vw, 6rem);
}

.collaboration p {
  margin: 0;
  color: #35404a;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.45;
}

.author-profiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid #bec3c4;
}

.author-profiles article {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.author-profiles picture,
.author-profiles img {
  width: 100%;
}

.author-profiles img {
  background: #d2d2d0;
  box-shadow: 0.55rem 0.55rem 0 var(--gold);
}

h3 {
  grid-column: 1;
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.full-name {
  grid-column: 1;
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.author-profiles article > div > p:last-child {
  margin: 1.25rem 0 0;
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: end;
  padding: clamp(5rem, 10vw, 9rem) max(var(--gutter), calc((100vw - var(--measure)) / 2));
  background: var(--gold);
}

.closing h2 {
  max-width: 17ch;
  color: var(--midnight);
}

.closing > div > p,
.closing-action p {
  color: #3c3528;
}

.button-dark {
  border-color: var(--midnight);
  background: var(--midnight);
  color: var(--white);
}

.button-dark:hover {
  background: var(--blue);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding: 3.5rem max(var(--gutter), calc((100vw - var(--measure)) / 2));
  background: #05080e;
  color: #b8c0c8;
  font-size: 0.85rem;
}

footer p {
  margin: 0;
}

footer strong {
  color: var(--white);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.2rem;
}

.error-page {
  min-height: 100vh;
  background: var(--midnight);
  color: var(--white);
}

.error-content {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 7rem max(var(--gutter), calc((100vw - var(--measure)) / 2));
}

.error-content h1 {
  max-width: none;
}

.error-content > p:not(:first-child) {
  color: #cbd0d5;
}

.error-content .button {
  margin-top: 1.5rem;
}

@media (max-width: 800px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 8.5rem;
  }

  .hero-copy {
    max-width: 40rem;
  }

  .cover-stage {
    width: min(82vw, 24rem);
  }

  .section-heading,
  .case-grid,
  .excerpt-grid,
  .collaboration,
  .author-profiles,
  .closing {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 1rem;
  }

  .closing {
    align-items: start;
  }

  .closing-action {
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    max-width: 9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem 1rem;
  }

  nav a:last-child {
    display: none;
  }

  nav a:nth-child(2) {
    display: none;
  }

  .author-profiles article {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1.4rem;
  }

  .hero-action,
  .closing-action,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-action,
  .closing-action {
    gap: 0.75rem;
  }

  .button {
    width: 100%;
  }

  footer {
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
