/* ═══════════════════════════════════════════════════════════════════
   PLEDGE — design tokens
   Warm ivory editorial keepsake. Cormorant Garamond display + italics,
   EB Garamond body. Sepia accents, restrained scale.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --paper:        #f4ede0;
  --paper-deep:   #ece2cf;
  --paper-edge:   #e2d6bc;
  --ink:          #2a2018;
  --ink-soft:     #5a4a3a;
  --ink-faint:    #8a7868;
  --ink-ghost:    rgba(42, 32, 24, 0.42);
  --rule:         rgba(42, 32, 24, 0.18);
  --rule-soft:    rgba(42, 32, 24, 0.10);
  --rose:         oklch(0.58 0.09 30);
  --gold:         oklch(0.68 0.08 75);
  --serif:        'EB Garamond', 'Iowan Old Style', Georgia, serif;
  --display:      'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --ui:           'Inter', system-ui, -apple-system, sans-serif;
  --measure:      36rem;
  --content-w:    min(92vw, 720px);

  /* fluid type */
  --t-body:       clamp(1.06rem, 0.78rem + 0.7vw, 1.28rem);
  --t-lead:       clamp(1.22rem, 0.9rem + 0.95vw, 1.5rem);
  --t-section:    clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem);
  --t-display:    clamp(2.8rem, 1.6rem + 4.5vw, 5.6rem);
  --t-eyebrow:    0.72rem;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--t-body);
  line-height: 1.62;
  font-feature-settings: "kern", "liga", "onum", "pnum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── grain ───────────────────────────────────────────────────────── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ── progress bar ────────────────────────────────────────────────── */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--rule-soft);
  z-index: 80;
}
.progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  transition: width 0.12s linear;
}

/* ── chapter nav ─────────────────────────────────────────────────── */
.toc {
  position: fixed;
  top: 50%; right: 1.25rem;
  transform: translateY(-50%);
  z-index: 70;
  font-family: var(--ui);
}
.toc-toggle {
  appearance: none; border: 0; background: transparent;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  color: var(--ink-soft);
  cursor: pointer;
  font: 500 0.7rem/1 var(--ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(244, 237, 224, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rule-soft);
}
.toc-bars { display: inline-flex; flex-direction: column; gap: 3px; }
.toc-bars i {
  display: block; width: 14px; height: 1.5px; background: currentColor;
}
.toc-bars i:nth-child(2) { width: 10px; }
.toc-bars i:nth-child(3) { width: 12px; }
.toc-label { display: none; }
@media (min-width: 900px) { .toc-label { display: inline; } }
.toc-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0.8rem 1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: 0 18px 60px -30px rgba(42, 32, 24, 0.35);
  min-width: 220px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.32s ease, opacity 0.2s ease, padding 0.2s;
  padding-top: 0; padding-bottom: 0;
}
.toc.open .toc-list {
  max-height: 70vh;
  opacity: 1;
  padding-top: 0.8rem; padding-bottom: 0.8rem;
}
.toc-list li { counter-increment: chapter; }
.toc-list a {
  display: flex; align-items: baseline; gap: 0.6rem;
  padding: 0.34rem 0;
  color: var(--ink-soft);
  text-decoration: none;
  font: 400 0.92rem/1.3 var(--serif);
  transition: color 0.15s;
}
.toc-list a::before {
  content: attr(data-n);
  font: italic 400 0.72rem/1 var(--display);
  color: var(--ink-ghost);
  letter-spacing: 0.05em;
  min-width: 1.6rem;
}
.toc-list a:hover { color: var(--rose); }
.toc-list a.active { color: var(--ink); font-weight: 500; }

/* ── ambient controls ────────────────────────────────────────────── */
.ambient {
  position: fixed;
  bottom: 1.25rem; right: 1.25rem;
  z-index: 70;
  display: flex; flex-direction: column; gap: 0.4rem;
  align-items: flex-end;
}
.ambient-btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(244, 237, 224, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  color: var(--ink-soft);
  font: 500 0.72rem/1 var(--ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s, background 0.15s, transform 0.15s;
}
.ambient-btn:hover { color: var(--ink); background: var(--paper); }
.ambient-btn[aria-pressed="true"] { color: var(--rose); }
.ambient-btn.hidden { display: none; }
.ambient-btn span { display: none; }
@media (min-width: 900px) { .ambient-btn span { display: inline; } }

/* ── reveal on scroll ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.1s cubic-bezier(.2,.6,.2,1), transform 1.1s cubic-bezier(.2,.6,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════ */
.section {
  padding: clamp(4rem, 8vw, 8rem) 1.5rem;
  position: relative;
}
.wrap {
  width: var(--content-w);
  margin: 0 auto;
  max-width: 720px;
}
.wrap.wide { max-width: 1100px; }

.eyebrow {
  font: 500 var(--t-eyebrow) / 1 var(--ui);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
}

.section-num {
  display: inline-block;
  font: italic 300 1.6rem / 1 var(--display);
  color: var(--rose);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

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

.section h2 {
  font-size: var(--t-section);
  line-height: 1.04;
  letter-spacing: -0.005em;
  font-style: italic;
  font-weight: 300;
  margin: 0.4rem 0 1rem;
  text-wrap: balance;
}

.subhead {
  font: 500 var(--t-eyebrow) / 1.4 var(--ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 2rem;
  max-width: 32rem;
}

p { margin: 0 0 1.1rem; text-wrap: pretty; }
p.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); margin-bottom: 1.6rem; }
em.heart { font-style: italic; color: var(--ink); }

.ornament {
  display: block;
  text-align: center;
  font: 300 1.6rem/1 var(--display);
  color: var(--rose);
  margin: 2.6rem auto;
  letter-spacing: 0.3em;
}
.ornament.lg { font-size: 2.2rem; margin: 4rem auto; }

/* ── COVER ────────────────────────────────────────────────────────── */
.cover {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 6vh 1.5rem;
  position: relative;
  overflow: hidden;
}
.cover-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cover-photo img.media-slot {
  width: 100% !important; height: 100% !important;
  display: block !important;
}
.cover-photo::after {
  content: "";
  position: absolute; inset: 0;
  /* darker, cinematic vignette so the photo stays visible AND the title pops.
     Center is mostly clear; edges fade gently to the warm paper.
     A second layer adds a soft dark wash behind the title block. */
  background:
    radial-gradient(ellipse at 50% 38%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 30%, rgba(0,0,0,0.0) 60%),
    linear-gradient(180deg, rgba(20,14,8,0.20) 0%, rgba(20,14,8,0.05) 35%, rgba(20,14,8,0.45) 100%),
    radial-gradient(ellipse at center, rgba(244,237,224,0.0) 55%, rgba(244,237,224,0.85) 100%);
  pointer-events: none; /* let clicks reach the img.media-slot below */
}
.cover-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 38rem;
  pointer-events: none; /* same — title shouldn't block the upload target */
}
.cover-eyebrow {
  font: 600 0.82rem / 1 var(--ui);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #f7ecd9;
  margin-bottom: 2rem;
  text-shadow: 0 1px 14px rgba(0,0,0,0.55), 0 0 1px rgba(0,0,0,0.6);
}
.cover h1 {
  font-size: var(--t-display);
  line-height: 0.96;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
  text-wrap: balance;
  color: #faf3e3;
  text-shadow:
    0 2px 28px rgba(0,0,0,0.55),
    0 1px 4px rgba(0,0,0,0.45),
    0 0 1px rgba(0,0,0,0.5);
}
.cover h1 .ampersand {
  display: block;
  font-size: 0.55em;
  font-style: normal;
  color: #f0c9a6;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  margin: 0.5rem 0;
  font-family: var(--display);
  text-shadow: 0 1px 18px rgba(0,0,0,0.55);
}
.cover .dedication {
  font: 400 1.18rem/1.6 var(--serif);
  font-style: italic;
  color: #f4ead6;
  margin: 1.5rem 0 0;
  text-shadow: 0 1px 16px rgba(0,0,0,0.55), 0 0 1px rgba(0,0,0,0.5);
}
.cover .rule {
  display: block;
  width: 60px;
  height: 1px;
  background: #f0c9a6;
  margin: 2rem auto;
  opacity: 0.85;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}
.cover .scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font: 600 0.72rem / 1 var(--ui);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #f7ecd9;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ── COVER pg 2 — "my angel, my goddess" ──────────────────────────── */
.invocation {
  min-height: 80vh;
  display: grid; place-items: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.invocation .line {
  display: block;
  font: 300 clamp(2.4rem, 1.4rem + 3vw, 4.2rem) / 1.05 var(--display);
  font-style: italic;
  color: var(--ink);
  margin: 0.4rem 0;
  letter-spacing: -0.005em;
}
.invocation .line.alt { color: var(--rose); }

/* ── FULL-BLEED chapter break ─────────────────────────────────────── */
.chapter-break {
  position: relative;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
  padding: 0;
  display: grid;
  place-items: center;
}
.chapter-break img.media-slot {
  position: absolute !important;
  inset: 0;
  width: 100% !important; height: 100% !important;
}
.chapter-break::after {
  content: "";
  position: absolute; inset: 0;
  /* Stronger, more cinematic darken so the label is unmissable.
     Center vignette + top-to-bottom gradient. */
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0.20) 55%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(20,14,8,0.30) 0%, rgba(20,14,8,0.50) 100%);
  pointer-events: none;
}
.chapter-break .label {
  position: relative; z-index: 2;
  text-align: center;
  color: #fbf3e0;
  padding: 0 1.5rem;
}
.chapter-break .label .num {
  font: italic 400 1.05rem/1 var(--display);
  letter-spacing: 0.42em;
  opacity: 0.95;
  color: #f0c9a6;
  text-shadow: 0 1px 14px rgba(0,0,0,0.7);
  display: inline-block;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(240, 201, 166, 0.6);
  margin-bottom: 1.2rem;
}
.chapter-break .label .name {
  font: 400 clamp(2.6rem, 1.6rem + 3vw, 4.2rem) / 1.05 var(--display);
  font-style: italic;
  margin-top: 0.2rem;
  text-wrap: balance;
  color: #fbf3e0;
  letter-spacing: -0.005em;
  text-shadow:
    0 2px 32px rgba(0,0,0,0.6),
    0 1px 6px rgba(0,0,0,0.5),
    0 0 1px rgba(0,0,0,0.5);
}

/* ── POLAROID (margin-floating photo) ─────────────────────────────── */
.polaroid {
  background: #fbf6ea;
  padding: 0.6rem;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 14px 28px -14px rgba(42,32,24,0.35),
    0 4px 10px -4px rgba(42,32,24,0.18);
  border: 1px solid rgba(0,0,0,0.04);
}
.polaroid img.media-slot {
  display: block !important;
  width: 100% !important;
  height: auto;
  aspect-ratio: 1 / 1;
}
.polaroid.tilt-l { transform: rotate(-2.2deg); }
.polaroid.tilt-r { transform: rotate(2.6deg); }
.polaroid.tilt-xl { transform: rotate(-4deg); }

/* float polaroids in the margin on wide screens */
.margin-photo {
  margin: 2.5rem auto;
  width: min(260px, 80%);
}
@media (min-width: 1100px) {
  .margin-photo {
    position: absolute;
    width: 220px;
    margin: 0;
  }
  .margin-photo.left  { left: max(2rem, calc(50% - 580px)); }
  .margin-photo.right { right: max(2rem, calc(50% - 580px)); }
}

/* ── INLINE photo (in flow, next to text) ────────────────────────── */
.inline-photo {
  margin: 2rem auto;
  width: min(100%, 540px);
}
.inline-photo img.media-slot {
  display: block !important;
  width: 100% !important;
  height: auto;
  aspect-ratio: 4 / 3;
}
.inline-photo.tall img.media-slot { aspect-ratio: 3 / 4; }
.inline-photo.wide img.media-slot { aspect-ratio: 16 / 9; }

/* split row: photo + text side by side */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.photo-left > .text  { order: 2; }
  .split.photo-right > .text { order: 1; }
}

/* ── PLEDGE list (the big ❦ separated items) ─────────────────────── */
.pledge-group {
  margin: 3rem 0 4rem;
}
.pledge-group h3 {
  font-style: italic;
  font-size: clamp(1.5rem, 1rem + 1.4vw, 2.1rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.4rem;
  text-wrap: balance;
}
.pledge-group .group-num {
  font: italic 300 1.05rem/1 var(--display);
  color: var(--rose);
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 0.5rem;
}
.pledge-group .group-sub {
  font: italic 0.98rem/1.5 var(--serif);
  color: var(--ink-faint);
  margin: 0 0 2.4rem;
  max-width: 30rem;
}
.pledge {
  margin: 0 0 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
}
.pledge:last-child { border-bottom: 0; }
.pledge p { margin-bottom: 0; }
.pledge p + p { margin-top: 0.8rem; }

/* ── BLOCKQUOTE / pull ────────────────────────────────────────────── */
.pull {
  font: italic 300 clamp(1.5rem, 1.1rem + 1vw, 2rem) / 1.3 var(--display);
  color: var(--ink);
  text-align: center;
  max-width: 36rem;
  margin: 3rem auto;
  padding: 0 1rem;
  text-wrap: balance;
}
.pull::before, .pull::after {
  content: "";
  display: block;
  width: 40px; height: 1px;
  background: var(--rose);
  margin: 1.5rem auto;
  opacity: 0.6;
}

/* ── LOVE LIST ───────────────────────────────────────────────────── */
.love-section .subhead {
  max-width: 30rem;
}
.love-list {
  display: grid;
  gap: 1rem;
  margin: 3rem auto;
}
.love-card {
  padding: 1.1rem 0 1.15rem;
  border-top: 1px solid var(--rule-soft);
}
.love-card:last-child {
  border-bottom: 1px solid var(--rule-soft);
}
.love-card h3 {
  margin: 0 0 0.4rem;
  color: var(--rose);
  font: italic 400 clamp(1.35rem, 1rem + 0.8vw, 1.75rem)/1.15 var(--display);
}
.love-card p {
  margin: 0;
  color: var(--ink-soft);
}
@media (min-width: 860px) {
  .love-list {
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
  }
  .love-card:nth-last-child(2) {
    border-bottom: 1px solid var(--rule-soft);
  }
}

/* ── SIGNATURE / close ───────────────────────────────────────────── */
.signature {
  text-align: center;
  margin: 4rem auto 2rem;
}
.signature .by {
  font: 500 var(--t-eyebrow) / 1 var(--ui);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.6rem;
}
.signature .name {
  font: italic 300 clamp(2.8rem, 2rem + 2vw, 4rem) / 1 var(--display);
  color: var(--ink);
}
.signature .date {
  margin-top: 1.6rem;
  font: 500 var(--t-eyebrow)/1 var(--ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.signature .colophon {
  margin-top: 3rem;
  font: italic 0.85rem/1.6 var(--serif);
  color: var(--ink-faint);
  max-width: 32rem;
  margin-left: auto; margin-right: auto;
}

/* ── form pass-through (don't restyle the existing form behavior) ── */
.form-host {
  margin: 2.5rem auto 0;
  padding: 2rem;
  border: 1px solid var(--rule);
  background: rgba(255,250,240,0.45);
  border-radius: 4px;
}
.form-host textarea, .form-host input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin: 0.4rem 0 1rem;
  font: 400 1rem/1.5 var(--serif);
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  resize: vertical;
}
.form-host textarea:focus, .form-host input[type="text"]:focus {
  outline: none; border-bottom-color: var(--rose);
}
.form-host ol { padding-left: 1.2rem; counter-reset: line; list-style: none; margin: 0; }
.form-host ol li {
  counter-increment: line;
  position: relative;
  margin: 0 0 0.6rem;
  padding-left: 2rem;
}
.form-host ol li::before {
  content: counter(line) ".";
  position: absolute; left: 0; top: 0.6rem;
  font: italic 0.95rem/1 var(--display);
  color: var(--rose);
}
.form-host button {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 0.8rem 2.2rem;
  font: 500 0.78rem/1 var(--ui);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.form-host button:hover { background: var(--rose); border-color: var(--rose); }
.form-note {
  margin-top: 1.5rem;
  font: italic 0.92rem/1.55 var(--serif);
  color: var(--ink-faint);
}

/* ── small helpers ───────────────────────────────────────────────── */
.center { text-align: center; }
.spacer-lg { height: 6rem; }
.spacer-md { height: 3rem; }


/* ═══════════════════════════════════════════════════════════════════
   PRINT — render as a clean book
   ═══════════════════════════════════════════════════════════════════ */
@media print {
  @page { size: A5; margin: 18mm 16mm; }
  body { background: white; color: black; font-size: 11pt; line-height: 1.5; }
  .grain, .progress, .toc, .ambient, .cover-photo, .chapter-break, .scroll-hint { display: none !important; }
  .cover { min-height: auto; padding: 0; page-break-after: always; }
  .section { padding: 1rem 0; page-break-inside: avoid; }
  .pledge-group { page-break-inside: avoid; }
  .pledge { page-break-inside: avoid; }
  h2, h3 { page-break-after: avoid; }
  .polaroid, .inline-photo { display: none; }
  .ornament { color: #555; }
  a { color: black; text-decoration: none; }
}


/* Auth shell */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: radial-gradient(circle at 50% 0%, rgba(255,250,240,0.9), transparent 42%), var(--paper); }
.auth-panel { width: min(100%, 420px); border: 1px solid var(--rule); background: rgba(251,246,234,0.72); box-shadow: 0 24px 90px -58px rgba(42,32,24,0.5); padding: clamp(2rem, 6vw, 3rem); text-align: center; }
.auth-panel h1 { margin: 0; font: italic 400 clamp(2.4rem, 10vw, 4.4rem)/0.95 var(--display); color: var(--ink); letter-spacing: 0; }
.auth-panel .auth-kicker { font: 600 0.72rem/1 var(--ui); letter-spacing: 0.34em; text-transform: uppercase; color: var(--rose); margin-bottom: 1.1rem; }
.auth-panel p { color: var(--ink-soft); margin: 1.3rem auto 1.8rem; max-width: 20rem; }
.auth-field { text-align: left; display: grid; gap: 0.45rem; margin-bottom: 1rem; font: 500 0.76rem/1 var(--ui); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.auth-field input { width: 100%; border: 1px solid var(--rule); background: rgba(255,250,240,0.78); color: var(--ink); padding: 0.85rem 0.95rem; font: 400 1rem/1.3 var(--ui); letter-spacing: 0; text-transform: none; border-radius: 4px; }
.auth-field input:focus { outline: 2px solid rgba(164, 85, 64, 0.22); border-color: var(--rose); }
.auth-button, .signout-button { appearance: none; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 0.85rem 1.4rem; font: 600 0.74rem/1 var(--ui); letter-spacing: 0.22em; text-transform: uppercase; border-radius: 999px; cursor: pointer; }
.auth-button { width: 100%; margin-top: 0.5rem; }
.auth-button:disabled { opacity: 0.55; cursor: wait; }
.auth-status { min-height: 1.4rem; margin: 1rem 0 0; color: oklch(0.45 0.13 25); font: 500 0.84rem/1.45 var(--ui); }
.signout-button { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 90; background: rgba(244,237,224,0.9); color: var(--ink); border-color: var(--rule); backdrop-filter: blur(8px); }
img.media-slot { display: block; width: 100%; height: 100%; object-fit: cover; background: rgba(42,32,24,0.08); }
.cover-photo img.media-slot { width: 100% !important; height: 100% !important; }
.chapter-break img.media-slot { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
.polaroid img.media-slot { width: 100% !important; height: auto; aspect-ratio: 1 / 1; }
.inline-photo img.media-slot { width: 100% !important; height: auto; aspect-ratio: 4 / 3; }
.inline-photo.tall img.media-slot { aspect-ratio: 3 / 4; }
.inline-photo.wide img.media-slot { aspect-ratio: 16 / 9; }
.form-host button:disabled { opacity: 0.58; cursor: wait; }
.form-note.error { color: oklch(0.45 0.13 25); }
.hidden { display: none !important; }
@media print { .signout-button, .auth-shell { display: none !important; } }
