:root {
  color-scheme: dark;
  --bg: #191716;
  --bg-deep: #0e0d0c;
  --panel: #23201e;
  --paper: #f1eee8;
  --paper-muted: #cfc6b8;
  --scarlet: #b9232f;
  --scarlet-bright: #e44853;
  --moss: #6f7d62;
  --line: rgba(241, 238, 232, 0.16);
  --shadow: rgba(0, 0, 0, 0.38);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  border-radius: 6px;
  background: var(--paper);
  color: var(--bg);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(25, 23, 22, 0.94);
  padding: 0.85rem 5vw;
  backdrop-filter: blur(14px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 1.1rem;
  font-size: 0.92rem;
  color: var(--paper-muted);
}

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

.site-nav a:hover,
.site-footer a:hover,
.contact-link:hover {
  color: var(--scarlet-bright);
}

.hero {
  position: relative;
  display: grid;
  min-height: 76svh;
  overflow: hidden;
  background-color: var(--bg-deep);
  background-image: url("assets/social-preview.svg");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 13, 12, 0.92), rgba(14, 13, 12, 0.74), rgba(14, 13, 12, 0.44)),
    linear-gradient(0deg, rgba(14, 13, 12, 0.24), rgba(14, 13, 12, 0.18));
}

.hero-inner {
  position: relative;
  align-self: center;
  width: min(var(--max), 100%);
  padding: 5rem 5vw 4rem;
}

.kicker,
.section-label {
  margin: 0 0 0.8rem;
  color: var(--scarlet-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

h1 {
  max-width: 760px;
  font-size: 5rem;
}

h2 {
  max-width: 720px;
  font-size: 2.65rem;
}

.hero-copy {
  max-width: 620px;
  margin: 1.2rem 0 0;
  color: var(--paper-muted);
  font-size: 1.28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button,
.signup-form button,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0.72rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary,
.signup-form button {
  border: 1px solid var(--scarlet-bright);
  background: var(--scarlet);
  color: white;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(241, 238, 232, 0.08);
  color: var(--paper);
}

.button:hover,
.signup-form button:hover {
  filter: brightness(1.08);
}

.section {
  padding: 5rem 5vw;
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.book-band {
  background: var(--paper);
  color: var(--bg);
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
}

.cover-frame {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 22px 52px var(--shadow);
}

.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-copy p {
  max-width: 680px;
  color: #4d4540;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.platform-pill {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(25, 23, 22, 0.18);
  border-radius: 8px;
  background: white;
  padding: 0.55rem 0.85rem;
  color: #3d3733;
  font-weight: 800;
}

.newsletter-band {
  background: #20251f;
}

.newsletter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 3rem;
  align-items: start;
}

.newsletter-layout p {
  max-width: 620px;
  color: var(--paper-muted);
}

.signup-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(241, 238, 232, 0.07);
  padding: 1.25rem;
}

.signup-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--paper);
  font-weight: 800;
}

.signup-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.signup-form input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 13, 12, 0.68);
  color: var(--paper);
  font: inherit;
  padding: 0.7rem 0.8rem;
}

.form-note {
  margin: 0.8rem 0 0;
  color: var(--paper-muted);
  font-size: 0.88rem;
}

.links-band {
  background: var(--bg);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.7rem;
}

.profile-card {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 1rem;
  text-decoration: none;
}

.profile-card span,
.profile-card strong {
  display: block;
}

.profile-card span {
  color: var(--paper-muted);
  font-size: 0.9rem;
}

.profile-card strong {
  margin-top: 0.65rem;
  color: var(--paper);
  font-size: 1.08rem;
}

.profile-card:hover {
  border-color: rgba(228, 72, 83, 0.7);
}

.contact-band {
  background: #111312;
}

.contact-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact-layout p {
  max-width: 560px;
  color: var(--paper-muted);
}

.contact-link {
  border: 1px solid var(--line);
  color: var(--paper);
  white-space: nowrap;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 1.2rem 5vw;
  color: var(--paper-muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
}

.legal-page {
  background: var(--paper);
  color: var(--bg);
}

.narrow {
  max-width: 760px;
}

.legal-page h1 {
  margin-bottom: 1.5rem;
  font-size: 3.25rem;
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.6rem;
}

.legal-page p {
  color: #4d4540;
}

.legal-page a {
  color: #8c1a24;
}

.updated {
  margin-top: 2.2rem;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .site-header,
  .contact-layout,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .book-layout,
  .newsletter-layout {
    grid-template-columns: 1fr;
  }

  .cover-frame {
    max-width: 320px;
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero-inner,
  .section {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .signup-controls,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .contact-link {
    width: 100%;
    white-space: normal;
  }
}
