/* ============================================================
   LetterReady — “Paper & Ink” design system
   Cream paper, ink blue, a touch of sealing-wax red.
   No frameworks, no external fonts. System serif + sans stacks.
   ============================================================ */

:root {
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --bg: #f6f1e7;
  --surface: #fcf9f0;
  --ink: #16293f;
  --ink-hover: #1f3a57;
  --text: #2a3550;
  --muted: #5b6376;
  --line: rgba(22, 41, 63, 0.14);
  --line-strong: rgba(22, 41, 63, 0.28);

  /* Brand accent — the teal from the LetterReady wordmark */
  --accent: #37756a;
  --accent-deep: #2c6157;
  --accent-tint: rgba(55, 117, 106, 0.1);

  --paper-top: #fffdf6;
  --paper-bottom: #fbf5e6;
  --paper-text: #232f4e;
  --paper-shadow:
    0 1px 2px rgba(30, 42, 69, 0.12),
    0 12px 24px -10px rgba(30, 42, 69, 0.25),
    0 36px 70px -30px rgba(30, 42, 69, 0.3);

  --field-bg: #fdfbf2;
  --field-line: #d8cfba;

  --btn-primary-bg: var(--ink);
  --btn-primary-fg: #f6f1e7;
  --ok: #2f6b4f;

  --flash: #f3e3a0;

  --radius: 12px;
  --shadow-card: 0 1px 2px rgba(30, 42, 69, 0.05);
  --shadow-card-hover: 0 10px 24px -12px rgba(30, 42, 69, 0.24);

  --footer-bg: #14273b;
  --footer-fg: rgba(246, 241, 231, 0.85);
  --footer-dim: rgba(246, 241, 231, 0.55);
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.45em;
}

h1 { font-size: clamp(30px, 5.4vw, 44px); letter-spacing: -0.015em; }
h2 { font-size: clamp(22px, 3.4vw, 28px); letter-spacing: -0.01em; }
h3 { font-size: 19px; }

p { margin: 0 0 1em; }

a { color: var(--ink); text-decoration-color: rgba(30, 42, 69, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

::selection { background: rgba(55, 117, 106, 0.2); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 10px;
}

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 10px; }

/* ---------- Header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, #fff 8%);
}

.site-head .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  flex-wrap: wrap;
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand svg { display: block; }
.brand .wm span { color: var(--accent); }

.site-nav { display: flex; gap: clamp(10px, 2.4vw, 26px); flex-wrap: wrap; }
.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 2px;
}
.site-nav a:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav a[aria-current='true'] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- Entrance ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
main > * { animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
/* .gen hosts the mobile fixed action bar. A filled transform animation makes
   the ancestor a containing block for position:fixed in Chromium, which would
   pin the bar to the page instead of the viewport — so this section only fades. */
main > .gen { animation-name: fadeIn; }
main > :nth-child(2) { animation-delay: 0.05s; }
main > :nth-child(3) { animation-delay: 0.1s; }
main > :nth-child(4) { animation-delay: 0.15s; }
main > :nth-child(5) { animation-delay: 0.2s; }
main > :nth-child(6) { animation-delay: 0.24s; }
main > :nth-child(n + 7) { animation-delay: 0.28s; }

/* ---------- Hero / home ---------- */

.hero { padding: clamp(40px, 7vw, 76px) 0 clamp(24px, 4vw, 40px); }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.06; max-width: 15ch; }
.hero .sub { font-size: clamp(16px, 2.2vw, 18.5px); color: var(--muted); max-width: 58ch; }

.search-form { position: relative; max-width: 620px; margin-top: 26px; }
.search-form svg {
  position: absolute;
  left: 17px;
  top: 50%;
  translate: 0 -50%;
  pointer-events: none;
  opacity: 0.55;
}
.search-form input {
  width: 100%;
  font: 500 17px var(--sans);
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 13px;
  padding: 15px 18px 15px 48px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-form input::placeholder { color: var(--muted); opacity: 0.75; }
.search-form input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3.5px rgba(30, 42, 69, 0.12);
}

.search-hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.search-hint button {
  font: inherit; color: var(--ink); background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

#search-results { padding-block: 8px 40px; }
.results-count { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--surface);
  max-width: 640px;
}
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.empty-state a { font-weight: 600; }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
/* Category cards: 2×2 on desktop instead of an orphaned 3+1 row. */
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); }

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--line-strong);
}
.card h3 { margin-bottom: 5px; font-size: 18px; }
.card .arrow { color: var(--accent); font-family: var(--serif); }
.card p { font-size: 14px; color: var(--muted); margin: 0; }
.card .count {
  display: inline-block;
  margin-top: 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.card .chip {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px 9px;
}

.section { padding-block: clamp(26px, 4vw, 44px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 14px; font-weight: 600; }

/* Why-a-generator strip */
.why { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 86%, #fff 14%); }
.why .grid-3 { gap: clamp(16px, 3vw, 34px); }
.why h3 { font-size: 17.5px; }
.why p { font-size: 14.5px; color: var(--muted); margin: 0; }
.why .num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.privacy-note {
  font-size: 13.5px;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  max-width: 62ch;
}

/* ---------- Breadcrumb ---------- */

.crumbs { font-size: 12.5px; color: var(--muted); padding-top: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.letter-head { padding-top: 10px; }
.lede { font-size: 16.5px; color: var(--muted); max-width: 74ch; }

/* ---------- Generator ---------- */

.gen {
  display: grid;
  grid-template-columns: minmax(280px, 370px) 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding-block: clamp(20px, 3vw, 36px);
}

.gen-form { display: grid; gap: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 5px;
}
.field input {
  width: 100%;
  font: 400 16px var(--sans);
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--field-line);
  border-radius: 9px;
  padding: 10px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: var(--muted); opacity: 0.6; }
.field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(30, 42, 69, 0.12);
}

.form-note { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }

/* ---------- The paper ---------- */

.paper-col { min-width: 0; }
.paper-wrap { position: relative; }

.paper {
  position: relative;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.75;
  color: var(--paper-text);
  background: linear-gradient(180deg, var(--paper-top) 0%, var(--paper-bottom) 100%);
  border: 1px solid rgba(30, 42, 69, 0.08);
  border-radius: 4px 4px 7px 4px;
  padding: clamp(28px, 4.5vw, 52px) clamp(24px, 4.5vw, 56px);
  box-shadow: var(--paper-shadow);
  overflow-wrap: break-word;
}
.paper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.38 0 0 0 0 0.3 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.paper::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58px;
  height: 58px;
  border-radius: 0 0 7px 0;
  pointer-events: none;
  background: linear-gradient(315deg, rgba(30, 42, 69, 0.13) 0%, rgba(30, 42, 69, 0.04) 30%, transparent 55%);
}
.paper p { margin: 0 0 1.15em; }
.paper p:last-child { margin-bottom: 0; }

@media (min-width: 880px) {
  .paper { transform: rotate(0.25deg); }
}

.seal {
  position: absolute;
  top: -15px;
  right: 20px;
  z-index: 2;
  rotate: -8deg;
  filter: drop-shadow(0 2px 3px rgba(30, 42, 69, 0.35));
}

/* Fill-in slots on the paper */
mark.slot {
  font: inherit;
  color: inherit;
  background: transparent;
  border-radius: 3px;
  padding: 0 1px;
}
mark.slot.is-empty {
  background: var(--accent-tint);
  color: var(--accent-deep);
  border-bottom: 1px dashed rgba(44, 97, 87, 0.55);
}
@keyframes slotFlash {
  0% { background-color: var(--flash); }
  100% { background-color: transparent; }
}
mark.slot.flash { animation: slotFlash 1.1s ease-out; }

/* ---------- Action buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 14.5px var(--sans);
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.06s, box-shadow 0.15s;
}
.btn svg { flex: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-primary:hover { background: var(--ink-hover); }

.btn-ghost { border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(30, 42, 69, 0.06); border-color: var(--ink); }

.btn.ok { background: var(--ok) !important; border-color: var(--ok); color: #fff !important; }

/* ---------- Partner (affiliate) box ---------- */

.partner {
  position: relative;
  border: 1px dashed rgba(55, 117, 106, 0.45);
  background: rgba(55, 117, 106, 0.05);
  border-radius: var(--radius);
  padding: 15px 17px;
  margin-top: 18px;
  font-size: 14px;
}
.partner .eyebrow { margin-bottom: 4px; }
.partner p { margin: 0 0 4px; color: var(--text); }
.partner a { font-weight: 700; }
.partner .disclosure {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  position: absolute;
  top: 10px;
  right: 14px;
}

/* ---------- Tips & FAQ ---------- */

.tips ol { list-style: none; margin: 0; padding: 0; counter-reset: tip; display: grid; gap: 12px; }
.tips li {
  counter-increment: tip;
  position: relative;
  padding-left: 44px;
  font-size: 15px;
  color: var(--text);
  max-width: 78ch;
}
.tips li::before {
  content: counter(tip);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 14px var(--serif);
  color: var(--accent-deep);
  background: var(--accent-tint);
  border: 1px solid rgba(55, 117, 106, 0.35);
}

.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  cursor: pointer;
  padding: 15px 2px;
  font-weight: 650;
  font-size: 15.5px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font: 400 22px/1 var(--serif);
  color: var(--accent);
  flex: none;
  translate: 0 2px;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); font-size: 14.5px; padding: 0 2px 16px; margin: 0; max-width: 72ch; }

/* ---------- Category & footer ---------- */

.cat-cross { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-cross a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 7px 15px;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}
.cat-cross a:hover { background: rgba(30, 42, 69, 0.06); border-color: var(--ink); }

.site-foot {
  margin-top: clamp(36px, 6vw, 64px);
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: clamp(36px, 5vw, 54px) 0 30px;
  font-size: 13.5px;
}
.site-foot .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 28px 22px;
}
.site-foot h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--footer-dim);
  margin: 0 0 10px;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { line-height: 2; }
.site-foot a { color: var(--footer-fg); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-color: rgba(246, 241, 231, 0.5); }
.site-foot .bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 241, 231, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--footer-dim);
  font-size: 12.5px;
}
.site-foot .bottom a {
  color: var(--footer-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(246, 241, 231, 0.45);
}

/* ---------- Prose pages (about / privacy / 404) ---------- */

.prose { max-width: 720px; padding-block: 12px 30px; }
.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text); font-size: 15.5px; }
.prose ul { padding-left: 22px; }

.err-hero { text-align: center; padding: clamp(50px, 9vw, 110px) 0 30px; }
.err-hero h1 { font-size: clamp(38px, 7vw, 64px); }
.err-hero p { color: var(--muted); max-width: 46ch; margin-inline: auto; }

/* ---------- Mobile ---------- */

@media (max-width: 879px) {
  .gen { grid-template-columns: 1fr; }

  body.page-letter { padding-bottom: 86px; }

  .page-letter .actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    margin: 0;
    padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    flex-wrap: nowrap;
  }
  .page-letter .actions .btn-primary { flex: 1; }
  .page-letter .actions .btn-ghost { padding-inline: 12px; }
  .page-letter .actions .lbl { display: none; }

  .seal { top: -12px; right: 12px; scale: 0.85; }
}

/* ---------- Dark mode: the midnight study ---------- */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151d;
    --surface: #1a202c;
    --ink: #e7e2d4;
    --ink-hover: #f4efe1;
    --text: #d5d1c4;
    --muted: #9ba0ac;
    --line: rgba(231, 226, 212, 0.13);
    --line-strong: rgba(231, 226, 212, 0.26);

    --accent: #4e9488;
    --accent-deep: #5fa396; /* 5.5:1 on dark card surfaces — WCAG AA for small text */
    --accent-tint: rgba(78, 148, 136, 0.16);

    /* the page stays lit — a sheet of paper under a desk lamp */
    --paper-top: #faf4e3;
    --paper-bottom: #efe7d2;
    --paper-text: #22304c;
    --paper-shadow:
      0 2px 4px rgba(0, 0, 0, 0.5),
      0 18px 40px -12px rgba(0, 0, 0, 0.6),
      0 0 90px rgba(255, 176, 88, 0.05);

    --field-bg: #151a25;
    --field-line: #2c3446;

    --btn-primary-bg: #2e3d63;
    --btn-primary-fg: #f0ebdd;
    --ink-hover: #394b7a;

    --flash: rgba(228, 197, 116, 0.55);

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 12px 26px -12px rgba(0, 0, 0, 0.55);

    --footer-bg: #0e1119;
  }

  body {
    background:
      radial-gradient(1100px 540px at 50% -8%, #1d2434 0%, rgba(18, 21, 29, 0) 62%),
      var(--bg);
  }

  .site-head { background: rgba(18, 21, 29, 0.6); }
  .why { background: rgba(26, 32, 44, 0.45); }

  .paper { border-color: rgba(0, 0, 0, 0.35); }
  /* slots sit on the (still light) paper — keep the deep teal there */
  mark.slot.is-empty {
    background: rgba(44, 97, 87, 0.12);
    color: #2c6157;
    border-bottom-color: rgba(44, 97, 87, 0.5);
  }

  .search-form input:focus { box-shadow: 0 0 0 3.5px rgba(231, 226, 212, 0.14); }
  .field input:focus { box-shadow: 0 0 0 3px rgba(231, 226, 212, 0.14); }

  .btn-ghost:hover { background: rgba(231, 226, 212, 0.08); }
  .cat-cross a:hover { background: rgba(231, 226, 212, 0.08); }

  .partner { background: rgba(78, 148, 136, 0.09); border-color: rgba(78, 148, 136, 0.4); }

  .page-letter .actions { background: rgba(18, 21, 29, 0.85); }

  .btn-primary { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
}

/* ---------- Print: the paper, and only the paper ---------- */

@media print {
  body * { visibility: hidden; }
  .paper, .paper * { visibility: visible; }
  .paper {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    background: #fff;
    color: #000;
    font-size: 12pt;
    line-height: 1.6;
  }
  .paper::before, .paper::after { display: none; }
  .seal { display: none; }
  mark.slot.is-empty {
    background: none;
    color: #444;
    border-bottom: 1px solid #999;
  }
  @page { margin: 1in; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
