

:root {
  --midnight: #071321;
  --navy: #0d1c2c;
  --navy-raised: #132438;
  --oxblood: #651f2b;
  --parchment: #f3e7cf;
  --gold: #c9a353;
  --gold-bright: #e1bd6d;
  --slate: #aab3c0;
  --line: rgba(201, 163, 83, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--midnight);
  color: var(--parchment);
  font-family: "Segoe UI", Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  min-height: 88px;
  padding: 0 5vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 19, 33, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand,
h1,
h2,
h3,
.hero-line,
.byline,
.mini-definition strong {
  font-family: Georgia, "Times New Roman", serif;
}

.brand {
  color: var(--gold);
  font-size: clamp(1.2rem, 2vw, 2rem);
}

.monogram {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.monogram::before,
.monogram::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--gold);
  opacity: 0.65;
}

.monogram span {
  margin-left: 16px;
  letter-spacing: -0.26em;
}

.monogram::after {
  margin-left: 16px;
}

nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(1.2rem, 3vw, 3rem);
  color: #e7dfd0;
}

nav a,
footer a {
  position: relative;
}

nav a::after,
footer a::after {
  position: absolute;
  content: "";
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--gold);
  transition: right 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after,
footer a:hover::after {
  right: 0;
}

.hero {
  min-height: calc(100vh - 88px);
  padding: clamp(4rem, 8vw, 7rem) 5vw 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
  gap: clamp(2rem, 6vw, 7rem);
  overflow: hidden;
}

.hero-copy {
  align-self: center;
  max-width: 720px;
  animation: rise-in 480ms ease-out both;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
}

h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(3.4rem, 6vw, 6.8rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.hero-line {
  margin: 1.5rem 0 1rem;
  max-width: 620px;
  color: var(--gold-bright);
  font-size: clamp(1.55rem, 2.4vw, 2.3rem);
  font-style: italic;
  line-height: 1.25;
}

.intro {
  max-width: 650px;
  margin: 0;
  color: var(--slate);
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.7;
}

.actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  min-height: 58px;
  padding: 0.9rem 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 1px solid var(--gold);
  color: var(--parchment);
  font-weight: 650;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button.primary {
  background: var(--oxblood);
}

.button:hover {
  transform: translateY(-2px);
  background: var(--gold);
  color: var(--midnight);
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.byline {
  margin: 1.8rem 0 1rem;
  color: var(--gold-bright);
  font-size: 1.4rem;
  font-style: italic;
}

.mini-definition {
  max-width: 470px;
  margin-top: 2rem;
  padding: 1.5rem 1.8rem;
  border: 1px solid var(--gold);
  background: rgba(13, 28, 44, 0.74);
  box-shadow: inset 0 0 0 5px var(--midnight), inset 0 0 0 6px rgba(201, 163, 83, 0.35);
}

.mini-definition strong {
  color: var(--gold-bright);
  font-size: 1.8rem;
  font-weight: 500;
}

.mini-definition em {
  color: var(--gold);
  font-family: Georgia, serif;
}

.mini-definition p {
  margin: 0.8rem 0 0;
  color: #e7dfd0;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.5;
}

.cover-stage {
  align-self: center;
  justify-self: center;
  width: min(100%, 560px);
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1200px;
  animation: cover-in 650ms 80ms ease-out both;
}

.cover-glow {
  position: absolute;
  width: 130%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 119, 49, 0.36), rgba(7, 19, 33, 0) 66%);
  filter: blur(16px);
}

.book-cover {
  width: min(100%, 480px);
  height: auto;
  position: relative;
  border: 1px solid rgba(225, 189, 109, 0.52);
  box-shadow: -18px 20px 0 #030a12, 0 36px 75px rgba(0, 0, 0, 0.62);
  transform: rotateY(-3deg) rotateZ(0.35deg);
  transition: transform 300ms ease;
}

.book-cover:hover {
  transform: rotateY(0) rotateZ(0);
}

.definitions-section,
.books-section,
.about-section {
  padding: clamp(5rem, 9vw, 9rem) 6vw;
  border-top: 1px solid var(--line);
}

.definitions-section {
  background: #0a1827;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 3.5rem;
}

.section-heading h2,
.about-section h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1;
}

.section-heading > p:last-child {
  color: var(--slate);
  font-size: 1.1rem;
  line-height: 1.6;
}

.definition-grid,
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.definition-card,
.book-card {
  padding: clamp(1.7rem, 3vw, 2.8rem);
  border: 1px solid var(--line);
  background: rgba(19, 36, 56, 0.78);
}

.entry-number {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.definition-card h3,
.book-card h3 {
  margin: 1rem 0;
  color: var(--parchment);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
}

.definition-card h3 em {
  color: var(--gold);
  font-size: 0.8em;
  font-weight: 400;
}

.definition-card > p:last-child,
.book-card > p {
  color: var(--slate);
  line-height: 1.7;
}

.text-link,
.book-card a,
.book-card .coming-soon {
  margin-top: 2rem;
  color: var(--gold-bright);
  display: inline-flex;
  gap: 0.5rem;
  font-weight: 650;
}

.book-card a,
.book-card .coming-soon {
  margin-top: 1rem;
}

.books-section {
  background: var(--midnight);
}

.section-heading.compact {
  max-width: 850px;
}

.book-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
}

.book-card-cover {
  width: min(100%, 250px);
  aspect-ratio: 2 / 3;
  height: auto;
  margin: 0 auto 2rem;
  border: 1px solid rgba(225, 189, 109, 0.42);
  object-fit: cover;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.42);
}

.book-card a,
.book-card .coming-soon {
  margin-top: auto;
  padding-top: 1rem;
}

.about-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 8vw, 9rem);
  align-items: start;
  background: var(--oxblood);
}

.about-section .eyebrow {
  color: var(--gold-bright);
}

.author-portrait {
  display: block;
  width: min(100%, 440px);
  height: auto;
  margin-top: 2rem;
}

.about-copy p {
  max-width: 760px;
  margin: 0;
  color: #f2e8d7;
  font-family: Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.55;
}

.contact-button {
  margin-top: 2rem;
  width: fit-content;
  background: var(--midnight);
}

footer {
  padding: 2rem 6vw;
  display: flex;
  justify-content: space-between;
  color: var(--slate);
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cover-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .monogram {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 0.8fr;
    gap: 3rem;
  }

  .definition-grid,
  .books-grid {
    grid-template-columns: 1fr;
  }

  .book-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 76px;
    padding: 0 1.2rem;
  }

  .brand {
    font-size: 1.1rem;
  }

  nav {
    gap: 1rem;
    font-size: 0.85rem;
  }

  nav a:nth-child(2),
  nav a:nth-child(3) {
    display: none;
  }

  .hero {
    padding: 3.5rem 1.4rem 4rem;
    grid-template-columns: 1fr;
  }

  .cover-stage {
    order: -1;
    width: min(78vw, 390px);
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .mini-definition {
    display: none;
  }

  .definitions-section,
  .books-section,
  .about-section {
    padding: 4.5rem 1.4rem;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 2rem 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Author-wide welcome and music, preserving the existing palette and type. */
section[id] { scroll-margin-top: 110px; }
.welcome-hero { min-height: 0; display: block; padding: clamp(3rem, 6vw, 5rem) 6vw; }
.welcome-hero .hero-copy { max-width: none; }
.welcome-hero h1 { max-width: none; font-size: clamp(2.6rem, 5.4vw, 5.3rem); line-height: 1.05; }
.jukebox-section { padding: clamp(4rem, 7vw, 7rem) 6vw; border-top: 1px solid var(--line); background: var(--navy); }
.featured-track { border: 1px solid var(--line); background: var(--navy-raised); overflow: hidden; }
.track-cover { display: block; width: 100%; height: auto; object-fit: contain; }
.track-copy { padding: clamp(1.4rem, 3vw, 2.5rem); }
.track-copy h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 500; }
.track-copy p { color: var(--slate); }
.track-copy audio { display: block; width: 100%; margin-top: 1.5rem; }
.upcoming-tracks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 0; }
.upcoming-tracks li { padding: 1.5rem; border: 1px solid var(--line); }
.upcoming-tracks h3 { margin: 0 0 1rem; font-size: 1.3rem; font-weight: 500; }
.coming-soon { color: var(--gold-bright); }
@media (min-width: 981px) { nav { gap: clamp(1rem, 2vw, 2rem); } .monogram { min-width: 160px; } nav a { white-space: nowrap; } }
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr; padding: 1rem 1.2rem; gap: 1rem; }
  nav { justify-content: flex-start; flex-wrap: wrap; gap: 1rem; }
  nav a:nth-child(2), nav a:nth-child(3) { display: inline; }
  .welcome-hero { padding: 2.5rem 1.4rem 3rem; }
  .jukebox-section { padding: 4rem 1.4rem; }
  .upcoming-tracks { grid-template-columns: 1fr; }
  section[id] { scroll-margin-top: 145px; }
}

/* Balance the two introductory sections across wide screens. */
.welcome-hero .hero-copy { text-align: center; }
.welcome-hero .hero-line, .welcome-hero .intro { max-width: 1100px; margin-left: auto; margin-right: auto; }
.welcome-hero .actions { justify-content: center; }
.books-section > .section-heading.compact { max-width: none; text-align: center; margin-left: auto; margin-right: auto; }
.books-section > .section-heading h2 { max-width: 1400px; margin-left: auto; margin-right: auto; line-height: 1.12; }

.welcome-hero .author-name { white-space: nowrap; }
@media (max-width: 480px) { .welcome-hero h1 { font-size: clamp(1.7rem, 8.8vw, 2.6rem); } }

/* Illustrated song library. */
.jukebox-section > .section-heading { max-width: none; text-align: center; }
.jukebox-section > .section-heading h2 { font-size: clamp(2.5rem, 5.8vw, 5.8rem); line-height: 1.1; }
.song-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; align-items: stretch; }
.song-card { border: 1px solid var(--line); background: var(--navy-raised); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.song-card .track-cover { width: 100%; aspect-ratio: 8 / 5; object-fit: contain; background: var(--midnight); }
.song-card .track-copy { flex: 1; padding: clamp(1.3rem, 2.2vw, 2rem); display: flex; flex-direction: column; align-items: flex-start; }
.song-card .track-copy h3 { font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.2; }
.song-card .coming-soon { margin-top: auto; padding-top: 1.5rem; display: block; }
.song-card .track-copy audio { margin-top: auto; padding-top: 1rem; min-width: 0; }
@media (min-width: 761px) and (max-width: 1100px) { .song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .song-grid { grid-template-columns: 1fr; } }

/* Show complete cover artwork and give the author portrait a finished frame. */
.book-card-cover{object-fit:contain;background:#071321}
.author-portrait{padding:12px 12px 0;border:1px solid rgba(201,163,83,.4);background:radial-gradient(ellipse at bottom,#263042,transparent 75%)}
.about-copy .contact-button{margin-right:14px;margin-top:24px}
.book-card-cover[src="/dictionary-of-modern-nonsense-volume-2.png"]{object-fit:cover;object-position:center}
