/* Viggi Johansen — author site */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,500;1,600&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

:root {
  --black: #0b0a0c;
  --charcoal: #16141a;
  --panel: #1c1920;
  --wine: #6e1423;
  --wine-bright: #9c2337;
  --gold: #c9a24b;
  --gold-soft: #e4cd8f;
  --cream: #f3ead9;
  --cream-dim: #cfc4b0;
  --line: rgba(201, 162, 75, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-style: italic; font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1.2em; color: var(--cream-dim); }

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

.eyebrow {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 0.9em;
  display: inline-block;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 10, 12, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-toggle { display: none; }

.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin: -8px;
}
.nav-toggle-label span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 34px;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a { color: var(--cream-dim); }
.nav-links a.active,
.nav-links a:hover { color: var(--gold); }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 18%;
  filter: saturate(0.85) brightness(0.55);
  transform: scale(1.03);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,10,12,0.35) 0%, rgba(11,10,12,0.55) 45%, var(--black) 96%),
              linear-gradient(90deg, rgba(11,10,12,0.9) 0%, rgba(11,10,12,0.2) 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 0 28px;
  margin: 0 auto;
  width: 100%;
}

.hero-content .container { padding: 0; }

.hero h1 { margin-bottom: 0.35em; }
.hero .lede { font-size: 1.25rem; color: var(--cream-dim); max-width: 500px; }

.btn-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 1.6em; }

.btn {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid var(--gold);
  color: var(--cream);
  display: inline-block;
  transition: all 0.25s ease;
}
.btn:hover { background: var(--gold); color: var(--black); }

.btn-solid {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--cream);
}
.btn-solid:hover { background: var(--wine-bright); border-color: var(--wine-bright); color: var(--cream); }

/* Sections */
section { padding: 100px 0; }
.section-tight { padding: 60px 0; }

.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 28px 0;
  opacity: 0.6;
}
.divider.center { margin-left: auto; margin-right: auto; }

.center-text { text-align: center; }

.subhead {
  color: var(--cream-dim);
  max-width: 620px;
  font-size: 1.15rem;
}
.subhead.center { margin-left: auto; margin-right: auto; }

/* Books grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-top: 56px;
}

.book-card {
  display: flex;
  flex-direction: column;
}

.book-cover {
  width: 100%;
  aspect-ratio: 5 / 7.4;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
  margin-bottom: 22px;
  transition: transform 0.35s ease;
}
.book-card:hover .book-cover { transform: translateY(-6px); }

.book-title { font-style: italic; margin-bottom: 0.15em; }
.book-tag {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wine-bright);
  margin-bottom: 0.7em;
  display: block;
}

.book-blurb { color: var(--cream-dim); font-size: 1.02rem; }

.book-links { display: flex; gap: 20px; margin-top: 0.6em; font-family: 'Jost', sans-serif; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Book detail page blocks */
.book-detail {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
  padding: 70px 0;
  border-bottom: 1px solid var(--line);
}
.book-detail:last-child { border-bottom: none; }
.book-detail img {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
}

/* About page */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.about-layout img {
  width: 100%;
  border: 1px solid var(--line);
  filter: grayscale(0.1);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.photo-strip img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid var(--line);
}

.facts {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.fact-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.fact-label {
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--gold);
}
.fact-value { color: var(--cream-dim); }

/* Excerpt toggle */
.excerpt {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.excerpt summary {
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  list-style: none;
}
.excerpt summary::-webkit-details-marker { display: none; }
.excerpt summary::after { content: " +"; }
.excerpt[open] summary::after { content: " \2212"; }
.excerpt blockquote {
  margin: 22px 0 0;
  padding-left: 22px;
  border-left: 2px solid var(--wine-bright);
  font-style: italic;
  color: var(--cream-dim);
}
.excerpt blockquote p { font-size: 1.02rem; }
.excerpt cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* Audio sample */
.audio-sample {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  max-width: 420px;
}
.audio-sample audio {
  width: 100%;
  height: 40px;
}

/* Reader review / trailer video */
.video-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.video-review {
  margin-top: 34px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
}
.video-row .video-review { margin-top: 0; }
.video-review video {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.7);
  background: var(--charcoal);
}

/* Panel / advisory */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 34px 38px;
}

.advisory {
  border-left: 3px solid var(--wine-bright);
  padding-left: 22px;
  margin-top: 40px;
}
.advisory p { font-size: 0.95rem; color: var(--cream-dim); margin: 0; }

/* Newsletter */
.newsletter {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 90px 0;
  text-align: center;
}
.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 15px 20px;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  min-width: 300px;
}
.newsletter-form input::placeholder { color: var(--cream-dim); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Jost', sans-serif;
}
.contact-list li span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--gold);
}
.contact-list li a { font-size: 1rem; }

form.simple-form label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 22px 0 8px;
}
form.simple-form input,
form.simple-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 13px 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
}
form.simple-form textarea { resize: vertical; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 50px 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  color: var(--cream-dim);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--cream-dim); letter-spacing: 0.08em; }

/* Quote block */
.pull-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--gold-soft);
  max-width: 780px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 860px) {
  .books-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .book-detail { grid-template-columns: 1fr; }
  .book-detail img { max-width: 280px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
  .nav-links { gap: 20px; font-size: 0.75rem; }
  section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .nav-toggle-label { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
  }
  .nav-links a {
    padding: 16px 28px;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .hero .lede { font-size: 1.05rem; }
}
