/* Juliette Ambrose: night-sky romance
   Palette pulled from the official portrait. */
:root {
  --night: #0a1430;
  --night-2: #101d42;
  --night-3: #18295a;
  --ivory: #f6f0e1;
  --ivory-dim: #d9d1bf;
  --gold: #d9b56b;
  --gold-deep: #b48d45;
  --line: rgba(217, 181, 107, 0.45);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 68rem;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(40, 70, 140, 0.35), transparent 60%),
    radial-gradient(ellipse at 90% 40%, rgba(24, 41, 90, 0.6), transparent 55%);
  background-attachment: fixed;
  color: var(--ivory);
  font-family: var(--body);
  font-weight: 350;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Drifting gold specks: two tiled layers, CSS only */
body::before, body::after {
  content: "";
  position: fixed;
  inset: -50% 0 0 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: repeat;
}
body::before {
  background-image:
    radial-gradient(1.5px 1.5px at 30px 40px, rgba(217, 181, 107, 0.9), transparent),
    radial-gradient(1px 1px at 120px 160px, rgba(246, 240, 225, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 210px 80px, rgba(217, 181, 107, 0.7), transparent),
    radial-gradient(1px 1px at 270px 230px, rgba(217, 181, 107, 0.8), transparent);
  background-size: 300px 300px;
  opacity: 0.55;
  animation: drift 90s linear infinite;
}
body::after {
  background-image:
    radial-gradient(2px 2px at 80px 120px, rgba(217, 181, 107, 0.6), transparent),
    radial-gradient(1px 1px at 340px 60px, rgba(246, 240, 225, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 400px 330px, rgba(217, 181, 107, 0.5), transparent);
  background-size: 460px 460px;
  opacity: 0.4;
  animation: drift 150s linear infinite reverse;
}
@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(33%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, body::after, .mark .hand { animation: none !important; }
}

main, header, footer { position: relative; z-index: 1; }

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--ivory); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 9vw, 4.75rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 5vw, 2.75rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--night); padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* Thin gold line motif with a centered diamond */
.rule {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 2.5rem auto; max-width: 18rem; color: var(--gold);
}
.rule::before, .rule::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.rule span { width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid var(--gold); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 20, 48, 0.82);
  backdrop-filter: blur(6px);
  position: sticky; top: 0;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--ivory);
  font-family: var(--display); font-size: 1.45rem; letter-spacing: 0.04em;
}
.mark { width: 34px; height: 34px; flex: none; }
.mark .hand { transform-origin: 32px 36px; animation: backward 60s linear infinite; }
.mark .hand.min { animation-duration: 12s; }
@keyframes backward { to { transform: rotate(-360deg); } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: none; border: 1px solid var(--line); color: var(--ivory);
  font: inherit; font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.4rem 0.8rem; border-radius: var(--radius); cursor: pointer;
}
.site-nav { width: 100%; padding-bottom: 1rem; }
.js .site-nav { display: none; }
.nav-toggle { display: none !important; }
.js .nav-toggle { display: inline-flex !important; }
.js .site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.site-nav a {
  display: block; padding: 0.55rem 0; text-decoration: none; color: var(--ivory-dim);
  font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }

@media (min-width: 820px) {
  .js .nav-toggle { display: none !important; }
  .site-nav, .js .site-nav { display: block; width: auto; padding: 0; }
  .site-nav ul { display: flex; gap: 1.75rem; }
  .site-nav a { padding: 0.25rem 0; border-bottom: 1px solid transparent; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
}

/* Sections */
section { padding: 3.5rem 0; }
@media (min-width: 820px) { section { padding: 5rem 0; } }
.center { text-align: center; }
.narrow { max-width: 40rem; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.2rem; color: var(--ivory-dim); }

/* Hero */
.hero { padding-top: 2.5rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 820px) {
  .hero { padding-top: 4rem; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 4rem; }
}
.hero h1 { margin-bottom: 0.3em; }
.hook {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.45rem, 4.2vw, 2rem); line-height: 1.35; color: var(--ivory);
  border-left: 1px solid var(--gold); padding-left: 1.1rem; margin: 1.25rem 0 2rem;
}

.portrait {
  position: relative; margin: 0;
  padding: 10px; border: 1px solid var(--line);
  max-width: 28rem; justify-self: center;
}
.portrait::after {
  content: ""; position: absolute; inset: -8px; border: 1px solid rgba(217, 181, 107, 0.2); pointer-events: none;
}
.portrait img { width: 100%; }
.portrait figcaption {
  font-size: 0.8rem; color: var(--ivory-dim); text-align: center; padding-top: 0.6rem; letter-spacing: 0.06em;
}

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: inherit; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.9rem 1.6rem; border-radius: var(--radius);
  background: var(--gold); color: var(--night); border: 1px solid var(--gold);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--gold); }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: var(--gold); color: var(--night); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Panels / cards */
.panel {
  background: linear-gradient(180deg, rgba(24, 41, 90, 0.55), rgba(16, 29, 66, 0.55));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.25rem;
}
@media (min-width: 640px) { .panel { padding: 2.5rem; } }

.book-teaser { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 720px) { .book-teaser { grid-template-columns: 13rem 1fr; } }

.cover-slot {
  aspect-ratio: 2 / 3; width: 100%; max-width: 13rem; margin: 0 auto;
  border: 1px dashed var(--gold); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1rem; color: var(--ivory-dim);
  background: repeating-linear-gradient(135deg, rgba(217,181,107,0.04) 0 10px, transparent 10px 20px);
}
.cover-slot .t { font-family: var(--display); font-size: 1.35rem; color: var(--ivory); line-height: 1.2; }
.cover-slot .s { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 0.75rem; color: var(--gold); }
.cover-slot.lg { max-width: 18rem; }

.tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--gold); color: var(--gold); padding: 0.2rem 0.6rem; border-radius: 999px;
}

/* Love stories */
.stories { display: grid; gap: 1.25rem; list-style: none; padding: 0; margin: 2rem 0 0; }
@media (min-width: 720px) { .stories.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .stories.two { grid-template-columns: repeat(2, 1fr); } }
.story {
  border-top: 1px solid var(--gold); padding: 1.25rem 0 0;
}
.story .when {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 0.4rem;
}
.story h3 { font-size: 1.45rem; margin-bottom: 0.35em; }
.story p { color: var(--ivory-dim); margin: 0; }

/* Newsletter */
.signup form { display: grid; gap: 0.9rem; max-width: 30rem; margin: 1.5rem auto 0; text-align: left; }
@media (min-width: 640px) {
  .signup form { grid-template-columns: 1fr 1fr; }
  .signup form .full { grid-column: 1 / -1; }
}
label { display: block; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory-dim); margin-bottom: 0.35rem; }
input[type="text"], input[type="email"] {
  width: 100%; font: inherit; color: var(--ivory);
  background: rgba(10, 20, 48, 0.7); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}
input::placeholder { color: #8f93a8; }
.form-note { font-size: 0.85rem; color: var(--ivory-dim); margin-top: 0.25rem; }
.form-msg { min-height: 1.5em; font-family: var(--display); font-size: 1.3rem; font-style: italic; color: var(--gold); text-align: center; }
.hp { position: absolute; left: -9999px; }

/* Prose pages */
.prose { max-width: 40rem; }
.prose p:first-of-type::first-letter {
  font-family: var(--display); float: left; font-size: 3.6rem; line-height: 0.9; padding: 0.3rem 0.5rem 0 0; color: var(--gold);
}
.two-col { display: grid; gap: 3rem; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 22rem; align-items: start; } }

.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.5rem; }
@media (min-width: 640px) { .contact-list { grid-template-columns: repeat(2, 1fr); } }
.contact-list a { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0; border-bottom: 1px solid rgba(217,181,107,0.2); text-decoration: none; color: var(--ivory); }
.contact-list a:hover { color: var(--gold); }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--gold); }

.big-email { font-family: var(--display); font-size: clamp(1.6rem, 6vw, 2.5rem); word-break: break-word; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 2rem; text-align: center; }
.socials { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; padding: 0; margin: 0 0 1.5rem; }
.socials a {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
}
.socials a:hover { border-color: var(--gold); background: rgba(217,181,107,0.1); }
.socials svg { width: 19px; height: 19px; color: var(--gold); }
.site-footer p { font-size: 0.88rem; color: var(--ivory-dim); margin: 0.3rem 0; }
.fine { font-size: 0.78rem !important; opacity: 0.8; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (min-width: 720px) { .book-teaser.wide { grid-template-columns: 17rem 1fr; gap: 3rem; } }
.details { list-style: none; padding: 0; margin: 1rem 0 0; }
.details li { padding: 0.8rem 0; border-bottom: 1px solid rgba(217,181,107,0.2); }
.details .eyebrow { display: block; margin: 0 0 0.2rem; }

/* Tale pages */
.story h3 a { color: var(--ivory); text-decoration: none; }
.story h3 a:hover { color: var(--gold); }
.story .read { display: inline-block; margin-top: 0.75rem; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tale { padding: 2rem 0 4rem; }
.tale-back { margin: 0 0 2rem; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.tale-back a { text-decoration: none; }
.tale header h1 { margin-bottom: 0; }
.tale-body { max-width: 36rem; margin: 0 auto; font-family: var(--display); font-size: 1.3rem; line-height: 1.7; color: var(--ivory); }
.tale-body p { margin: 0 0 1.1em; }
.tale-body h2 { font-size: 1.5rem; text-align: center; margin: 2rem 0 1rem; }
.tale-body .rule { margin: 2.25rem auto; }
.tale-nav { max-width: 36rem; margin: 3.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: start; }
.tale-nav a { text-decoration: none; font-family: var(--display); font-size: 1.15rem; line-height: 1.3; }
.tale-nav a span { display: block; font-family: var(--body); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-dim); margin-bottom: 0.2rem; }
.tale-nav .next { text-align: right; }
.tale-nav .all { align-self: center; font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; }
@media (max-width: 560px) { .tale-nav { grid-template-columns: 1fr 1fr; } .tale-nav .all { grid-column: 1 / -1; grid-row: 1; text-align: center; } .tale-body { font-size: 1.2rem; } }