/* Lily's Pad — Curiosities & Creations
   Palette pulled from the logo: aged parchment, forest ink, ivy, burgundy, antique gold, lantern glow. */

:root {
  --parchment: #efe4c9;
  --parchment-deep: #e3d3ae;
  --parchment-edge: #cdb889;
  --ink: #1d2419;
  --ink-soft: #3d4535;
  --forest: #16201a;
  --forest-2: #1f2d22;
  --moss: #2f4030;
  --ivy: #5f7548;
  --sage: #9fb39a;
  --burgundy: #6e1f2b;
  --plum: #3e1a2b;
  --gold: #b38a45;
  --gold-soft: #d2b06b;
  --lantern: #f4cd74;

  --font-display: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --font-caps: "IM Fell English SC", "Iowan Old Style", Georgia, serif;
  --font-body: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --font-script: "Pinyon Script", "Snell Roundhand", cursive;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .15 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.06rem, 1rem + .25vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--parchment);
  background-image: var(--grain), radial-gradient(120% 80% at 50% 0%, #f5ecd6 0%, var(--parchment) 55%, var(--parchment-deep) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--burgundy); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--plum); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--parchment); padding: .5em 1em; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--font-caps);
  font-size: .95rem;
  letter-spacing: .18em;
  text-transform: lowercase;
  color: var(--burgundy);
  display: inline-flex; align-items: center; gap: .7em;
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 2.2em; height: 1px; background: currentColor; opacity: .6; }
.script { font-family: var(--font-script); font-weight: 400; font-size: 1.5em; line-height: 1; color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-caps); font-size: 1.05rem; letter-spacing: .08em;
  padding: .8em 1.5em; border-radius: 999px;
  border: 1px solid var(--b); color: var(--b); background: transparent;
  text-decoration: none; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { background: var(--b); color: var(--parchment); transform: translateY(-1px); }
.btn--solid { background: var(--burgundy); border-color: var(--burgundy); color: #f7ecd3; }
.btn--solid:hover { background: var(--plum); border-color: var(--plum); color: #f7ecd3; }
.btn--glow { --b: var(--lantern); color: var(--lantern); }
.btn--glow:hover { color: var(--forest); box-shadow: 0 0 40px -6px var(--lantern); }
.btn svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--parchment) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid color-mix(in srgb, var(--parchment-edge) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { height: 54px; width: auto; border-radius: 4px; box-shadow: 0 2px 10px -4px rgba(40, 25, 10, .5); }
.brand span { font-family: var(--font-script); font-size: 1.9rem; line-height: 1; color: var(--ink); }

.nav ul { list-style: none; display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); margin: 0; padding: 0; }
.nav a {
  font-family: var(--font-caps); letter-spacing: .1em; font-size: 1.02rem;
  color: var(--ink-soft); text-decoration: none; position: relative; padding: .3em 0;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); transform: translateX(-50%) scale(0); transition: transform .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--burgundy); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }

.nav-toggle { display: none; background: none; border: 1px solid var(--parchment-edge); border-radius: 999px; padding: .5em .9em; font-family: var(--font-caps); font-size: 1rem; color: var(--ink); cursor: pointer; }

@media (max-width: 760px) {
  .brand span { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 76px 0 auto 0; background: var(--parchment); background-image: var(--grain); border-bottom: 1px solid var(--parchment-edge); transform: translateY(-120%); transition: transform .4s var(--ease); z-index: -1; }
  .nav.is-open { transform: none; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.2rem; }
  .nav li a { display: block; padding: .8em 0; font-size: 1.3rem; border-bottom: 1px solid color-mix(in srgb, var(--parchment-edge) 50%, transparent); }
  .nav a::after { display: none; }
}

/* ---------- Ornament ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--gold); margin: 0 auto; }
.ornament::before, .ornament::after { content: ""; height: 1px; flex: 0 1 120px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 46px; height: 28px; flex: none; }

/* ---------- Dark "lantern" sections ---------- */
.dark {
  --lx: 70%; --ly: 40%;
  position: relative; isolation: isolate;
  color: #e9dfc6;
  background: var(--forest);
}
.dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px circle at var(--lx) var(--ly), rgba(244, 205, 116, .16), transparent 60%),
    radial-gradient(90% 70% at 20% 100%, rgba(95, 117, 72, .22), transparent 70%),
    var(--grain-dark);
  transition: background-position .2s;
}
.dark h1, .dark h2, .dark h3 { color: #f3e8cc; }
.dark .eyebrow { color: var(--gold-soft); }
.dark a:not(.btn) { color: var(--lantern); }
.dark p { color: #d9cfb5; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--lantern); text-shadow: 0 0 40px rgba(244, 205, 116, .35); }
.hero .lede { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); max-width: 34ch; margin-bottom: 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-figure { position: relative; margin: 0; justify-self: center; width: min(100%, 520px); }
.hero-figure img {
  border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(210, 176, 107, .25);
  aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
}
.hero-figure::before {
  content: ""; position: absolute; inset: -14px; border-radius: 214px 214px 12px 12px;
  border: 1px solid rgba(210, 176, 107, .35); pointer-events: none;
}
.hero-figure figcaption {
  position: absolute; left: -1.5rem; bottom: 2.2rem;
  background: var(--parchment); background-image: var(--grain); color: var(--ink);
  padding: .9rem 1.2rem; border-radius: 4px; max-width: 220px;
  font-size: .95rem; line-height: 1.35; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  transform: rotate(-2deg);
}
.hero-figure figcaption b { display: block; font-family: var(--font-caps); font-weight: 400; color: var(--burgundy); letter-spacing: .08em; }

.motes { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.motes i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--lantern); box-shadow: 0 0 8px 2px rgba(244, 205, 116, .6);
  opacity: 0; animation: drift 14s linear infinite;
}
@keyframes drift {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .9; }
  90% { opacity: .6; }
  100% { transform: translate(40px, -60vh); opacity: 0; }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { order: -1; width: min(100%, 400px); }
  .hero-figure figcaption { left: .75rem; bottom: 1rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(2.2rem, 5vw, 3.8rem); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.15em; color: var(--ink-soft); }
.dark .section-head p { color: #d0c6aa; }

/* Two doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.5rem); }
.door {
  position: relative; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit;
  background: #f6eed9; background-image: var(--grain);
  border: 1px solid var(--parchment-edge); border-radius: 220px 220px var(--radius) var(--radius);
  padding: 14px; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.door:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(60, 35, 15, .45); color: inherit; }
.door-img { border-radius: 210px 210px 3px 3px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--forest); }
.door-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.door:hover .door-img img { transform: scale(1.05); }
.door-body { padding: 1.6rem 1rem 1rem; text-align: center; }
.door-body p { color: var(--ink-soft); max-width: 36ch; margin-inline: auto; }
.door-body .more { font-family: var(--font-caps); letter-spacing: .1em; color: var(--burgundy); display: inline-flex; gap: .5em; align-items: center; }
.door-body .more svg { width: 1em; transition: transform .3s var(--ease); }
.door:hover .more svg { transform: translateX(4px); }
.door--books .door-img { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.door--books .door-img img { aspect-ratio: auto; }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }

.stack { position: relative; aspect-ratio: 1 / 1.05; }
.stack img { position: absolute; border-radius: var(--radius); box-shadow: 0 30px 60px -28px rgba(30, 20, 10, .7); object-fit: cover; }
.stack img:nth-child(1) { width: 72%; height: 82%; left: 0; top: 0; }
.stack img:nth-child(2) { width: 52%; height: 56%; right: 0; bottom: 0; border: 8px solid #f6eed9; transform: rotate(3deg); }

.ticks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.ticks li { display: grid; grid-template-columns: 1.4em 1fr; gap: .6rem; align-items: baseline; }
.ticks li::before { content: "❦"; color: var(--ivy); font-size: .95em; }
.dark .ticks li::before { color: var(--sage); }

/* Shelf of covers */
.shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr);
  gap: clamp(1rem, 2.4vw, 1.8rem); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem var(--gutter) 2.2rem; margin-inline: calc(-1 * var(--gutter));
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.shelf > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .shelf { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; } }

/* Book card */
.book {
  text-decoration: none;
  appearance: none; border: 0; background: none; padding: 0; margin: 0; text-align: left;
  font: inherit; color: inherit; cursor: pointer; display: block; width: 100%;
}
.book-cover {
  position: relative; aspect-ratio: 3 / 4; border-radius: 2px 6px 6px 2px; overflow: hidden;
  background: #111; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .06);
  transform-origin: left center; transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover::after { /* spine highlight */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 9%;
  background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(255, 255, 255, .12) 45%, transparent);
}
.book:hover .book-cover, .book:focus-visible .book-cover { transform: perspective(900px) rotateY(-12deg) translateY(-4px); box-shadow: 18px 28px 40px -20px rgba(0, 0, 0, .8); }
.book-meta { padding-top: 1rem; }
.book-meta .series { font-family: var(--font-caps); letter-spacing: .12em; font-size: .9rem; color: var(--burgundy); }
.book-meta h3 { font-size: 1.35rem; margin: .1em 0 .2em; }
.book-meta p { font-size: .98rem; color: var(--ink-soft); margin: 0; }
.dark .book-meta .series { color: var(--gold-soft); }
.dark .book-meta p { color: #c9bfa4; }

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 40vw), 1fr)); gap: clamp(1.8rem, 4vw, 3rem) clamp(1.2rem, 3vw, 2.4rem); }
.book-grid .book[hidden] { display: none; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.chip {
  font-family: var(--font-caps); letter-spacing: .08em; font-size: 1rem;
  padding: .45em 1.1em; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(210, 176, 107, .45); background: transparent; color: #e3d8bc;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--lantern); color: var(--lantern); }
.chip[aria-pressed="true"] { background: var(--lantern); border-color: var(--lantern); color: var(--forest); }

/* Page intro */
.page-intro { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.page-intro h1 { max-width: 14ch; }
.page-intro .lede { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); max-width: 52ch; }

/* Notebook gallery */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.6rem, 1.5vw, 1rem); }
.gallery button { all: unset; cursor: zoom-in; display: block; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .g1 { grid-column: span 7; grid-row: span 2; }
.gallery .g2 { grid-column: span 5; }
.gallery .g3 { grid-column: span 5; }
@media (max-width: 700px) {
  .gallery .g1, .gallery .g2, .gallery .g3 { grid-column: span 12; grid-row: auto; aspect-ratio: 4 / 3.4; }
}

/* Anatomy (what's inside) */
.anatomy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 1px; background: var(--parchment-edge); border: 1px solid var(--parchment-edge); border-radius: var(--radius); overflow: hidden; }
.anatomy > div { background: #f4ebd4; background-image: var(--grain); padding: 1.8rem 1.6rem; }
.anatomy .num { font-family: var(--font-display); font-style: italic; font-size: 2.4rem; color: var(--gold); line-height: 1; display: block; margin-bottom: .6rem; }
.anatomy h3 { font-size: 1.4rem; margin-bottom: .3em; }
.anatomy p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

/* Quote band */
.quote { text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 26ch; font-family: var(--font-display); font-style: italic; font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem); line-height: 1.2; }

/* About */
.about-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-card .logo-frame { background: #f6eed9; padding: 12px; border: 1px solid var(--parchment-edge); border-radius: var(--radius); transform: rotate(-2deg); box-shadow: 0 24px 50px -28px rgba(60, 35, 15, .6); }
.about-card .logo-frame img, .about-card .logo-frame video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
@media (max-width: 760px) { .about-card { grid-template-columns: 1fr; } .about-card .logo-frame { max-width: 520px; } }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: .35rem; font-family: var(--font-caps); letter-spacing: .08em; font-size: .98rem; color: var(--gold-soft); }
.form input, .form select, .form textarea {
  font: inherit; font-family: var(--font-body); font-size: 1.05rem; letter-spacing: 0;
  color: #f3e8cc; background: rgba(0, 0, 0, .22); border: 1px solid rgba(210, 176, 107, .35);
  border-radius: 4px; padding: .75em .9em; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.form select option { color: var(--ink); }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--lantern); box-shadow: 0 0 0 3px rgba(244, 205, 116, .18); }
.form .note { font-size: .95rem; color: #b8ae93; margin: 0; }

/* ---------- Dialog / lightbox ---------- */
dialog {
  border: 0; padding: 0; color: var(--ink); background: transparent;
  width: min(980px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
}
dialog::backdrop { background: rgba(10, 14, 10, .82); backdrop-filter: blur(4px); }
dialog[open] { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.sheet {
  position: relative; background: var(--parchment); background-image: var(--grain);
  border-radius: 8px; overflow: auto; max-height: calc(100dvh - 2rem);
  display: grid; grid-template-columns: .9fr 1.1fr;
}
.sheet-cover { background: var(--forest); padding: clamp(1.2rem, 3vw, 2.2rem); display: grid; place-items: center; }
.sheet-cover img { max-height: 70dvh; width: auto; border-radius: 2px 6px 6px 2px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); }
.sheet-body { padding: clamp(1.5rem, 4vw, 3rem); }
.sheet-body h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
.sheet-body .facts { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0 0 1.4rem; }
.sheet-body .facts li { font-family: var(--font-caps); letter-spacing: .06em; font-size: .92rem; padding: .2em .8em; border: 1px solid var(--parchment-edge); border-radius: 999px; color: var(--ink-soft); }
.sheet-body figure { margin: 1.5rem 0; }
.sheet-body figure img { border-radius: 4px; border: 1px solid var(--parchment-edge); width: 100%; max-width: 360px; }
.sheet-body figcaption { font-size: .92rem; color: var(--ink-soft); font-style: italic; margin-top: .4rem; }
.close {
  position: absolute; top: .8rem; right: .8rem; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--parchment-edge);
  background: var(--parchment); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.close:hover { background: var(--ink); color: var(--parchment); }
@media (max-width: 760px) { .sheet { grid-template-columns: 1fr; } .sheet-cover img { max-height: 46dvh; } }

.lightbox { width: min(1200px, calc(100% - 2rem)); }
.lightbox .frame { position: relative; display: grid; place-items: center; }
.lightbox img { max-height: calc(100dvh - 6rem); width: auto; border-radius: 6px; box-shadow: 0 30px 80px -20px #000; }
.lightbox p { color: #e9dfc6; text-align: center; margin: .8rem 0 0; font-style: italic; }
.lightbox .close { top: -.4rem; right: -.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: #121a14; color: #b9b096; padding: 3.5rem 0 2rem; font-size: 1rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { font-family: var(--font-caps); font-weight: 400; letter-spacing: .14em; color: var(--gold-soft); margin: 0 0 .8rem; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer a { color: #e3d8bc; text-decoration: none; }
.site-footer a:hover { color: var(--lantern); }
.site-footer .script { font-size: 2.4rem; color: #efe3c4; display: block; margin-bottom: .3rem; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(210, 176, 107, .18); padding-top: 1.5rem; margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .92rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.page-intro { position: relative; }
.ticks strong { font-weight: 500; color: inherit; }
.dark .ticks strong { color: #f3e8cc; }

.ticks--cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 3rem; font-size: 1.08em; margin: 0; }
@media (max-width: 760px) { .ticks--cols { grid-template-columns: 1fr; } }
.form .honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; min-height: 1.6em; color: var(--lantern); font-style: italic; }

/* Privacy and other plain text pages */
.prose .wrap { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.form .note a, .prose a { color: inherit; }
