/* ============================================
   Adèle Höll — Author Site
   Design tokens
   ============================================ */
:root {
  --cream:        #F6F3EA;
  --blush:        #E3E8D9;
  --plum:         #2E3A26;
  --plum-soft:    #4F5F3E;
  --rose:         #8A9A6B;
  --rose-deep:    #B5652E;
  --gold:         #C08A34;
  --charcoal:     #3E4536;
  --line:         rgba(61, 36, 56, 0.14);

  --display: "Cormorant Garamond", serif;
  --body: "Jost", sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--plum);
  font-weight: 600;
  margin: 0;
}

/* ---------- signature motif: linework heart-vine divider ---------- */
.motif {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  opacity: 0.85;
}
.motif svg { width: 170px; height: auto; }

/* ---------- header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 245, 239, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
header.site-header .wrap {
  padding-left: clamp(28px, 6vw, 64px);
  padding-right: clamp(28px, 6vw, 64px);
}
.logo {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--plum);
}
a.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo-icon { flex-shrink: 0; height: 40px; width: auto; }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
  color: var(--plum-soft);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { right: 0; }

/* ---------- Artwork dropdown ---------- */
.has-submenu { position: relative; }
.submenu-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0 0 4px;
  font: inherit;
  color: var(--plum-soft);
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.submenu-toggle .caret { font-size: 0.7em; transition: transform 0.2s ease; }
.submenu-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.submenu-toggle[aria-current="page"] { color: var(--rose-deep); }
.submenu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 30px -12px rgba(46,58,38,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 30;
}
.has-submenu.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 10px 18px;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.92rem;
  color: var(--charcoal);
}
.submenu a::after { display: none; }
.submenu a:hover,
.submenu a[aria-current="page"] { background: var(--blush); color: var(--rose-deep); }
.nav-links a[aria-current="page"] { color: var(--rose-deep); }

.nav-toggle { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--plum);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--cream);
    border-top: 1px solid var(--line);
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 340px; }
  .nav-links li {
    width: 100%;
    padding: 14px 32px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::after { display: none; }

  .has-submenu { padding: 0; border-bottom: none; }
  .submenu-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 32px;
    border-bottom: 1px solid var(--line);
  }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--blush);
    padding: 0;
    transition: max-height 0.25s ease;
  }
  .has-submenu.open .submenu { max-height: 160px; }
  .submenu li { padding: 0; border-bottom: none; }
  .submenu a { padding: 12px 32px 12px 48px; }
}

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  padding-left: clamp(28px, 6vw, 64px);
  padding-right: clamp(28px, 6vw, 64px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero-text { max-width: 560px; }
.hero-photo {
  justify-self: end;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(46,58,38,0.4);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: center; max-width: 280px; margin-top: 8px; }
}
.hero-eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--rose-deep);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.08;
}
.hero h1 em {
  font-style: italic;
  color: var(--rose-deep);
}
.hero p.lede {
  max-width: 320px;
  margin: 22px 0 0;
  font-size: 1.12rem;
  color: var(--plum-soft);
}
.hero .cta {
  margin-top: 36px;
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid var(--plum);
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
  cursor: pointer;
}
.btn:hover { background: var(--plum); color: var(--cream); }
.btn.solid {
  background: var(--plum);
  color: var(--cream);
}
.btn.solid:hover { background: var(--rose-deep); border-color: var(--rose-deep); }

/* decorative floating bloom behind hero */
.bloom {
  position: absolute;
  width: 260px;
  opacity: 0.9;
  pointer-events: none;
}
.bloom.left  { top: -30px; left: -60px; transform: rotate(-8deg); }
.bloom.right { bottom: -60px; right: -90px; transform: rotate(18deg) scaleX(-1); }

/* ---------- section shells ---------- */
section { padding: 76px 0; }
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--rose-deep);
  text-align: center;
  margin-bottom: 10px;
}
.section-title {
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 18px;
}
.section-title.left { text-align: left; }

/* ---------- featured book ---------- */
.book-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  background: var(--blush);
  border-radius: 22px;
  padding: 52px;
}
@media (max-width: 800px) {
  .book-panel { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
}
.book-cover {
  aspect-ratio: 3/4.4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 48px -18px rgba(61,36,56,0.35);
}
.book-tag {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.book-title { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.book-desc { font-size: 1.02rem; color: var(--charcoal); margin-bottom: 26px; }

/* ---------- gallery teaser ---------- */
.gallery-teaser {
  text-align: center;
}
.gallery-teaser p {
  max-width: 520px;
  margin: 14px auto 30px;
  color: var(--plum-soft);
}
.teaser-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 34px 0 38px;
}
@media (max-width: 700px) { .teaser-strip { grid-template-columns: repeat(2, 1fr); } }
.teaser-strip .ph { aspect-ratio: 1/1.15; border-radius: 8px; }

/* ---------- placeholder image blocks (swap for real images) ---------- */
.ph {
  background: linear-gradient(155deg, var(--blush), #D3DAC4 60%, var(--blush));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--rose-deep);
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 10px;
  line-height: 1.5;
  overflow: hidden;
}
.ph span { opacity: 0.85; }
.ph img,
.book-cover img,
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- verse footer band ---------- */
.verse-band {
  text-align: center;
  padding: 70px 0;
}
.verse-band p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--plum);
  max-width: 680px;
  margin: 24px auto 0;
}

/* ---------- contact ---------- */
.contact-panel {
  background: var(--plum);
  color: var(--cream);
  border-radius: 22px;
  padding: 56px;
}
.contact-panel .section-label { color: var(--rose); }
.contact-panel h2 { color: var(--cream); }
.contact-panel .email-line {
  text-align: center;
  margin-bottom: 34px;
  font-size: 1rem;
  color: var(--blush);
}
.contact-panel .email-line a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(250,245,239,0.4);
  transition: text-decoration-color 0.2s ease;
}
.contact-panel .email-line a:hover { text-decoration-color: var(--gold); }
form.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 640px;
  margin: 0 auto;
}
form.contact-form .full { grid-column: 1 / -1; }
form.contact-form label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 6px;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(250,245,239,0.25);
  background: rgba(250,245,239,0.06);
  color: var(--cream);
  font-family: var(--body);
  font-size: 0.95rem;
}
form.contact-form input::placeholder,
form.contact-form textarea::placeholder { color: rgba(250,245,239,0.4); }
form.contact-form textarea { min-height: 120px; resize: vertical; }
form.contact-form .submit-row { grid-column: 1 / -1; text-align: center; margin-top: 8px; }
form.contact-form .btn.solid { background: var(--rose-deep); border-color: var(--rose-deep); }
form.contact-form .btn.solid:hover { background: var(--gold); border-color: var(--gold); }

@media (max-width: 640px) {
  .contact-panel { padding: 32px 22px; }
  form.contact-form { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
footer.site-footer {
  padding: 46px 0 60px;
  text-align: center;
  color: var(--plum-soft);
  font-size: 0.85rem;
}
footer.site-footer .logo { display: block; margin-bottom: 14px; }

/* ---------- about page ---------- */
.about-hero {
  padding: 70px 0 20px;
  text-align: center;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-portrait {
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 110px;
}
@media (max-width: 800px) { .about-portrait { position: static; } }
.about-copy p { margin: 0 0 20px; font-size: 1.04rem; }
.about-copy .signoff {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--rose-deep);
  margin-top: 10px;
}

/* ---------- gallery page ---------- */
.gallery-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
  color: var(--plum-soft);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}
@media (max-width: 700px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-card {
  background: var(--blush);
  border-radius: 16px;
  overflow: hidden;
}
.gallery-card .ph {
  aspect-ratio: 4/3;
  border-radius: 0;
}
.gallery-card .ph img {
  object-fit: contain;
  padding: 14px;
}
.gallery-card-body { padding: 22px 24px 26px; }
.gallery-num {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
}
.gallery-card h3 {
  font-size: 1.3rem;
  margin: 6px 0 8px;
}
.gallery-card p {
  margin: 0;
  color: var(--charcoal);
  font-size: 0.96rem;
}
.gallery-closing {
  text-align: center;
  max-width: 560px;
  margin: 56px auto 0;
  color: var(--plum-soft);
}

/* ---------- gallery thumbnail as button ---------- */
.gallery-thumb {
  width: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  position: relative;
}
.gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(46, 58, 38, 0.18);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-thumb:hover::after,
.gallery-thumb:focus-visible::after { opacity: 1; }
.gallery-thumb:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-inner {
  max-width: 920px;
  max-height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.lightbox-caption {
  text-align: center;
  color: var(--cream);
  margin-top: 20px;
  max-width: 520px;
}
.lightbox-caption h3 {
  color: var(--cream);
  font-size: 1.5rem;
  margin: 6px 0 8px;
}
.lightbox-caption p:not(.gallery-num) { color: #E3E8D9; }
.lightbox-caption .gallery-num { color: var(--gold); }
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  z-index: 20;
  background: transparent;
  border: 1px solid rgba(250,243,234,0.4);
  color: var(--cream);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(250,243,234,0.12); }

@media (max-width: 700px) {
  .lightbox { padding: 0; }
  .lightbox-inner {
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }
  .lightbox-inner img {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
  .lightbox-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    max-width: none;
    background: linear-gradient(to top, rgba(15,18,11,0.88), rgba(15,18,11,0));
    padding: 40px 20px 22px;
  }
  .lightbox-caption h3 { font-size: 1.2rem; margin: 4px 0 4px; }
  .lightbox-caption p { font-size: 0.88rem; }
  .lightbox-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    background: rgba(20,24,16,0.55);
  }
}
