/* Jojo Capece — deep red, sultry, classic */
:root {
  --wine-deep: #1f0408;
  --wine: #3d0a12;
  --wine-mid: #5a0f1b;
  --crimson: #9b1b2e;
  --ivory: #f4ebe4;
  --blush: #d9b8b0;
  --gold: #c8a26a;
  --serif-display: "Cormorant Garamond", "Times New Roman", serif;
  --serif-body: "EB Garamond", Georgia, serif;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ivory);
  font-family: var(--serif-body);
  font-size: 1.15rem;
  line-height: 1.7;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(155, 27, 46, .45), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, .6), transparent 60%),
    var(--wine);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ivory); }

h1, h2, h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-style: italic; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-style: italic; }
h3 { font-size: 1.5rem; }

.eyebrow {
  font-family: var(--serif-display);
  font-size: .85rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .75rem;
}
.rule {
  width: 64px; height: 1px; border: 0;
  background: var(--gold);
  margin: 1.5rem 0;
}
.center { text-align: center; }
.center .rule { margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  background: linear-gradient(var(--wine-deep), rgba(31, 4, 8, .85));
  border-bottom: 1px solid rgba(200, 162, 106, .25);
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .35rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.brand img { height: 80px; width: auto; }
.site-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--serif-display);
  font-size: 1rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blush);
  padding: .25rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--ivory);
  border-bottom-color: var(--crimson);
}

/* Layout */
.section { max-width: var(--max); margin: 0 auto; padding: 4.5rem 1.5rem; }
.section.narrow { max-width: 760px; }
.section + .section { border-top: 1px solid rgba(200, 162, 106, .15); }

/* Hero / featured book */
.feature {
  display: grid;
  grid-template-columns: minmax(240px, 400px) 1fr;
  gap: 4rem;
  align-items: center;
}
.cover {
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(200, 162, 106, .25);
  transform: rotate(-1.5deg);
  transition: transform .4s;
}
.cover:hover { transform: rotate(0) scale(1.02); }
.feature.compact { grid-template-columns: minmax(160px, 250px) 1fr; gap: 3rem; }
.hero-cta {
  max-width: 720px;
  margin: 3.5rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(200, 162, 106, .2);
  text-align: center;
}
.hero-cta .btn { margin: 1rem .35rem 0; }
.tagline {
  font-family: var(--serif-display);
  font-size: 1.1rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--crimson);
  filter: brightness(1.6);
  margin: 0 0 1.25rem;
}
.lede { font-size: 1.3rem; font-style: italic; color: var(--blush); }

.btn {
  display: inline-block;
  font-family: var(--serif-display);
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: .82rem;
  padding: .7rem 1.5rem;
  border: 0;
  color: var(--ivory);
  background: var(--crimson);
  margin-top: 1rem;
}
.btn:hover { background: var(--wine-deep); color: var(--gold); }
.btn.ghost { background: rgba(244, 235, 228, .07); }
.btn.ghost:hover { background: var(--crimson); color: var(--ivory); }

/* Book grid */
.books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-top: 2.5rem;
}
.book { text-align: center; }
.book img {
  margin: 0 auto 1.25rem;
  max-height: 340px;
  width: auto;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .8);
  transition: transform .3s;
}
.book a:hover img { transform: translateY(-6px); }
.book h3 { font-style: italic; margin-bottom: .25rem; color: var(--ivory); }
.book p { font-size: 1rem; color: var(--blush); margin: 0; }

/* Art tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.tile { position: relative; overflow: hidden; display: block; }
.tile img {
  aspect-ratio: 1; object-fit: cover; width: 100%;
  filter: saturate(.85);
  transition: transform .6s, filter .6s;
}
.tile:hover img { transform: scale(1.05); filter: saturate(1.1); }
.tile span {
  position: absolute; inset: auto 0 0 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(31, 4, 8, .9));
  font-family: var(--serif-display);
  font-size: 1.4rem; font-style: italic;
  color: var(--ivory);
  text-align: center;
}

/* Galleries */
.gallery {
  columns: 4 220px;
  column-gap: 1rem;
  margin-top: 1.5rem;
}
.gallery button {
  display: block; width: 100%;
  margin: 0 0 1rem;
  padding: 0; border: 0; background: none; cursor: zoom-in;
  break-inside: avoid;
}
.gallery img { width: 100%; transition: opacity .3s; }
.gallery button:hover img { opacity: .8; }
.gallery-title { margin-top: 3.5rem; }
.subnav { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.subnav a {
  font-family: var(--serif-display);
  letter-spacing: .2em; text-transform: uppercase; font-size: .9rem;
}

dialog.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 92vw; max-height: 92vh;
}
dialog.lightbox::backdrop { background: rgba(20, 2, 5, .92); }
dialog.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; margin: 0 auto; }
dialog.lightbox button {
  position: fixed; background: none; border: 0; color: var(--ivory);
  font-size: 2.5rem; cursor: pointer; font-family: var(--serif-display); padding: 1rem;
}
.lb-close { top: .5rem; right: 1rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* Prose & interviews */
.prose p { margin: 0 0 1.25em; }
.prose blockquote {
  margin: 2rem 0; padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--crimson);
  font-family: var(--serif-display);
  font-size: 1.45rem; font-style: italic; color: var(--blush);
}
.prose blockquote cite { display: block; font-size: 1rem; font-style: normal; letter-spacing: .1em; margin-top: .5rem; color: var(--gold); }
.qa dt {
  font-family: var(--serif-display);
  font-size: 1.35rem; font-style: italic; color: var(--gold);
  margin-top: 2rem;
}
.qa dd { margin: .5rem 0 0; }

.portrait { float: right; width: 42%; margin: 0 0 1.5rem 2.5rem; }
.portrait img { width: 100%; box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .8); }
.caption { font-size: .85rem; color: var(--blush); font-style: italic; margin-top: .5rem; }

/* Contact form */
form.contact { display: grid; gap: 1.25rem; margin-top: 2rem; }
form.contact label {
  display: grid; gap: .4rem;
  font-family: var(--serif-display); letter-spacing: .15em; text-transform: uppercase; font-size: .85rem; color: var(--gold);
}
form.contact input, form.contact textarea {
  font: inherit; color: var(--ivory);
  background: rgba(31, 4, 8, .6);
  border: 1px solid rgba(200, 162, 106, .35);
  padding: .8rem 1rem;
}
form.contact input:focus, form.contact textarea:focus { outline: 1px solid var(--gold); }
form.contact textarea { min-height: 160px; resize: vertical; }
form.contact button { justify-self: start; cursor: pointer; }
.hidden { display: none; }

/* Footer */
.site-footer {
  background: var(--wine-deep);
  border-top: 1px solid rgba(200, 162, 106, .25);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: .95rem;
  color: var(--blush);
}
.site-footer img { height: 80px; width: auto; margin: 0 auto 1rem; opacity: .8; }
.site-footer p { margin: .25rem 0; }

@media (max-width: 760px) {
  .feature, .feature.compact { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature .cover { max-width: 300px; margin: 0 auto; }
  .feature.compact .cover { max-width: 220px; }
  .brand img { height: 64px; }
  .site-header .inner { justify-content: center; }
  .site-nav { gap: 1.1rem; justify-content: center; }
  .site-nav a { font-size: .85rem; letter-spacing: .12em; }
  .portrait { float: none; width: 100%; margin: 0 0 1.5rem; }
  .section { padding: 3rem 1.25rem; }
}
