@import url('https://fonts.googleapis.com/css2?family=Anton&family=Karla:wght@300;400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: 'Karla', system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #0d0b09;
  color: #f5f0e8;
  line-height: 1.7;
}

::selection { background: #f5f0e8; color: #0d0b09; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
}

a {
  color: #f5f0e8;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 240, 232, 0.3);
  transition: border-color 0.3s;
}

a:hover { border-color: #f5f0e8; }

img { max-width: 100%; display: block; }

/* ── Standard page layout ── */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Nav */
.nav {
  padding: 2rem 3rem 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-brand {
  font-family: 'Anton', 'Arial Black', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: none;
}

.nav-brand:hover { border-bottom: none; }

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(245, 240, 232, 0.5);
  border-bottom: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f5f0e8;
}

/* Content */
.content {
  flex: 1;
  padding: 3rem;
}

.content h1 {
  font-family: 'Anton', 'Arial Black', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.9;
  margin-bottom: 1.25rem;
}

.content .intro {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(245, 240, 232, 0.7);
  max-width: 55ch;
  margin-bottom: 0;
  line-height: 1.5;
}

.content p {
  color: rgba(245, 240, 232, 0.65);
  margin-bottom: 1.25rem;
  max-width: 60ch;
  font-size: 0.95rem;
}

/* Full-bleed image */
.page-image {
  margin: 2.5rem 0 0;
}

.page-image img {
  width: 100%;
}

/* Quote below image */
.page-quote {
  padding: 1.5rem 3rem;
}

.page-quote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.6);
  max-width: 55ch;
}

/* Footer */
.footer {
  padding: 2rem 3rem;
  margin-top: auto;
}

.footer p {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.3);
}

/* ── Author image ── */

.author-image {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-image img {
  max-width: 480px;
  width: 100%;
}

.image-caption {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(245, 240, 232, 0.5);
  text-align: center;
  margin-top: 1rem;
}

/* ── Author links ── */

.author-links {
  padding: 2rem 3rem;
  text-align: center;
}

.author-links p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(245, 240, 232, 0.6);
  max-width: 50ch;
  margin: 0 auto 1.25rem;
}

.author-sites {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.author-sites a {
  font-family: 'Karla', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(245, 240, 232, 0.5);
  border-bottom: 1px solid rgba(245, 240, 232, 0.15);
  transition: color 0.2s, border-color 0.2s;
}

.author-sites a:hover {
  color: #f5f0e8;
  border-color: rgba(245, 240, 232, 0.5);
}

/* ── Inline links ── */

.inline-link {
  color: rgba(245, 240, 232, 0.7);
  border-bottom: 1px solid rgba(245, 240, 232, 0.3);
  transition: color 0.2s, border-color 0.2s;
}

.inline-link:hover {
  color: #f5f0e8;
  border-color: rgba(245, 240, 232, 0.6);
}

/* ── Book list ── */

.book-list {
  padding: 0 3rem 2rem;
}

.book-card {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

.book-card:last-child {
  border-bottom: none;
}

.book-cover {
  flex-shrink: 0;
  width: 220px;
}

.book-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.book-info h2 {
  font-family: 'Anton', 'Arial Black', sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.book-meta {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.4);
  margin-bottom: 1rem;
}

.book-info p {
  color: rgba(245, 240, 232, 0.65);
  font-size: 0.95rem;
  max-width: 50ch;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .book-list {
    padding: 0 1.5rem 2rem;
  }

  .book-card {
    flex-direction: column;
    gap: 1.5rem;
  }

  .book-cover {
    width: 180px;
  }
}

/* ── Gallery ── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  object-fit: cover;
  transition: opacity 0.3s;
}

.gallery-grid img:hover {
  opacity: 0.85;
}

/* ── Buy ── */

.buy-details {
  margin-top: 2rem;
}

.buy-details p {
  color: rgba(245, 240, 232, 0.65);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ── Contact ── */

.contact-frame {
  margin-top: 2rem;
  max-width: 36rem;
}

.contact-frame iframe {
  width: 100%;
  border: none;
  min-height: 500px;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .nav {
    padding: 1.5rem 1.5rem 0;
  }

  .nav-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .content {
    padding: 2rem 1.5rem;
  }

  .page-image {
    margin-left: 0;
    margin-right: 0;
  }

  .page-quote {
    padding: 1.25rem 1.5rem;
  }

  .footer {
    padding: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }
}
