:root {
  --ink: #171512;
  --ink-soft: #29251f;
  --paper: #e6d3aa;
  --paper-light: #f3e6ca;
  --paper-deep: #c8aa70;
  --gold: #c48b27;
  --gold-bright: #d9a746;
  --gold-dark: #765011;
  --line: rgba(23, 21, 18, 0.28);
  --display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content: min(1180px, calc(100vw - 48px));
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.48), transparent 24rem),
    repeating-linear-gradient(90deg, rgba(23, 21, 18, 0.018) 0 1px, transparent 1px 5px),
    var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  color: var(--paper-light);
  background: var(--ink);
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 5.25rem;
  padding: 0 3rem;
  border-bottom: 1px solid rgba(234, 216, 183, 0.22);
  color: var(--paper-light);
  background: rgba(23, 21, 18, 0.97);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.wordmark:hover {
  color: inherit;
}

.brand-logo-shell {
  display: grid;
  width: 3.15rem;
  height: 3.15rem;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(244, 234, 216, 0.34);
  border-radius: 50%;
  background: var(--paper-light);
  box-shadow: 0 0 0 1px rgba(196, 139, 39, 0.28);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wordmark-type {
  display: grid;
  font-family: var(--display);
  font-size: 0.82rem;
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.05;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: clamp(1.1rem, 3vw, 2.8rem);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--paper-deep);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(48rem, calc(100svh - 5.25rem));
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.48fr);
  grid-template-rows: 1fr auto;
  color: var(--paper-light);
  background:
    linear-gradient(115deg, rgba(23, 21, 18, 0.98) 0 58%, rgba(23, 21, 18, 0.88)),
    var(--ink);
}

.hero::before {
  position: absolute;
  right: -4rem;
  bottom: -7rem;
  width: clamp(32rem, 55vw, 50rem);
  aspect-ratio: 1;
  content: "";
  opacity: 0.12;
  background: url("/assets/pattern-lantern-logo.png") center / contain no-repeat;
  filter: saturate(0.9) sepia(0.12);
}

.hero-copy {
  z-index: 1;
  align-self: center;
  width: min(48rem, calc(100% - 3rem));
  margin-left: max(3rem, calc((100vw - 1180px) / 2));
  padding: 6rem 0 5rem;
}

.eyebrow {
  margin: 0 0 1.6rem;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow,
.contact-section .eyebrow {
  color: var(--gold-bright);
}

h1,
h2,
.book-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  font-size: clamp(4rem, 8.7vw, 8.4rem);
}

.hero-deck {
  max-width: 42rem;
  margin: 2.5rem 0 2rem;
  color: rgba(244, 234, 216, 0.78);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.55;
}

.text-link {
  display: inline-block;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover {
  color: var(--paper-deep);
}

.hero-notes {
  z-index: 1;
  align-self: center;
  padding: 2rem 3rem 2rem 2rem;
  border-left: 1px solid rgba(234, 216, 183, 0.22);
}

.hero-notes p {
  margin: 0;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(234, 216, 183, 0.18);
  color: rgba(244, 234, 216, 0.78);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.hero-notes p:first-child {
  border-top: 1px solid rgba(234, 216, 183, 0.18);
}

.hero-notes span {
  display: inline-block;
  width: 3.2rem;
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-signal {
  z-index: 1;
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  gap: 0.7rem;
  padding: 1rem 3rem;
  border-top: 1px solid rgba(234, 216, 183, 0.22);
  color: rgba(244, 234, 216, 0.52);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-signal i {
  height: 1px;
  flex: 1;
  background: rgba(234, 216, 183, 0.18);
}

.hero-signal i:nth-of-type(3) {
  height: 3px;
  background: var(--gold);
}

.book-section,
.contents-section,
.about-section {
  width: var(--content);
  margin: 0 auto;
  padding: clamp(5.5rem, 10vw, 9rem) 0;
}

.section-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.book-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.book-visual {
  width: 100%;
  max-width: 24rem;
  margin: 0;
  justify-self: center;
}

.cover-frame {
  position: relative;
  width: 100%;
  overflow: visible;
  padding: clamp(0.7rem, 1.5vw, 1rem);
  border: 1px solid rgba(23, 21, 18, 0.55);
  background: rgba(244, 234, 216, 0.46);
  box-shadow: 1.4rem 1.4rem 0 var(--gold-dark);
}

.cover-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
}

.cover-frame::before,
.cover-frame::after {
  position: absolute;
  width: 2rem;
  height: 2rem;
  content: "";
  border-color: var(--ink);
}

.cover-frame::before {
  top: -0.3rem;
  left: -0.3rem;
  border-top: 2px solid;
  border-left: 2px solid;
}

.cover-frame::after {
  right: -0.3rem;
  bottom: -0.3rem;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.book-visual figcaption {
  margin-top: 2.2rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

.book-copy {
  padding-top: 0.25rem;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.6rem;
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.status span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(196, 139, 39, 0.18);
}

.book-copy h2 {
  max-width: 12ch;
  font-size: clamp(3.6rem, 7vw, 6.8rem);
}

.subtitle {
  max-width: 42rem;
  margin: 1.8rem 0 1rem;
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.42;
}

.byline {
  margin: 0 0 2.6rem;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.book-description {
  display: grid;
  margin-top: 1.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.book-description p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.availability {
  display: grid;
  margin-top: 3.5rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 1rem;
}

.availability span,
.availability strong {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.availability strong {
  color: var(--gold-dark);
  text-align: right;
}

.availability p {
  margin: 0.65rem 0 0;
  grid-column: 1 / -1;
  color: rgba(23, 21, 18, 0.7);
  font-family: var(--serif);
  font-size: 0.92rem;
}

.contents-section {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(15rem, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.contents-intro {
  position: sticky;
  top: 8rem;
  align-self: start;
}

.contents-intro h2,
.about-heading h2 {
  font-size: clamp(3.4rem, 6vw, 6.2rem);
}

.contents-intro > p:last-child {
  max-width: 28rem;
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.contents-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: section;
}

.contents-list li {
  position: relative;
  display: grid;
  padding: 2rem 0 2rem 4.5rem;
  border-top: 1px solid var(--line);
  counter-increment: section;
  grid-template-columns: 0.36fr 1fr;
  gap: 0.4rem 1.5rem;
}

.contents-list li::before {
  position: absolute;
  top: 1.75rem;
  left: 0;
  color: var(--gold-dark);
  content: "0" counter(section);
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 950;
  line-height: 1;
}

.contents-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.contents-list span {
  padding-top: 0.25rem;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contents-list strong {
  font-family: var(--serif);
  font-size: 1.35rem;
}

.contents-list p {
  margin: 0;
  grid-column: 2;
  color: rgba(23, 21, 18, 0.7);
  font-family: var(--serif);
}

.about-section {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.about-logo {
  width: min(13rem, 55vw);
  height: auto;
  margin: 0 0 2.75rem;
  filter: drop-shadow(0 0.75rem 0.8rem rgba(118, 80, 17, 0.16));
}

.about-copy {
  align-self: end;
  max-width: 44rem;
}

.about-copy p {
  margin: 0 0 1.4rem;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.about-copy .lead {
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.38;
}

.about-copy a,
.site-footer a {
  font-weight: 700;
}

.contact-section {
  padding: clamp(5.5rem, 10vw, 9rem) max(3rem, calc((100vw - 1180px) / 2));
  color: var(--paper-light);
  background:
    linear-gradient(120deg, rgba(105, 72, 19, 0.95), rgba(23, 21, 18, 0.98) 68%),
    var(--ink);
}

.contact-section h2 {
  max-width: 12ch;
  font-size: clamp(3.8rem, 8vw, 7.8rem);
}

.contact-section > p:not(.eyebrow) {
  max-width: 38rem;
  margin: 2rem 0 2.2rem;
  color: rgba(244, 234, 216, 0.76);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--paper-light);
  color: var(--paper-light);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background-color 160ms ease;
}

.button:hover {
  color: var(--ink);
  background: var(--paper-light);
}

.site-footer {
  display: grid;
  align-items: center;
  padding: 2.5rem 3rem;
  color: rgba(244, 234, 216, 0.7);
  background: #100f0d;
  font-size: 0.75rem;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  text-align: right;
}

.wordmark-footer {
  color: var(--paper-light);
}

.site-footer a:hover {
  color: var(--gold-bright);
}

@media (max-width: 900px) {
  :root {
    --content: min(100% - 40px, 44rem);
  }

  .site-header {
    padding: 0 1.25rem;
  }

  .hero {
    display: block;
    min-height: 0;
  }

  .hero-copy {
    width: auto;
    margin: 0;
    padding: 6rem 1.25rem 4rem;
  }

  .hero::before {
    right: -10rem;
    bottom: 1rem;
    width: 34rem;
    opacity: 0.075;
  }

  .hero-notes {
    margin: 0 1.25rem 4rem;
    padding: 0;
    border-left: 0;
  }

  .hero-signal {
    padding: 1rem 1.25rem;
  }

  .book-layout,
  .contents-section,
  .about-section {
    grid-template-columns: 1fr;
  }

  .book-visual {
    width: min(82vw, 21rem);
    margin: 0 auto;
  }

  .book-copy {
    margin-top: 1rem;
  }

  .contents-intro {
    position: static;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer p:last-child {
    text-align: left;
  }
}

@media (max-width: 600px) {
  :root {
    --content: calc(100% - 32px);
  }

  .site-header {
    min-height: 4.6rem;
  }

  .brand-logo-shell {
    width: 2.25rem;
    height: 2.25rem;
  }

  .wordmark-type {
    font-size: 0.68rem;
  }

  .site-nav {
    gap: 0.85rem;
    font-size: 0.67rem;
    letter-spacing: 0.08em;
  }

  .hero-copy {
    padding: 5rem 1rem 3.5rem;
  }

  .hero-notes {
    margin-right: 1rem;
    margin-left: 1rem;
  }

  .hero-signal {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .book-copy h2,
  .contents-intro h2,
  .about-heading h2,
  .contact-section h2 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .book-description {
    grid-template-columns: 1fr;
  }

  .contents-list li {
    display: block;
    padding-left: 3.5rem;
  }

  .contents-list strong,
  .contents-list p {
    display: block;
  }

  .contents-list strong {
    margin-top: 0.25rem;
  }

  .contents-list p {
    margin-top: 0.4rem;
  }

  .contact-section,
  .site-footer {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

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

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

@media print {
  .site-header,
  .hero-signal,
  .contact-section,
  .site-footer {
    display: none;
  }

  body,
  .hero {
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    margin: 0;
    padding: 2rem 0;
  }
}
