:root {
  --bg: #0b1114;
  --bg-alt: #121b1f;
  --bg-card: #162227;
  --amber: #f2c94c;
  --amber-glow: #e8a93a;
  --cream: #efe6d2;
  --muted: #9aa5a8;
  --line: rgba(242, 201, 76, 0.25);
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "EB Garamond", Georgia, serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at top, rgba(232, 169, 58, 0.06), transparent 60%),
    var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--amber);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--amber);
  margin: 0 0 1rem;
}

.container {
  width: min(1100px, 100% - 3rem);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(11, 17, 20, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cream);
}

.logo:hover {
  color: var(--amber);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cream);
}

.nav-links a:hover {
  color: var(--amber);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px 0;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Sections */

.section {
  padding: 7rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  margin: 1.2rem auto 0;
  background: var(--amber);
}

.section-intro {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin: 0 auto 3rem;
  max-width: 600px;
}

/* Hero */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-h);
  background:
    radial-gradient(ellipse at 50% 70%, rgba(232, 169, 58, 0.14), transparent 55%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(180deg, #0e171b 0%, var(--bg) 100%);
}

.hero-tagline {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.95rem;
  color: var(--cream);
  margin: 0 0 1.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 7rem);
  text-shadow: 0 0 40px rgba(232, 169, 58, 0.35);
  margin-bottom: 1.5rem;
}

.hero-sub {
  color: var(--muted);
  font-style: italic;
  max-width: 34rem;
  margin: 0 auto;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bg);
  background: var(--amber);
  border: 1px solid var(--amber);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: transparent;
  color: var(--amber);
  box-shadow: 0 0 25px rgba(232, 169, 58, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--amber);
}

.btn-outline:hover {
  background: var(--amber);
  color: var(--bg);
}

/* Slider */

.slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-track {
  flex: 1;
  display: flex;
  justify-content: safe center;
  gap: 2.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1.5rem 0.5rem 2rem;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-btn {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--amber);
  font-size: 1.4rem;
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.slider-btn:hover:not(:disabled) {
  border-color: var(--amber);
}

.slider-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.book-card {
  flex: 0 0 260px;
  scroll-snap-align: center;
  text-align: center;
  color: var(--cream);
}

.book-cover {
  aspect-ratio: 5 / 8;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

a.book-card:hover {
  color: var(--cream);
}

a.book-card:hover .book-cover {
  transform: translateY(-8px);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.7),
    0 0 45px rgba(232, 169, 58, 0.35);
}

.book-card h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.3rem;
}

.book-card p {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  font-size: 1.05rem;
}

.coming-soon .book-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(232, 169, 58, 0.1), transparent 65%),
    var(--bg-card);
}

.coming-soon .mark {
  font-family: var(--font-head);
  font-size: 6rem;
  line-height: 1;
  color: var(--amber);
  opacity: 0.7;
  text-shadow: 0 0 30px rgba(232, 169, 58, 0.5);
}

.coming-soon .label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.9rem;
  color: var(--cream);
}

.coming-soon h3 {
  color: var(--muted);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-photo {
  position: relative;
  isolation: isolate;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 40% center;
  filter: saturate(0.85) contrast(1.05);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  border: 1px solid var(--line);
  z-index: -1;
}

.about-text .section-title {
  text-align: left;
}

.about-text .section-title::after {
  margin-left: 0;
}

.about-text p {
  margin: 0 0 1.2rem;
}

.about-text q,
.about-text em {
  color: var(--amber);
  font-style: italic;
}

.about-text q {
  quotes: "\201C" "\201D";
}

.pull-quote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--amber);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--cream);
}

/* Contact */

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 1.1rem;
  color: var(--cream);
  background: var(--bg);
  border: 1px solid rgba(239, 230, 210, 0.15);
  border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.15);
}

.form-actions {
  grid-column: 1 / -1;
  text-align: center;
}

.hidden-field {
  display: none;
}

.form-success {
  max-width: 640px;
  margin: -1.5rem auto 2rem;
  padding: 1rem 1.5rem;
  text-align: center;
  color: var(--amber);
  border: 1px solid var(--line);
}

/* Footer */

.site-footer {
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

/* Book page */

.book-banner {
  position: relative;
  margin-top: var(--header-h);
}

.book-banner img {
  width: 100%;
  height: auto;
}

.book-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 75%, var(--bg) 100%);
}

.book-detail {
  padding: 3rem 0 6rem;
}

.book-detail .container {
  max-width: 760px;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.book-detail h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.book-meta {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.book-tagline {
  font-size: 1.6rem;
  font-style: italic;
  color: var(--amber);
  margin: 2.5rem 0 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.book-description p {
  margin: 0 0 1.3rem;
}

.book-description .standalone {
  font-style: italic;
  color: var(--muted);
}

.book-cta {
  margin-top: 3rem;
  text-align: center;
}

/* Reveal on scroll */

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (max-width: 800px) {
  body {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(11, 17, 20, 0.97);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-open .nav-links {
    max-height: 320px;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
  }

  .section {
    padding: 5rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-photo {
    max-width: 420px;
    margin: 0 auto;
  }

  .about-text .section-title {
    text-align: center;
  }

  .about-text .section-title::after {
    margin-left: auto;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .book-card {
    flex-basis: 220px;
  }
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
