:root {
  --paper: #f4e7d0;
  --paper-deep: #ead7b8;
  --ink: #3a291c;
  --ink-soft: #5c4634;
  --gold: #8d6b3a;
  --gold-deep: #6e4e28;
  --line: rgba(109, 78, 40, 0.35);
  --blush: #f7efe4;
  --shadow: 0 18px 40px rgba(74, 48, 22, 0.16);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --script: "Great Vibes", cursive;
  --small: "Cinzel", "Times New Roman", serif;
  --max: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(255, 252, 245, 0.9), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(196, 154, 106, 0.16), transparent 50%),
    radial-gradient(800px 500px at 0% 80%, rgba(166, 122, 78, 0.12), transparent 46%),
    var(--paper);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.site-header { padding: 1.25rem 0 0; text-align: center; }
.logo-link { display: inline-block; }
.logo-link img { width: min(760px, 94vw); margin: 0 auto; background: transparent; }

.nav-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0;
  margin: 0.25rem auto 1.4rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--ink);
  font-family: var(--small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  padding: 0.35rem 0.65rem;
}
.nav-list a[aria-current="page"],
.nav-list a:hover { color: var(--gold-deep); }
.nav-list li { display: flex; align-items: center; }
.nav-list li + li::before {
  content: "|";
  color: var(--gold);
  font-family: var(--serif);
}

.hero-frame {
  position: relative;
  margin: 0.2rem auto 0.4rem;
  padding: 1.6rem;
  max-width: 980px;
}
.hero-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 70% 40%;
  box-shadow: var(--shadow);
  border: 8px solid #f6ead6;
  outline: 1px solid #6e4e28;
}
.hero-copy {
  position: absolute;
  left: 2.4rem;
  top: 2.6rem;
  color: #f8f1e4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  max-width: 16rem;
}
.hero-copy .soon {
  font-family: var(--small);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 0.35rem;
}
.hero-copy .hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 0.92;
  font-weight: 500;
  margin: 0;
}
.hero-copy .hero-by {
  margin: 0.7rem 0 0;
  font-size: 1.15rem;
}
.corner {
  position: absolute;
  width: 108px;
  height: 108px;
  background: url("../images/rose-corner.svg") center / contain no-repeat;
  pointer-events: none;
}
.corner.tl { top: 0; left: 0; }
.corner.tr { top: 0; right: 0; transform: scaleX(-1); }
.corner.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.corner.br { bottom: 0; right: 0; transform: scale(-1); }
.corner.side-l { top: 50%; left: 0; transform: translateY(-50%) rotate(-20deg); width: 84px; height: 84px; }
.corner.side-r { top: 50%; right: 0; transform: translateY(-50%) scaleX(-1) rotate(-20deg); width: 84px; height: 84px; }

.section { padding: 0.4rem 0 2.4rem; }
.script {
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  color: var(--ink);
  margin: 0 0 0.35rem;
}
h1.script, .script.xl { font-size: clamp(3.2rem, 6vw, 4.6rem); }
h2.script { font-size: clamp(2.6rem, 5vw, 3.5rem); }
.kicker {
  font-family: var(--small);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-deep);
  margin: 0 0 0.4rem;
}
.ornament {
  display: block;
  width: 140px;
  height: 18px;
  margin: 0.8rem 0 1rem;
  background: url("../images/flourish.svg") center / contain no-repeat;
}
.ornament.center { margin-left: auto; margin-right: auto; }

.split {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 2.2rem;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.72fr 1.28fr; }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

.book {
  width: min(250px, 70vw);
  margin: 0 auto;
  filter: drop-shadow(12px 16px 18px rgba(58, 41, 28, 0.28));
}
.book-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 2px 8px 8px 2px;
  overflow: hidden;
  color: #f8f1e4;
  background:
    linear-gradient(180deg, rgba(20, 16, 28, 0.15), rgba(12, 10, 18, 0.45)),
    url("../images/hero.jpg") center 30% / cover no-repeat,
    #1d2438;
  padding: 1.1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset -14px 0 18px rgba(0, 0, 0, 0.25);
}
.book-cover .kicker { color: #f3e2c2; letter-spacing: 0.18em; }
.book-cover h3 {
  font-family: var(--script);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 0.95;
  margin: 0.2rem 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.book-cover p { margin: 0; font-size: 0.95rem; }
.book-pages {
  height: 10px;
  margin: 0 8px 0 4px;
  background: repeating-linear-gradient(90deg, #f7f1e6, #f7f1e6 1px, #e4d8c6 2px, #efe6d8 3px);
  border-radius: 0 0 3px 3px;
}

.portrait {
  width: min(280px, 80vw);
  margin: 0 auto;
  padding: 8px;
  background: #fbf6ee;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}
.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
}

.panel {
  background: rgba(255, 250, 242, 0.55);
  border: 1px solid var(--line);
  padding: 1.4rem 1.3rem 1.5rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card h3 {
  font-family: var(--small);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 0.4rem;
}
.card p { margin: 0; color: var(--ink-soft); }
.card a.more {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: var(--small);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.button, button.button {
  display: inline-block;
  border: 1px solid var(--gold-deep);
  background: var(--ink);
  color: #f8f1e4;
  font-family: var(--small);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
}
.button:hover, button.button:hover { background: var(--gold-deep); color: #fffaf3; }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { background: var(--ink); color: #f8f1e4; }

form { display: grid; gap: 0.75rem; }
label { font-family: var(--small); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
input, textarea, select {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid var(--line);
  padding: 0.7rem 0.75rem;
}
textarea { min-height: 140px; resize: vertical; }
.form-note, .fine { color: var(--ink-soft); font-size: 1rem; }
.success { display: none; padding: 0.8rem 0.9rem; border: 1px solid var(--gold); background: rgba(255, 252, 247, 0.8); }
.success.show { display: block; }

.social {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0.6rem;
}
.social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.social a:hover { background: var(--ink); color: var(--paper); }
.social svg { width: 15px; height: 15px; fill: currentColor; }

.site-footer {
  text-align: center;
  padding: 0.4rem 0 2rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.page-title { text-align: center; margin-bottom: 1.4rem; }
.book-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.6rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.meta { font-size: 1rem; color: var(--ink-soft); }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.events li { border-bottom: 1px solid var(--line); padding-bottom: 0.8rem; }

@media (max-width: 800px) {
  .split, .split.reverse, .cards, .book-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(420px, 100%);
    margin: 0.6rem auto 0;
    background: rgba(255, 250, 242, 0.96);
    border: 1px solid var(--line);
  }
  .nav-list.open { display: flex; }
  .nav-list li + li::before { content: none; }
  .nav-bar { flex-direction: column; }
  .corner { width: 72px; height: 72px; }
  .hero-frame { padding: 0.8rem; }
}
