:root {
  --emerald-black: #03100d;
  --emerald-deep: #071d18;
  --emerald: #103f35;
  --emerald-light: #1f725f;
  --champagne: #e9d8ad;
  --champagne-bright: #f7e8bf;
  --ivory: #fbf5e8;
  --sage: #aab8ad;
  --pewter: #6f8078;
  --wine: #5a2331;
  --ink: #050807;
  --line: rgba(233, 216, 173, 0.24);
  --glass: rgba(3, 16, 13, 0.72);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--emerald-black);
  color: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 80;
  border-radius: 4px;
  background: var(--champagne);
  color: var(--ink);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0.9rem 2.25rem;
  background: rgba(3, 16, 13, 0.34);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease;
}

.topbar.scrolled {
  background: rgba(3, 16, 13, 0.9);
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--champagne);
  color: var(--champagne-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 500;
}

.brand-text small {
  color: var(--sage);
  font-size: 0.78rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  color: var(--sage);
  font-size: 0.94rem;
}

.primary-nav a {
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--ivory);
  border-color: var(--champagne);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--champagne);
}

.hero {
  position: relative;
  display: grid;
  min-height: 96vh;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -3;
  background-image: url("assets/hero-conservatory.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 16, 13, 0.96), rgba(3, 16, 13, 0.62) 46%, rgba(3, 16, 13, 0.24)),
    linear-gradient(180deg, rgba(3, 16, 13, 0.18), rgba(3, 16, 13, 0.3) 64%, var(--emerald-black));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3rem;
  align-items: end;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 8.5rem 2.25rem 7.5rem;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--champagne);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
blockquote {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.1rem;
  font-size: 9.5rem;
  line-height: 0.86;
}

h2 {
  margin-bottom: 1rem;
  font-size: 4.35rem;
  line-height: 0.96;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 2.05rem;
  line-height: 1.08;
}

.lede {
  max-width: 660px;
  color: var(--ivory);
  font-size: 1.28rem;
}

.hero-actions,
.feature-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--champagne);
  border-radius: 4px;
  padding: 0.78rem 1.1rem;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.solid {
  background: var(--champagne);
  color: var(--ink);
}

.button.outline,
.button.quiet {
  background: rgba(3, 16, 13, 0.36);
  color: var(--champagne);
}

.button.quiet {
  border-color: var(--line);
}

.hero-register {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 16, 13, 0.64);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  backdrop-filter: blur(16px);
}

.hero-register p {
  margin-bottom: 0.5rem;
  color: var(--champagne);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-register strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.hero-register span {
  display: block;
  margin-top: 0.7rem;
  color: var(--sage);
}

.hero-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(3, 16, 13, 0.82);
  backdrop-filter: blur(12px);
}

.hero-ticker span {
  min-height: 62px;
  border-right: 1px solid var(--line);
  color: var(--sage);
  display: grid;
  place-items: center;
  padding: 0.75rem;
  text-align: center;
}

.marquee-band {
  padding: 2rem;
  border-block: 1px solid var(--line);
  background: var(--champagne);
  color: var(--ink);
}

.marquee-band p {
  max-width: 1180px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.1;
  text-align: center;
}

.section,
.letter {
  padding: 6.5rem 2.25rem;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 4rem;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

.feature-copy p:not(.eyebrow),
.section-head p:not(.eyebrow),
.dossier-panel p,
.letter-copy p,
.date-detail p {
  color: var(--sage);
}

.showcase {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: end;
}

.book-object {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  min-height: 480px;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.36));
  transform: rotate(-2deg);
}

.book-spine {
  border: 1px solid rgba(233, 216, 173, 0.34);
  background: linear-gradient(180deg, #081d18, #1f725f 52%, #0b1714);
}

.book-face {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(233, 216, 173, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #09241e, #114236 64%, #07120f);
  padding: 1.6rem;
}

.book-face span,
.book-face small {
  color: var(--champagne);
  font-weight: 800;
}

.book-face strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.15rem;
  font-weight: 500;
  line-height: 0.96;
}

.praise-stack {
  border-left: 1px solid var(--champagne);
  padding-left: 1.25rem;
}

blockquote {
  margin-bottom: 0.9rem;
  color: var(--ivory);
  font-size: 2.35rem;
  line-height: 1.05;
}

cite {
  color: var(--sage);
  font-style: normal;
}

.shelf {
  background: linear-gradient(180deg, var(--emerald-black), #071916);
}

.section-head {
  max-width: 820px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.shelf-stage {
  display: grid;
  grid-template-columns: 54px minmax(0, 840px) 54px;
  gap: 1rem;
  align-items: stretch;
  justify-content: center;
}

.arrow-button {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.arrow-button span {
  color: var(--champagne);
  font-size: 3rem;
  line-height: 1;
}

.shelf-card {
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(90, 35, 49, 0.18), transparent),
    rgba(255, 255, 255, 0.035);
  padding: 2rem;
  text-align: center;
}

.shelf-card p:not(.eyebrow) {
  max-width: 660px;
  margin-inline: auto;
  color: var(--sage);
}

.tag-row {
  justify-content: center;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--champagne);
  padding: 0.42rem 0.72rem;
  font-size: 0.85rem;
}

.shelf-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.3rem;
}

.shelf-dots button {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(233, 216, 173, 0.28);
  cursor: pointer;
}

.shelf-dots button.active {
  background: var(--champagne);
}

.dossier {
  max-width: 1440px;
  margin: 0 auto;
}

.dossier-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.dossier-tabs {
  display: grid;
  gap: 0.55rem;
}

.dossier-tab {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  text-align: left;
  padding: 0.9rem 1rem;
  font-weight: 800;
}

.dossier-tab.active {
  background: var(--champagne);
  color: var(--ink);
}

.dossier-panel {
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(125deg, rgba(31, 114, 95, 0.2), transparent 42%),
    rgba(255, 255, 255, 0.035);
  padding: 2rem;
}

.dates {
  background: #051411;
}

.date-list {
  max-width: 1000px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.date-item {
  border-bottom: 1px solid var(--line);
}

.date-item > button {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 1.2rem 0;
  text-align: left;
}

.date-item time {
  color: var(--champagne);
  font-weight: 900;
}

.date-item span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.date-detail {
  display: none;
  padding: 0 0 1.3rem 136px;
}

.date-item.open .date-detail {
  display: block;
}

.letter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: 3rem;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

.letter-form {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
  padding: 1.25rem;
}

.letter-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--champagne);
  font-size: 0.85rem;
  font-weight: 800;
}

.letter-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ivory);
  padding: 0.85rem 1rem;
}

.letter-form input:focus {
  border-color: var(--champagne);
  outline: 3px solid rgba(233, 216, 173, 0.18);
}

.form-note {
  min-height: 1.4rem;
  margin: 0;
  color: var(--champagne);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--sage);
}

.footer p {
  margin: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--champagne);
  cursor: pointer;
  padding: 0;
}

.footer a {
  color: var(--champagne);
  border-bottom: 1px solid currentColor;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal-screen {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.modal-window {
  position: relative;
  width: min(100%, 620px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--emerald-deep);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.modal-close span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--champagne);
}

.modal-close span:first-child {
  transform: rotate(45deg);
}

.modal-close span:last-child {
  transform: rotate(-45deg);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(233, 216, 173, 0.55);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  h1 {
    font-size: 6.7rem;
  }

  h2 {
    font-size: 3.35rem;
  }

  .hero-inner,
  .feature,
  .letter {
    grid-template-columns: 1fr;
  }

  .hero-register {
    max-width: 420px;
  }

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

  .book-object {
    max-width: 360px;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 70px;
    padding: 0.75rem 1rem;
  }

  .menu-button {
    display: block;
  }

  .primary-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.6rem);
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 16, 13, 0.96);
    opacity: 0;
    pointer-events: none;
    transition: max-height 180ms ease, opacity 180ms ease;
  }

  .primary-nav.open {
    max-height: 340px;
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav a {
    padding: 1rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 7.5rem 1rem 8.5rem;
  }

  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  h3 {
    font-size: 1.62rem;
  }

  .lede {
    font-size: 1.08rem;
  }

  .hero-ticker {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-ticker span {
    min-height: 54px;
    font-size: 0.85rem;
  }

  .marquee-band {
    padding: 1.3rem 1rem;
  }

  .marquee-band p {
    font-size: 1.45rem;
  }

  .section,
  .letter {
    padding: 4rem 1rem;
  }

  .book-object {
    grid-template-columns: 28px 1fr;
    min-height: 390px;
  }

  .book-face strong {
    font-size: 2.35rem;
  }

  blockquote {
    font-size: 1.7rem;
  }

  .shelf-stage {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 0.45rem;
  }

  .shelf-card {
    padding: 1.2rem;
  }

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

  .dossier-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .dossier-tab {
    min-height: 48px;
    text-align: center;
    padding: 0.6rem 0.4rem;
  }

  .date-item > button {
    grid-template-columns: 1fr;
  }

  .date-detail {
    padding-left: 0;
  }

  .footer {
    flex-direction: column;
    padding: 1.25rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
