:root {
  --bg: #0f0f0f;
  --text: #f1f5f9;
  --muted: #cbd5e1;
  --accent: #9c2a2a;
  --button: #e11d48;
  --line: rgba(156, 42, 42, 0.45);
  --soft: rgba(241, 245, 249, 0.08);
  --header: Playfair Display, "Times New Roman", serif;
  --body: Inter, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

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

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

a:hover {
  color: var(--button);
}

p {
  margin: 0 0 1.15rem;
}

p:last-child {
  margin-bottom: 0;
}

.wrap {
  width: min(1080px, calc(100% - 2.75rem));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0 1.4rem;
}

.brand {
  display: block;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  overflow: hidden;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  transform: scale(1.85);
}

.brand-name {
  font-family: var(--header);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.35;
}

.header-branding {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}

.header-author {
  display: block;
  height: 28px;
  width: auto;
  max-width: min(280px, 42vw);
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 1.6rem;
}

.nav a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--button);
}

.hero {
  position: relative;
  min-height: calc(100vh - 5.5rem);
  padding: 2.5rem 0 2rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 15, 15, 0.62) 0%, rgba(15, 15, 15, 0.82) 48%, #0f0f0f 100%),
    linear-gradient(90deg, rgba(15, 15, 15, 0.55) 0%, rgba(15, 15, 15, 0.28) 100%),
    url("../assets/hero-road.jpg") center 42% / cover no-repeat;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.tagline {
  margin: 0 0 3.4rem;
  font-family: var(--header);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: 0.02em;
  color: var(--text);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 4.5rem;
  align-items: start;
}

.cover-frame {
  justify-self: center;
  padding-top: calc(0.72rem * 1.75 + 0.85rem);
}

.cover-frame img {
  width: 100%;
  max-width: 340px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--button);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--header);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.book-title {
  margin: 0 0 0.35rem;
  font-size: clamp(2.4rem, 5vw, 3.7rem);
}

.book-subtitle {
  margin: 0 0 1.6rem;
  font-family: var(--header);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 400;
  color: var(--muted);
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.7rem;
  border: 0;
  background: var(--button);
  color: var(--text);
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent);
  color: var(--text);
}

.btn-disabled,
.btn[aria-disabled="true"] {
  background: #5a1c2a;
  color: rgba(241, 245, 249, 0.55);
  cursor: not-allowed;
  pointer-events: none;
}

.btn-disabled:hover,
.btn-disabled:focus-visible,
.btn[aria-disabled="true"]:hover,
.btn[aria-disabled="true"]:focus-visible {
  background: #5a1c2a;
  color: rgba(241, 245, 249, 0.55);
}

.coming-soon {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.buy-notes {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.buy-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--button);
  background: transparent;
  color: var(--button);
}

.epigraph {
  margin: 1.8rem 0 0;
  color: var(--muted);
  font-family: var(--header);
  font-style: italic;
  font-size: 1.05rem;
}

.rule {
  width: 48px;
  height: 1px;
  margin: 0 0 1.4rem;
  background: var(--accent);
  border: 0;
}

.page {
  padding: 4.5rem 0 6rem;
}

.page-hero {
  padding-bottom: 0.5rem;
}

.page-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
}

.narrow {
  max-width: 40rem;
}

.prose {
  color: var(--muted);
}

.prose strong {
  color: var(--text);
  font-weight: 500;
}

.newsletter {
  padding: 1.75rem 0 4.5rem;
  border-top: 1px solid var(--soft);
}

.newsletter-inner {
  max-width: 34rem;
}

.newsletter h2 {
  margin: 0 0 0.7rem;
  font-size: 2rem;
}

.newsletter p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.signup {
  display: flex;
  gap: 0.6rem;
  max-width: 28rem;
}

.ml-embedded {
  max-width: 28rem;
  min-height: 5rem;
}

.ml-embedded iframe,
.ml-form-embedContainer,
.ml-form-embedWrapper,
.ml-form-embedBody,
.ml-form-horizontalRow {
  max-width: 100%;
  background: transparent !important;
}

.signup input,
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--soft);
  background: transparent;
  color: var(--text);
  font-family: var(--body);
  font-size: 0.95rem;
  padding: 0.85rem 0.95rem;
  outline: none;
}

.signup input:focus,
.field input:focus,
.field textarea:focus {
  border-color: var(--button);
}

.signup input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(203, 213, 225, 0.55);
}

.form-note,
.form-status {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-status[hidden] {
  display: none;
}

.contact-form,
.signup-fallback {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.posts {
  display: grid;
  gap: 2.4rem;
  max-width: 40rem;
}

.post {
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--soft);
}

.post time {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--button);
}

.post h2 {
  margin: 0 0 0.7rem;
  font-size: 1.85rem;
}

.post p {
  color: var(--muted);
}

.post h2 a:hover {
  color: var(--button);
}

.post-meta {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.post-cover,
.post-cover-fallback {
  width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  margin: 0 0 1.6rem;
}

.post-cover-fallback {
  background: linear-gradient(160deg, rgba(156, 42, 42, 0.35), rgba(241, 245, 249, 0.06));
  border: 1px solid var(--line);
}

.ricos-content,
.ricos-content p,
.ricos-content li {
  color: var(--text);
}

.ricos-content h2,
.ricos-content h3,
.ricos-content h4 {
  color: var(--text);
}

.ricos-content blockquote {
  margin: 1.4rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-family: var(--header);
  font-style: italic;
}

.field-error {
  min-height: 1.1rem;
  margin: 0.35rem 0 0;
  color: #e11d48;
  font-size: 0.8rem;
}

.field-error:empty {
  display: none;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #e11d48;
}

.site-footer {
  padding: 2.2rem 0 2.6rem;
  border-top: 1px solid var(--soft);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 0.8rem;
  top: -40px;
  background: var(--button);
  color: var(--text);
  padding: 0.5rem 0.8rem;
  z-index: 50;
}

.skip:focus {
  top: 0.8rem;
}

.trailers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4.5rem;
}

.trailer {
  width: 100%;
  text-align: center;
}

.trailer h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.trailer-subtitle {
  margin: 0 0 1.6rem;
  font-family: var(--header);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--muted);
}

.trailer-frame {
  width: min(100%, 22rem, calc((100dvh - 16rem) * 768 / 1168));
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: 768 / 1168;
}

.trailer video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border: 1px solid var(--line);
}

@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .cover-frame {
    padding-top: 0;
  }

  .cover-frame img {
    max-width: 250px;
    margin: 0 auto;
  }

  .tagline {
    margin-bottom: 2.2rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }

  .signup {
    flex-direction: column;
  }

  .page-trailers {
    padding-top: 2.2rem;
    padding-bottom: 2.4rem;
  }

  .trailer-frame {
    width: min(100%, calc((100dvh - 14rem) * 768 / 1168));
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(1080px, calc(100% - 2rem));
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
  }

  .book-title {
    font-size: 2.2rem;
  }
}
