/* Kin & Keep: the family records office.
   Tokens follow BRIEF.md section 4 exactly. Product objects (covers, pages)
   keep their physical colors in both themes; only --brass follows the theme. */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/LibreCaslonText-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/LibreCaslonText-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/LibreCaslonText-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/AtkinsonHyperlegible-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/AtkinsonHyperlegible-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/AtkinsonHyperlegible-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/AtkinsonHyperlegible-BoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --paper: #F7F8F4;
  --surface: #FFFFFF;
  --ledger: #EAF1E6;
  --rule: #C3D2BE;
  --ink: #1B2420;
  --ink-soft: #46524B;
  --evergreen: #1F4A3D;
  --evergreen-ink: #FFFFFF;
  --manila: #E9D8AA;
  --manila-deep: #C7AA66;
  --stamp: #A3302A;
  --brass: #B08A45;

  /* derived, not brand tokens */
  --evergreen-hover: #163A2F;
  --deep: #1F4A3D;
  --deep-ink: #FFFFFF;
  --deep-soft: #D5E4DB;
  --deep-rule: rgba(255, 255, 255, .22);
  --error: #9B2C24;
  --logo-light: block;
  --logo-dark: none;
  --book-shadow: rgba(16, 28, 22, .42);
  --stamp-blend: multiply;
  --object-dim: 1;

  --font-display: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-hero: clamp(2.75rem, 1.55rem + 5.1vw, 5.25rem);
  --fs-h1: clamp(2.375rem, 1.75rem + 2.7vw, 3.75rem);
  --fs-h2: clamp(1.875rem, 1.45rem + 1.8vw, 2.75rem);
  --fs-h3: clamp(1.3125rem, 1.2rem + .45vw, 1.5625rem);
  --fs-lede: clamp(1.1875rem, 1.1rem + .45vw, 1.4375rem);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius: 4px;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #111714;
    --surface: #18201C;
    --ledger: #1A2520;
    --rule: #2C3A33;
    --ink: #E8EEE9;
    --ink-soft: #AEBAB3;
    --evergreen: #86C3A8;
    --evergreen-ink: #0E1A15;
    --manila: #4A4026;
    --manila-deep: #8C7A47;
    --stamp: #E27A70;
    --brass: #C9A563;

    --evergreen-hover: #A3D4BE;
    --deep: #18201C;
    --deep-ink: #E8EEE9;
    --deep-soft: #AEBAB3;
    --deep-rule: #2C3A33;
    --error: #F2948B;
    --logo-light: none;
    --logo-dark: block;
    --book-shadow: rgba(0, 0, 0, .7);
    --stamp-blend: normal;
    --object-dim: .9;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111714;
  --surface: #18201C;
  --ledger: #1A2520;
  --rule: #2C3A33;
  --ink: #E8EEE9;
  --ink-soft: #AEBAB3;
  --evergreen: #86C3A8;
  --evergreen-ink: #0E1A15;
  --manila: #4A4026;
  --manila-deep: #8C7A47;
  --stamp: #E27A70;
  --brass: #C9A563;

  --evergreen-hover: #A3D4BE;
  --deep: #18201C;
  --deep-ink: #E8EEE9;
  --deep-soft: #AEBAB3;
  --deep-rule: #2C3A33;
  --error: #F2948B;
  --logo-light: none;
  --logo-dark: block;
  --book-shadow: rgba(0, 0, 0, .7);
  --stamp-blend: normal;
  --object-dim: .9;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; color: var(--evergreen); line-height: 1.14; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.01em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.005em; }
h3 { font-size: var(--fs-h3); }
h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.1875rem; color: var(--ink); }
p, ul, ol, dl { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: .35em; }
strong, b { font-weight: 700; }
a { color: var(--evergreen); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--evergreen); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
small { font-size: 1.0625rem; }
::selection { background: var(--manila); color: var(--ink); }

.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--evergreen); color: var(--evergreen-ink); padding: .75rem 1rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .875rem; }

/* ------------------------------------------------------------------ layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 760px); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--rule { border-top: 1px solid var(--rule); }
.section--ledger { background: var(--ledger); border-block: 1px solid var(--rule); }
.section--deep { background: var(--deep); color: var(--deep-ink); border-block: 1px solid var(--deep-rule); }
.section--deep h2, .section--deep h3 { color: var(--deep-ink); }
.section--deep a:not(.btn) { color: var(--deep-ink); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--ink-soft); font-size: var(--fs-lede); line-height: 1.5; }
.section--deep .section__head p { color: var(--deep-soft); }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-soft); max-width: 40rem; }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--center { align-items: center; }
  .split__sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.cluster { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .65rem 1.35rem;
  border: 2px solid var(--evergreen); border-radius: var(--radius);
  background: var(--evergreen); color: var(--evergreen-ink);
  font: 700 1.0625rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--evergreen-hover); border-color: var(--evergreen-hover); }
.btn--quiet { background: transparent; color: var(--evergreen); }
.btn--quiet:hover { background: var(--ledger); color: var(--evergreen); border-color: var(--evergreen); }
.btn--lg { min-height: 56px; font-size: 1.125rem; padding-inline: 1.6rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.section--deep .btn { background: var(--deep-ink); border-color: var(--deep-ink); color: var(--deep); }
.section--deep .btn:hover { background: var(--deep-soft); border-color: var(--deep-soft); }
.section--deep .btn--quiet { background: transparent; color: var(--deep-ink); border-color: var(--deep-ink); }
.section--deep .btn--quiet:hover { background: rgba(255,255,255,.08); color: var(--deep-ink); }
.linkbtn { background: none; border: 0; padding: .25rem 0; min-height: 44px; font: inherit; font-size: 1.0625rem; color: var(--evergreen); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.linkbtn:hover { text-decoration-thickness: 2px; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; align-items: stretch; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; min-height: 44px; flex: none; }
.brand img { display: block; height: auto; }
.brand__lockup, .brand__wordmark { display: block; }
.brand__lockup img { width: 172px; }
.brand__wordmark { display: none; }
.brand__wordmark img { width: 124px; }
.logo-light { display: var(--logo-light) !important; }
.logo-dark { display: var(--logo-dark) !important; }
.nav { display: flex; align-items: stretch; }
.nav__list { display: flex; align-items: stretch; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; display: flex; }
.nav a {
  position: relative; isolation: isolate; display: flex; align-items: center;
  height: auto; padding: 0 .95rem; margin-bottom: -1px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.0625rem; white-space: nowrap;
}
.nav a:hover { color: var(--evergreen); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.nav a[aria-current="page"]::before {
  content: ""; position: absolute; inset: 15px 0 0; z-index: -1;
  background: var(--manila); border: 1.5px solid var(--manila-deep); border-bottom: 0;
  border-radius: 10px 10px 0 0; transform: perspective(40px) rotateX(3deg); transform-origin: 50% 100%;
}
.nav a[aria-current="page"]:hover { text-decoration: none; color: var(--ink); }
.cartlink {
  align-self: center; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  padding: .35rem .8rem; border: 1.5px solid var(--rule); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.0625rem; background: var(--surface);
}
.cartlink:hover { border-color: var(--evergreen); }
.cartlink__count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .35rem; border-radius: 99px; background: var(--ledger); color: var(--ink); font: 600 .875rem/1 var(--font-mono); }
.cartlink.has-items .cartlink__count { background: var(--evergreen); color: var(--evergreen-ink); }
.menu-btn {
  display: none; align-self: center; align-items: center; gap: .55rem; min-height: 44px; padding: .35rem .8rem;
  border: 1.5px solid var(--rule); border-radius: var(--radius); background: transparent; color: var(--ink);
  font: 700 1.0625rem/1 var(--font-body); cursor: pointer;
}
.menu-btn__bars { width: 18px; height: 12px; border-block: 2px solid currentColor; position: relative; }
.menu-btn__bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
@media (max-width: 1020px) {
  .nav a { padding: 0 .7rem; }
}
@media (max-width: 959px) {
  .site-header__inner { flex-wrap: wrap; align-items: center; min-height: 64px; gap: .6rem; }
  :root { --header-h: 64px; }
  .js .menu-btn { display: inline-flex; }
  .nav { order: 5; width: 100%; }
  .js .nav { display: none; }
  .js .site-header[data-open] .nav { display: block; padding-bottom: 1rem; }
  .nav__list { flex-wrap: wrap; align-items: stretch; }
  .js .nav__list { flex-direction: column; border-top: 1px solid var(--rule); }
  .js .nav__list li { display: block; }
  .js .nav a { height: 54px; margin: 0; border-bottom: 1px solid var(--rule); padding: 0 .25rem; width: 100%; }
  .js .nav a[aria-current="page"]::before { inset: 10px auto 10px -12px; width: 6px; border-radius: 0 4px 4px 0; transform: none; border: 0; background: var(--manila-deep); }
}
@media (max-width: 700px) {
  .site-header .brand__lockup { display: none; }
  .site-header .brand__wordmark { display: block; }
}

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--ledger); border-top: 1px solid var(--rule); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: 1.0625rem; }
.footer__top { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer__top { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.brand--footer .brand__lockup img { width: 210px; }
.footer__tag { font-family: var(--font-display); font-size: 1.375rem; color: var(--evergreen); margin: 1rem 0 .5rem; }
.footer__promise { color: var(--ink-soft); max-width: 30rem; }
.footer__nav { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.footer__h { font: 600 .875rem/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .75rem; }
.footer__nav ul { list-style: none; padding: 0; margin: 0; }
.footer__nav li { margin: 0; }
.footer__nav a { display: inline-block; padding: .3rem 0; color: var(--ink); text-decoration: none; }
.footer__nav a:hover { color: var(--evergreen); text-decoration: underline; }
.footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.footer__disclaimer { margin: 0 0 1.25rem; color: var(--ink-soft); max-width: 62rem; }
.footer__base { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; color: var(--ink-soft); }
.footer__base p { margin: 0; max-width: 46rem; }
.theme { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; border: 0; margin: 0; padding: 0; }
.theme legend { float: left; margin-right: .5rem; font: 600 .875rem/2.75 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.theme label { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; cursor: pointer; color: var(--ink); }
.theme input { accent-color: var(--evergreen); width: 1.1rem; height: 1.1rem; margin: 0; }

/* ------------------------------------------------------------------ manila tab */
.tab {
  position: relative; isolation: isolate; display: inline-flex; align-items: center;
  padding: .35rem 1.1rem .3rem; color: var(--ink);
  font: 600 .875rem/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
}
.tab::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--manila); border: 1.5px solid var(--manila-deep); border-bottom: 0;
  border-radius: 9px 9px 0 0; transform: perspective(40px) rotateX(3deg); transform-origin: 50% 100%;
}
.tabbed { border-top: 1.5px solid var(--manila-deep); }
.tag {
  display: inline-block; padding: .2rem .5rem; border: 1px solid var(--rule); border-radius: 3px;
  font: 600 .8125rem/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); background: var(--surface);
}

/* ------------------------------------------------------------------ stamp (max one per view) */
.stamp {
  display: inline-flex; flex-direction: column; align-items: center; gap: .1rem;
  padding: .55rem .95rem .5rem; color: var(--stamp);
  border: 3px solid var(--stamp); border-radius: 9px; outline: 1.5px solid var(--stamp); outline-offset: -8px;
  font-family: var(--font-mono); font-weight: 600; text-transform: uppercase; line-height: 1.1;
  transform: rotate(-8deg); mix-blend-mode: var(--stamp-blend);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -4.2 3.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -4.2 3.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.stamp__small { font-size: .75rem; letter-spacing: .24em; padding-top: .15rem; }
.stamp__big { font-size: 1.125rem; letter-spacing: .12em; }

/* ------------------------------------------------------------------ the book (pure-CSS cover)
   Proportions follow the printed covers: holder in the upper fifth, seal low, KIN & KEEP at the foot. */
.book {
  --book-w: 260px;
  --cloth: #1F4A3D;
  --label-ink: #1F4A3D;
  --sub-ink: #EDE5CC;
  --mark-ink: #C9A563;
  --linen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath d='M0 .5h4M0 2.5h4' stroke='%23fff' stroke-opacity='.07'/%3E%3Cpath d='M.5 0v4M2.5 0v4' stroke='%23000' stroke-opacity='.11'/%3E%3C/svg%3E");
  position: relative; isolation: isolate; flex: none;
  width: min(var(--book-w), 100%); aspect-ratio: 8.5 / 11;
  container-type: inline-size; margin-inline: auto;
  filter: brightness(var(--object-dim));
}
.book--sm { --book-w: 150px; }
.book--md { --book-w: 250px; }
.book--lg { --book-w: 320px; }
.book--xl { --book-w: 380px; }
.book--fill { --book-w: 100%; }
.book--ns { --cloth: #2B3D4F; --label-ink: #2B3D4F; }
.book--ess { --cloth: #E9D8AA; --label-ink: #1F4A3D; --sub-ink: #1F4A3D; --mark-ink: #7A6838; }
.book__pages {
  position: absolute; inset: 0; z-index: -1; border-radius: .6cqw 1.2cqw 1.2cqw .6cqw;
  background: #EFEBE0; transform: translate(.9cqw, 1.1cqw);
  box-shadow: 0 0 0 .2cqw #E1DCCD, 0 3cqw 5cqw -1.5cqw var(--book-shadow), 0 .6cqw 1.2cqw var(--book-shadow);
}
.book__cover {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: .6cqw 1.2cqw 1.2cqw .6cqw;
  background-color: var(--cloth); background-image: var(--linen);
  box-shadow: inset .4cqw 0 0 rgba(255,255,255,.06), inset -.3cqw -.3cqw 0 rgba(0,0,0,.18);
}
.book__coil {
  position: absolute; top: 2cqw; bottom: 2cqw; left: -2.6cqw; width: 9cqw; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 31'%3E%3Crect x='51' y='11' width='10' height='9' rx='4.5' fill='%23000' fill-opacity='.7'/%3E%3Cpath d='M56 15.5C46 2 18 2 7 21' fill='none' stroke='%23151817' stroke-width='5.4' stroke-linecap='round'/%3E%3Cpath d='M54 13C45 4.5 22 4 12 17' fill='none' stroke='%23727A75' stroke-width='1.2' stroke-linecap='round' stroke-opacity='.9'/%3E%3C/svg%3E");
  background-size: 9cqw 3.1cqw; background-repeat: repeat-y;
}
.book__holder {
  position: absolute; left: 52.5%; top: 17.5%; width: 62cqw; height: 23.5cqw; transform: translateX(-50%);
  background: var(--brass); border-radius: 1.1cqw;
  box-shadow:
    inset 0 .45cqw 0 rgba(255,255,255,.36), inset 0 -.5cqw 0 rgba(0,0,0,.26),
    inset .4cqw 0 0 rgba(255,255,255,.14), inset -.4cqw 0 0 rgba(0,0,0,.14),
    0 .9cqw 1.5cqw rgba(0,0,0,.4);
}
.book__holder::before, .book__holder::after {
  content: ""; position: absolute; top: 50%; width: 2.2cqw; height: 2.2cqw; margin-top: -1.1cqw; border-radius: 50%;
  background: var(--brass); box-shadow: inset .3cqw .3cqw 0 rgba(255,255,255,.42), inset -.3cqw -.3cqw 0 rgba(0,0,0,.34), 0 0 0 .18cqw rgba(0,0,0,.18);
}
.book__holder::before { left: 1.25cqw; }
.book__holder::after { right: 1.25cqw; }
.book__card {
  position: absolute; inset: 2.1cqw 4.7cqw; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2cqw;
  padding: 0 1.6cqw; background: #F6F0DF; color: var(--label-ink); text-align: center; border-radius: .25cqw;
  box-shadow: inset 0 .7cqw .6cqw -.35cqw rgba(0,0,0,.3), inset 0 -.25cqw .35cqw -.2cqw rgba(0,0,0,.12);
}
.book__line1 { display: block; max-width: 100%; font-family: var(--font-display); font-size: calc(7.6cqw * var(--fit, 1)); line-height: 1.08; white-space: nowrap; }
.book__line1--solo { font-size: calc(4.9cqw * var(--fit, 1)); }
.book__line2 { display: block; font-family: var(--font-display); font-style: italic; font-size: 4.5cqw; line-height: 1.15; }
.book__sub { position: absolute; left: 52.5%; top: 44%; width: 84cqw; transform: translateX(-50%); text-align: center; color: var(--sub-ink); font: italic 400 3.4cqw/1.2 var(--font-display); }
.book__seal {
  position: absolute; left: 52.5%; top: 70%; width: 13cqw; aspect-ratio: 1; transform: translateX(-50%);
  background: url("../img/logo/kk-seal-white.svg") center / contain no-repeat; opacity: .9;
}
.book__seal--green { background-image: url("../img/logo/kk-seal-evergreen.svg"); }
.book__mark {
  position: absolute; left: 5cqw; right: 0; bottom: 7%;
  color: var(--mark-ink); text-align: center; text-transform: uppercase;
  font: 500 2.5cqw/1 var(--font-mono); letter-spacing: .42em;
}
/* Essentials: saddle-stitched, no coil */
.book--ess .book__cover, .book--ess .book__pages { border-radius: .5cqw; }
.book--ess .book__pages { transform: translate(.5cqw, .6cqw); }
.book--ess .book__line1 { font-size: 7cqw; }
.book--ess .book__line2 { font-size: 5cqw; }
.book__staples::before, .book__staples::after {
  content: ""; position: absolute; left: 1.4cqw; width: .8cqw; height: 8cqw; border-radius: .4cqw;
  background: #A2A9A4; box-shadow: inset -.2cqw 0 0 rgba(0,0,0,.25);
}
.book__staples::before { top: 24%; }
.book__staples::after { bottom: 24%; }
/* Pro Edition: presented-by band */
.book--pro .book__seal { top: 50%; width: 11cqw; }
.book__band {
  position: absolute; left: 10cqw; right: 5cqw; bottom: 13%; height: 15cqw;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.3cqw;
  background: #F6F0DF; border-radius: .5cqw; box-shadow: 0 .4cqw .8cqw rgba(0,0,0,.25);
}
.book__presented { font: 500 2.2cqw/1 var(--font-mono); letter-spacing: .3em; text-transform: uppercase; color: #46524B; }
.firmlogo { display: inline-flex; align-items: center; gap: 1.5cqw; color: #23364A; }
.firmlogo__mark { width: 5.2cqw; height: 5.2cqw; border-radius: 50%; border: .7cqw solid currentColor; position: relative; }
.firmlogo__mark::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 26%; height: .7cqw; background: currentColor; box-shadow: 0 -1.4cqw 0 currentColor; }
.firmlogo__name { font: 700 3.8cqw/1 var(--font-body); letter-spacing: .01em; }
.book--pro .book__mark { bottom: 4.5%; font-size: 2.2cqw; }
/* Coming soon / not yet designed */
.book--soon .book__cover, .book--blank .book__cover { display: grid; place-items: center; }
.book__soonlabel { display: grid; justify-items: center; gap: .5cqw; padding: 6cqw 8cqw; text-align: center; border: .5cqw solid rgba(245,238,218,.65); color: #F5EEDA; font-family: var(--font-display); }
.book__soonlabel span:first-child { font-size: 7cqw; font-style: italic; }
.book__soonlabel span:first-child:empty { display: none; }
.book__soonlabel span:last-child { font-size: 9.5cqw; line-height: 1.1; }
.book--blank .book__cover { background: transparent; border: .9cqw dashed var(--rule); box-shadow: none; }
.book--blank .book__pages { display: none; }
.book--blank .book__soonlabel { color: var(--ink-soft); border-color: transparent; }

/* Real mockup images */
.mockpic { display: block; }
.mock { display: block; width: 100%; height: auto; filter: brightness(var(--object-dim)); }
.mock--cutout { width: auto; max-width: 100%; max-height: var(--mock-h, 36rem); margin-inline: auto; }
.mock--scene { border-radius: var(--radius); }
.stage:has(.mock--scene) { padding: 0; background: transparent; border: 0; }
.stage .mock--cutout { --mock-h: 34rem; }
.fcard__art:has(.mock--scene), .pcard__art:has(.mock--scene) { padding: 0; overflow: hidden; }
.fcard__art .mockpic--scene, .pcard__art .mockpic--scene { width: 100%; height: 100%; }
.fcard__art .mock--scene, .pcard__art .mock--scene { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.fcard__art .mock--cutout { --mock-h: 13rem; }
.pcard__art .mock--cutout { --mock-h: 15rem; }
.pros-mini__art .mock--cutout { --mock-h: 26rem; }
.lineup-wrap { margin: 1.5rem 0 1.75rem; }
.lineup-wrap .mock--scene { width: 100%; max-height: 22rem; object-fit: cover; object-position: 50% 62%; }
.mockpic--scene .mock.wide, .mock.wide { width: 100%; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 3vw, 2.5rem); padding: clamp(1.5rem, 4vw, 3rem); background: var(--ledger); border: 1px solid var(--rule); border-radius: var(--radius); }
.trio .book { width: 100%; }

/* A pair of books */
.bookset { position: relative; width: min(var(--set-w, 340px), 100%); aspect-ratio: 1 / 1.18; margin-inline: auto; }
.bookset--sm { --set-w: 172px; }
.bookset--md { --set-w: 300px; }
.bookset--lg { --set-w: 400px; }
.bookset .book { position: absolute; width: 66%; margin: 0; }
.bookset__back { right: 1%; top: 0; transform: rotate(3deg); }
.bookset__front { left: 2%; bottom: 1.5%; transform: rotate(-2deg); }

/* Stage: a calm ledger surface for product objects */
.stage { display: grid; place-items: center; padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem); background: var(--ledger); border: 1px solid var(--rule); border-radius: var(--radius); }
.mock { width: 100%; height: auto; border-radius: var(--radius); }

/* ------------------------------------------------------------------ open-book spread */
.spread {
  position: relative; width: min(100%, 760px); aspect-ratio: 17.6 / 11; margin-inline: auto;
  container-type: inline-size; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.6%;
  filter: brightness(var(--object-dim)) drop-shadow(0 10px 14px var(--book-shadow));
  color: #1B2420; font-family: var(--font-body);
}
.spread__page { position: relative; background: #FFFFFF; padding: 3.6cqw 3.2cqw 3cqw 3.6cqw; overflow: hidden; border: 1px solid #DCE3D8; }
.spread__page--l { border-radius: 1cqw 0 0 1cqw; }
.spread__page--r { border-radius: 0 1cqw 1cqw 0; padding-left: 4cqw; }
.spread__coil {
  position: absolute; left: 50%; top: 2cqw; bottom: 2cqw; width: 6cqw; transform: translateX(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 26'%3E%3Crect x='6' y='9' width='8' height='7' rx='3.5' fill='%23000' fill-opacity='.55'/%3E%3Crect x='46' y='9' width='8' height='7' rx='3.5' fill='%23000' fill-opacity='.55'/%3E%3Cpath d='M10 12.5C18 1 42 1 50 12.5' fill='none' stroke='%232B302D' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M12 10C20 3 40 3 48 10' fill='none' stroke='%23B9C1BC' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 6cqw 2.6cqw; background-repeat: repeat-y;
}
.sp-tab { position: absolute; top: 0; right: 4cqw; padding: 1cqw 2.2cqw; background: #E9D8AA; border: 1px solid #C7AA66; border-top: 0; border-radius: 0 0 .8cqw .8cqw; font: 600 1.45cqw/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; }
.sp-num { font: 400 13cqw/1 var(--font-display); color: #1F4A3D; margin-top: 3cqw; }
.sp-title { font: 400 4.6cqw/1.1 var(--font-display); color: #1F4A3D; margin: .4cqw 0 1.6cqw; }
.sp-intro { font-size: 1.55cqw; line-height: 1.45; color: #46524B; margin: 0 0 1.8cqw; max-width: 34cqw; }
.sp-list { list-style: none; padding: 0; margin: 0; font-size: 1.5cqw; line-height: 1.35; border-top: 1px solid #C3D2BE; }
.sp-list li { margin: 0; padding: .55cqw 0; border-bottom: 1px solid #DCE3D8; }
.sp-time { position: absolute; left: 3.6cqw; bottom: 2.6cqw; font: 500 1.3cqw/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: #46524B; }
.sp-head { font: 400 2.5cqw/1.15 var(--font-display); color: #1F4A3D; padding-bottom: 1.2cqw; border-bottom: 2px solid #1F4A3D; margin-bottom: 1.6cqw; }
.sp-record { border: 1px solid #C3D2BE; border-radius: .5cqw; padding: 1.2cqw; margin-bottom: 1.6cqw; }
.sp-rlabel { font: 600 1.2cqw/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: #46524B; margin-bottom: 1cqw; }
.sp-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 1cqw; margin-bottom: 1cqw; }
.sp-f { display: grid; gap: .4cqw; }
.sp-f span { font: 500 1.15cqw/1.1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #46524B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-f i { display: block; min-height: 3cqw; padding: .55cqw .8cqw; background: #EEF4EA; border-bottom: 1px solid #AFC0AA; font-style: normal; font-size: 1.5cqw; line-height: 1.3; color: #1B2420; }
.sp-f--w3 { grid-column: span 3; } .sp-f--w4 { grid-column: span 4; } .sp-f--w6 { grid-column: span 6; } .sp-f--w7 { grid-column: span 7; } .sp-f--w10 { grid-column: span 10; }
.sp-foot { position: absolute; left: 4cqw; right: 3cqw; bottom: 2.4cqw; font-size: 1.35cqw; color: #46524B; border-top: 1px solid #DCE3D8; padding-top: 1cqw; }

/* One-Pager sheets */
.sheets { position: relative; width: min(100%, 360px); aspect-ratio: 1.12 / 1; margin-inline: auto; container-type: inline-size; filter: brightness(var(--object-dim)); }
.sheet {
  position: absolute; width: 64%; aspect-ratio: 8.5 / 11; background: #FFFFFF; color: #1B2420; padding: 5cqw 4.5cqw;
  border: 1px solid #DCE3D8; border-radius: .8cqw; box-shadow: 0 2cqw 3.5cqw -1.5cqw var(--book-shadow);
  display: flex; flex-direction: column; gap: 1cqw;
}
.sheet:first-child { left: 0; top: 0; transform: rotate(-3deg); z-index: 1; }
.sheet--back { right: 0; bottom: 0; transform: rotate(3deg); }
.sheet__title { font: 400 4.4cqw/1.1 var(--font-display); color: #1F4A3D; padding-bottom: 1.6cqw; border-bottom: 1.5px solid #1F4A3D; margin-bottom: 1cqw; }
.sheet__h { font: 600 2.1cqw/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #46524B; margin-top: 1.2cqw; }
.sheet__f { height: 3.4cqw; background: #EEF4EA; border-bottom: 1px solid #AFC0AA; }
.sheet__lines { display: grid; gap: 1.5cqw; margin-top: 1cqw; }
.sheet__line { display: grid; grid-template-columns: 3fr 5fr; gap: 1.2cqw; }
.sheet__line b { height: 2.8cqw; background: #E9D8AA; border-radius: .3cqw; }
.sheet__line i { height: 2.8cqw; background: #EEF4EA; border-bottom: 1px solid #AFC0AA; }

/* ------------------------------------------------------------------ hero (home) */
.hero { padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2.25rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }
.hero h1 { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -.018em; margin-bottom: .32em; }
.hero h1 span { display: inline-block; }
.hero__second { font-family: var(--font-display); font-style: italic; font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem); line-height: 1.3; color: var(--ink); margin-bottom: .9rem; max-width: 28ch; }
.hero__copy { color: var(--ink-soft); font-size: 1.1875rem; max-width: 36rem; }
.hero__ctas { margin: 1.75rem 0 1.1rem; }
.hero__price { color: var(--ink-soft); font-size: 1.0625rem; max-width: 34rem; }
.hero__object { display: grid; justify-items: center; gap: 1.75rem; }
@media (max-width: 600px) { .hero__object .book { --book-w: 300px; } }
.namefield { width: min(100%, 390px); }
.namefield__row { display: flex; gap: .5rem; }
.namefield__row .input { flex: 1; min-width: 0; }
.namefield .btn { flex: none; }

/* ------------------------------------------------------------------ steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 4vw, 3rem); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { margin: 0; padding-top: 1.25rem; border-top: 1.5px solid var(--evergreen); display: flex; flex-direction: column; }
.step__n { font: italic 400 3.25rem/1 var(--font-display); color: var(--evergreen); margin-bottom: .5rem; }
.step h3 { margin-bottom: .4em; }
.step p { color: var(--ink-soft); }
.step__art { margin-top: auto; padding-top: 1rem; }
.formatpair { display: flex; gap: .75rem; flex-wrap: wrap; }
.formatpair span { display: inline-flex; flex-direction: column; padding: .6rem .85rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); font-size: 1.0625rem; line-height: 1.35; }
.formatpair b { font-family: var(--font-mono); font-weight: 600; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.checklist { list-style: none; padding: 0; margin: 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.checklist li { margin: 0; display: flex; align-items: center; gap: .7rem; padding: .55rem .85rem; border-top: 1px solid var(--rule); font-size: 1.0625rem; }
.checklist li:first-child { border-top: 0; }
.checklist li::before { content: ""; flex: none; width: 1.05rem; height: 1.05rem; border: 2px solid var(--ink-soft); border-radius: 3px; }
.checklist li.is-done::before { background: var(--evergreen); border-color: var(--evergreen); box-shadow: inset 0 0 0 2px var(--surface); }
.checklist .mono { margin-left: auto; font-size: .75rem; color: var(--ink-soft); }

/* Index card ("who knows where this file is") */
.indexcard { margin-top: 1.4rem; position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 3px; padding: 1rem 1.1rem .5rem; box-shadow: 0 10px 24px -18px var(--book-shadow); }
.indexcard__label { font: 600 .75rem/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.indexcard__line { font-family: var(--font-mono); font-size: 1rem; line-height: 1.4; padding: .2rem 0 .45rem; border-bottom: 1px solid var(--rule); margin-bottom: .6rem; color: var(--ink); }
.indexcard__line:last-child { border-bottom: 0; }
.indexcard .stamp { position: absolute; right: -.35rem; top: -2.35rem; }

/* ------------------------------------------------------------------ the drawer of 14 files */
.files { list-style: none; margin: 0; padding: 0; }
.folder { position: relative; margin: 2.35rem 0 0; padding: .95rem 0 1.05rem; border-top: 1.5px solid var(--manila-deep); }
.folder:first-child { margin-top: 2.2rem; }
.folder__tab {
  position: absolute; bottom: 100%; left: var(--x, 0); isolation: isolate;
  display: flex; align-items: center; height: 2.15rem; padding: 0 1rem; margin-bottom: -1px;
  color: var(--ink); font: 600 .8125rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.folder__tab::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--manila); border: 1.5px solid var(--manila-deep); border-bottom: 0;
  border-radius: 9px 9px 0 0; transform: perspective(40px) rotateX(3deg); transform-origin: 50% 100%;
}
.folder:nth-child(3n+2) { --x: calc(50% - 3.6rem); }
.folder:nth-child(3n) { --x: calc(100% - 7.2rem); }
.folder__body { display: grid; gap: .2rem 2rem; }
.folder__title { font-size: 1.375rem; margin: 0; line-height: 1.25; }
.folder__body p { margin: 0; color: var(--ink-soft); }
@media (min-width: 640px) { .folder__body { grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr); align-items: baseline; } }
.files--compact .folder { margin-top: 2.15rem; padding-block: .75rem .85rem; }

.rulebox { border: 1.5px solid var(--evergreen); border-radius: var(--radius); padding: 1.2rem 1.35rem; background: var(--surface); }
.rulebox h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.1875rem; color: var(--ink); margin-bottom: .4rem; }
.rulebox p:last-child, .rulebox ul:last-child { margin-bottom: 0; }
.nevers { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .75rem 0 1rem; }
.nevers li { margin: 0; padding: .3rem .65rem; border: 1px solid var(--rule); border-radius: 3px; background: var(--ledger); font-size: 1.0625rem; text-decoration: line-through; text-decoration-color: var(--ink-soft); text-decoration-thickness: 1.5px; }

/* ------------------------------------------------------------------ formats (index cards) */
.formats { display: grid; gap: 3rem 1.25rem; }
@media (min-width: 760px) { .formats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.fcard--feature { border: 1.5px solid var(--evergreen); }
.fcard__art { display: grid; place-items: center; height: 16rem; padding: 1.5rem 1rem; background: var(--ledger); border-bottom: 1px solid var(--rule); border-radius: var(--radius) var(--radius) 0 0; }
.fcard__body { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.35rem 1.4rem; flex: 1; }
.fcard__kind { font: 600 .8125rem/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.fcard h3 { margin: 0; }
.fcard__price { font: 400 2.25rem/1.1 var(--font-display); color: var(--ink); margin: .25rem 0 .35rem; }
.fcard__price small { font-family: var(--font-body); font-size: 1.0625rem; color: var(--ink-soft); }
.fcard p { color: var(--ink-soft); }
.fcard .btn { margin-top: auto; }
.fcard__tab { position: absolute; top: -1.95rem; left: 1rem; }
.pdfpage { position: relative; width: 132px; aspect-ratio: 8.5 / 11; background: #FFFFFF; border: 1px solid #DCE3D8; border-radius: 3px; padding: 14px 12px; display: grid; align-content: start; gap: 7px; box-shadow: 0 14px 24px -16px var(--book-shadow); filter: brightness(var(--object-dim)); }
.pdfpage::before { content: "PDF"; position: absolute; right: -10px; top: 12px; padding: 3px 6px; background: #1F4A3D; color: #FFFFFF; border-radius: 2px; font: 600 11px/1 var(--font-mono); letter-spacing: .12em; }
.pdfpage i { display: block; height: 9px; background: #EEF4EA; border-bottom: 1px solid #AFC0AA; }
.pdfpage b { display: block; height: 10px; width: 60%; background: #1F4A3D; border-radius: 1px; margin-bottom: 4px; }
.pdfpage i:nth-child(3n) { width: 70%; }
.alsoline { margin-top: 1.75rem; color: var(--ink-soft); max-width: 52rem; }

/* ------------------------------------------------------------------ gift note */
.giftnote { position: relative; max-width: 26rem; margin-inline: auto; padding: 2rem 2rem 1.75rem; background: #FBF7EC; color: #1B2420; border: 1px solid #E3D8BB; border-radius: 3px; box-shadow: 0 22px 40px -28px var(--book-shadow); transform: rotate(-1.5deg); filter: brightness(var(--object-dim)); }
.giftnote::before { content: ""; position: absolute; inset: -14px 18px auto; height: 28px; background: #E9D8AA; border: 1px solid #C7AA66; border-radius: 3px; transform: rotate(1.5deg); z-index: -1; }
.giftnote p { font: italic 400 1.3125rem/1.55 var(--font-display); margin: 0 0 .8rem; }
.giftnote__to { font-style: normal !important; }
.giftnote__sign { text-align: right; }
.giftnote__label { position: absolute; left: 0; bottom: -2.2rem; font: 600 .75rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); transform: rotate(1.5deg); }

/* ------------------------------------------------------------------ Q&A */
.qa-list { border-top: 1px solid var(--rule); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; position: relative; cursor: pointer; padding: 1.05rem 3rem 1.05rem 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); font: 500 1.75rem/1 var(--font-mono); color: var(--evergreen); }
.qa[open] summary::after { content: "\2212"; }
.qa summary:hover .qa__q { color: var(--evergreen); }
.qa__q { margin: 0; font: 700 1.1875rem/1.4 var(--font-body); color: var(--ink); text-wrap: pretty; }
.qa__a { padding: 0 0 1.35rem; max-width: 68ch; color: var(--ink); }
.qa__a p { margin: 0; }
.qa-group + .qa-group { margin-top: 3.5rem; }
.qa-group__title { margin: 0 0 0; border-bottom: 1.5px solid var(--manila-deep); line-height: 1; font-size: inherit; }
.qa-group__title .tab { font-size: .875rem; }
.qa-group .qa-list { border-top: 0; }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field__label, .form label.field__label { font-weight: 700; font-size: 1.0625rem; color: var(--ink); }
.opt { font-weight: 400; color: var(--ink-soft); }
.input, .form select, .form textarea {
  width: 100%; min-height: 50px; padding: .65rem .85rem;
  font: inherit; font-size: 1.125rem; color: var(--ink);
  background: var(--field-bg, var(--ledger)); border: 1.5px solid var(--rule); border-bottom-color: var(--ink-soft); border-radius: 3px;
}
textarea.input, .form textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.input:hover { border-color: var(--ink-soft); }
.input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--evergreen); outline-offset: 1px; border-color: var(--evergreen); }
.input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 -2px 0 var(--error); }
.input::placeholder { color: var(--ink-soft); opacity: .75; }
.form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2346524B' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem; }
.help { margin: 0; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.45; }
.msg { margin: 0; font-size: 1.0625rem; line-height: 1.45; min-height: 0; }
.msg:empty { display: none; }
.msg.is-error { color: var(--error); font-weight: 700; }
.msg.is-info { color: var(--ink-soft); }
.check { display: flex; align-items: center; gap: .65rem; min-height: 44px; cursor: pointer; font-weight: 700; }
.check input, .checks input { width: 1.3rem; height: 1.3rem; accent-color: var(--evergreen); margin: 0; flex: none; }
.checks { display: grid; gap: .25rem; border: 0; padding: 0; margin: 0; }
.checks legend { font-weight: 700; margin-bottom: .4rem; padding: 0; }
.checks .grid2 { gap: 0 1.1rem; }
.checks label { display: flex; align-items: center; gap: .65rem; min-height: 44px; cursor: pointer; }
.grid2 { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 2fr 1fr 1fr; } }
.grid3 { display: grid; gap: 1.1rem; }
.form__fine { color: var(--ink-soft); font-size: 1.0625rem; margin: 0; }
.formcard { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.section--ledger .formcard { --field-bg: var(--ledger); }
.formcard--ledger { background: var(--ledger); --field-bg: var(--surface); }
.preview-note { margin: 0; padding: .75rem 1rem; border: 1.5px dashed var(--manila-deep); background: var(--manila); color: var(--ink); border-radius: 3px; font-weight: 700; font-size: 1.0625rem; }
.preview-note[hidden] { display: none; }

/* Choices (radio cards) */
.choices { border: 0; padding: 0; margin: 0; display: grid; gap: .65rem; }
.choices legend { padding: 0; margin-bottom: .55rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; left: 1rem; top: 1.15rem; width: 1.25rem; height: 1.25rem; margin: 0; opacity: 0; }
.choice__body {
  display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; align-items: baseline;
  padding: .95rem 1.1rem 1rem 3.05rem; border: 1.5px solid var(--rule); border-radius: var(--radius); background: var(--surface);
  position: relative;
}
.choice__body::before { content: ""; position: absolute; left: 1rem; top: 1.12rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid var(--ink-soft); background: var(--surface); }
.choice:hover .choice__body { border-color: var(--ink-soft); }
.choice input:checked + .choice__body { border-color: var(--evergreen); box-shadow: inset 0 0 0 1px var(--evergreen); background: var(--ledger); }
.choice input:checked + .choice__body::before { border-color: var(--evergreen); background: var(--evergreen); box-shadow: inset 0 0 0 3px var(--surface); }
.choice input:focus-visible + .choice__body { outline: 3px solid var(--evergreen); outline-offset: 2px; }
.choice__title { font-weight: 700; font-size: 1.125rem; }
.choice__price { font: 400 1.5rem/1 var(--font-display); color: var(--ink); }
.choice__desc { grid-column: 1 / -1; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.45; }
.choice__desc:empty { display: none; }

/* Buy box */
.buybox { display: grid; gap: 1.25rem; }
.buybox [hidden] { display: none !important; }
.giftbox { border-top: 1px solid var(--rule); padding-top: .75rem; }
.giftbox__fields { display: grid; gap: 1rem; padding: .5rem 0 0 0; }
.buybox__status { margin: 0; font-size: 1.0625rem; min-height: 0; }
.buybox__status:empty { display: none; }
.buybox__status.is-ok { padding: .75rem 1rem; background: var(--ledger); border: 1px solid var(--rule); border-radius: 3px; }
.buybox__status.is-error { color: var(--error); font-weight: 700; }
.assure { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .55rem; color: var(--ink-soft); font-size: 1.0625rem; }
.assure li { margin: 0; padding-left: 1.6rem; position: relative; }
.assure li::before { content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .45rem; border-left: 2px solid var(--evergreen); border-bottom: 2px solid var(--evergreen); transform: rotate(-45deg); }

/* ------------------------------------------------------------------ product page */
.pp-hero { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); }
.pp-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 960px) {
  .pp-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }
  .pp-visual { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.pp-visual .stage { min-height: clamp(24rem, 52vw, 36rem); }
.pp-caption { margin: .75rem 0 0; color: var(--ink-soft); font-size: 1.0625rem; text-align: center; }
.pp-caption strong { color: var(--ink); font-weight: 700; }
.crumbs { font-size: 1.0625rem; color: var(--ink-soft); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-soft); }
.pp-info h1 { margin-bottom: .3em; }
.pp-info .lede { margin-bottom: 1.5rem; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border-top: 1px solid var(--rule); }
.specs dt, .specs dd { margin: 0; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.specs dt { font: 600 .8125rem/1.9 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding-right: 1.5rem; }
.contents-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.contents-list li { margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: .2rem 2rem; }
@media (min-width: 640px) { .contents-list li { grid-template-columns: minmax(12rem, 18rem) 1fr; align-items: baseline; } }
.contents-list h3 { margin: 0; font-size: 1.3125rem; }
.contents-list p { margin: 0; color: var(--ink-soft); }
.firstten { columns: 2 18rem; column-gap: 2.5rem; padding-left: 1.6em; margin: 0; }
.firstten li { break-inside: avoid; margin: 0 0 .55rem; padding-left: .25rem; }
.firstten li::marker { font-family: var(--font-mono); font-weight: 600; color: var(--evergreen); }
.ess-list { columns: 2 16rem; column-gap: 2.5rem; padding-left: 1.6em; margin: 0; }
.ess-list li { break-inside: avoid; margin: 0 0 .5rem; }
.ess-list li::marker { font-family: var(--font-mono); font-weight: 600; color: var(--evergreen); }
.gallery { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
.crisis { border-left: 4px solid var(--evergreen); padding: .75rem 0 .75rem 1.1rem; background: var(--ledger); }

/* ------------------------------------------------------------------ shop */
.shopgrid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .shopgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.pcard__art { display: grid; place-items: center; min-height: 17rem; padding: 1.75rem 1rem; background: var(--ledger); border-bottom: 1px solid var(--rule); border-radius: var(--radius) var(--radius) 0 0; }
.pcard__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.35rem 1.5rem; flex: 1; }
.pcard h2, .pcard h3 { font-size: 1.625rem; margin: 0; }
.pcard p { color: var(--ink-soft); margin: 0; }
.prices { list-style: none; margin: .5rem 0 1rem; padding: 0; border-top: 1px solid var(--rule); }
.prices li { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.prices b { font: 400 1.3125rem/1.2 var(--font-display); }
.pcard .btn { margin-top: auto; }
.soon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .soon-list { grid-template-columns: 1fr 1fr; } }
.soon { margin: 0; display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem; align-items: center; }
.soon .book { --book-w: 96px; }
.soon h3 { margin: 0 0 .25rem; font-size: 1.375rem; }
.soon p { margin: 0; color: var(--ink-soft); }

/* ------------------------------------------------------------------ pros */
.segments { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .segments { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.segments li { margin: 0; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.segments h3 { margin: 0 0 .35rem; font-size: 1.375rem; }
.segments p { margin: 0; color: var(--ink-soft); }
.cobrand { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .cobrand { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cobrand figure { margin: 0; display: grid; gap: .9rem; justify-items: center; }
.cobrand figcaption { text-align: center; color: var(--ink-soft); font-size: 1.0625rem; max-width: 22rem; }
.cobrand figcaption strong { display: block; color: var(--ink); }
.example-flag { display: inline-block; margin-bottom: 1.5rem; }
.backcover, .contactspage {
  position: relative; width: min(250px, 100%); aspect-ratio: 8.5 / 11; container-type: inline-size;
  filter: brightness(var(--object-dim)); border-radius: 4px; box-shadow: 0 16px 26px -14px var(--book-shadow);
}
.backcover__in {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 2.4cqw;
  padding: 9cqw 8cqw 7cqw 9cqw; color: #F5EEDA; border-radius: 1.8cqw .8cqw .8cqw 1.8cqw;
  background-color: #1F4A3D; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath d='M0 .5h4M0 2.5h4' stroke='%23fff' stroke-opacity='.07'/%3E%3Cpath d='M.5 0v4M2.5 0v4' stroke='%23000' stroke-opacity='.11'/%3E%3C/svg%3E");
}
.backcover__lead { font: italic 400 5.4cqw/1.25 var(--font-display); }
.backcover ul { margin: 0; padding-left: 4.5cqw; font-size: 3.6cqw; line-height: 1.4; }
.backcover li + li { margin-top: .6cqw; }
.backcover__firm { margin-top: auto; background: #F5EEDA; color: #1B2420; border-radius: .6cqw; padding: 3cqw 3.4cqw; font-size: 3.3cqw; line-height: 1.4; }
.backcover__firm b { display: block; font-size: 3.7cqw; color: #23364A; }
.backcover__fine { font-size: 2.6cqw; line-height: 1.35; opacity: .85; }
.contactspage__in {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 2.6cqw; padding: 8cqw 7cqw;
  background: #FFFFFF; color: #1B2420; border: 1px solid #DCE3D8; border-radius: .8cqw;
}
.contactspage__title { font: 400 6.2cqw/1.15 var(--font-display); color: #1F4A3D; padding-bottom: 2cqw; border-bottom: 2px solid #1F4A3D; }
.contactspage__logo { display: flex; align-items: center; gap: 2cqw; color: #23364A; }
.contactspage__logo .firmlogo__mark { width: 7cqw; height: 7cqw; border-width: .9cqw; }
.contactspage__logo .firmlogo__mark::after { height: .9cqw; box-shadow: 0 -1.8cqw 0 currentColor; }
.contactspage__logo b { font: 700 5cqw/1 var(--font-body); }
.contactspage dl { margin: 0; display: grid; gap: 1.8cqw; }
.contactspage dt { font: 600 2.6cqw/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #46524B; }
.contactspage dd { margin: .8cqw 0 0; font-size: 3.6cqw; padding: 1cqw 1.6cqw; background: #EEF4EA; border-bottom: 1px solid #AFC0AA; }
.tiers-note { color: var(--ink-soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); margin-bottom: 1.5rem; }
.tiers { width: 100%; border-collapse: collapse; }
.tiers caption { text-align: left; padding: 1.1rem 1.2rem .6rem; font: 400 1.3125rem/1.3 var(--font-display); color: var(--evergreen); }
.tiers th, .tiers td { padding: .8rem 1.2rem; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.tiers thead th { font: 600 .8125rem/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); background: var(--ledger); }
.tiers tbody th { font-weight: 700; }
.tiers td { font-size: 1.0625rem; line-height: 1.45; }
.tiers td.num { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }
@media (max-width: 520px) {
  .tiers th, .tiers td { padding: .7rem .6rem; }
  .tiers thead th { letter-spacing: .04em; font-size: .75rem; }
  .tiers caption { padding: 1rem .75rem .5rem; }
}
.extras { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .extras { grid-template-columns: 1fr 1fr; } }
.extra { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); padding: 1.35rem 1.5rem; }
.extra h3 { margin: 0 0 .25rem; font-size: 1.375rem; }
.extra__price { font: 400 1.875rem/1.2 var(--font-display); color: var(--ink); margin: 0 0 .5rem; }
.extra p:last-child { margin: 0; }
.pricelines { list-style: none; padding: 0; margin: .25rem 0 .9rem; }
.pricelines li { margin: 0; padding: .3rem 0; border-bottom: 1px solid var(--rule); display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
.pricelines b { font: 400 1.375rem/1.2 var(--font-display); color: var(--ink); }
.pricelines span { color: var(--ink-soft); }
@media (min-width: 1000px) { .extras { grid-template-columns: repeat(2, 1fr); } }
.twocol { display: grid; gap: 2rem; }
@media (min-width: 760px) { .twocol { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.twocol h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.1875rem; color: var(--ink); }
.ticklist, .crosslist { list-style: none; padding: 0; margin: 0; }
.ticklist li, .crosslist li { position: relative; padding: .5rem 0 .5rem 1.9rem; margin: 0; border-bottom: 1px solid var(--rule); }
.ticklist li::before { content: ""; position: absolute; left: .1rem; top: 1rem; width: .85rem; height: .45rem; border-left: 2px solid var(--evergreen); border-bottom: 2px solid var(--evergreen); transform: rotate(-45deg); }
.crosslist li::before, .crosslist li::after { content: ""; position: absolute; left: .15rem; top: 1.2rem; width: 1rem; height: 2px; background: var(--ink-soft); transform: rotate(45deg); }
.crosslist li::after { transform: rotate(-45deg); }
.disclaimer-long { border: 1px solid var(--rule); background: var(--surface); padding: 1.25rem 1.4rem; border-radius: var(--radius); color: var(--ink-soft); font-size: 1.0625rem; }
.disclaimer-long p:last-child { margin: 0; }
.processlist { list-style: none; padding: 0; margin: 0; counter-reset: p; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .processlist { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.processlist li { margin: 0; counter-increment: p; padding-top: .9rem; border-top: 1.5px solid var(--deep-rule); }
.processlist li::before { content: counter(p); display: block; font: italic 400 2rem/1 var(--font-display); margin-bottom: .4rem; }
.processlist p { margin: 0; color: var(--deep-soft); }
.processlist h3 { font-size: 1.3125rem; margin-bottom: .3rem; }

/* ------------------------------------------------------------------ prose pages */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--rule); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-bottom: 0; }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.625rem, 1.35rem + 1.1vw, 2.125rem); margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; font-size: 1.375rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose li { padding-left: .2rem; }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--manila-deep); font: italic 400 1.25rem/1.5 var(--font-display); color: var(--ink); }
.prose .rulebox { margin: 1.75rem 0; }
.placeholder { border: 2px dashed var(--manila-deep); background: var(--manila); color: var(--ink); padding: 1.25rem 1.4rem; border-radius: var(--radius); margin: 1.5rem 0; }
.placeholder p:last-child { margin: 0; }
.article-meta { color: var(--ink-soft); font-size: 1.0625rem; margin-top: 1rem; }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .guide-list { grid-template-columns: 1fr 1fr; } }
.guide-list li { margin: 0; }
.guide-card { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.5rem 1.5rem 1.6rem; border: 1px solid var(--rule); border-top: 1.5px solid var(--manila-deep); border-radius: 0 0 var(--radius) var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.guide-card h2 { font-size: 1.75rem; margin: 0; }
.guide-card p { margin: 0; color: var(--ink-soft); }
.guide-card:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.toc { border: 1px solid var(--rule); background: var(--surface); padding: 1.1rem 1.3rem; border-radius: var(--radius); margin: 0 0 2rem; }
.toc ol { margin: .5rem 0 0; }
.cta-band { display: grid; gap: 1.5rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--rule); background: var(--ledger); border-radius: var(--radius); margin-top: 3rem; }
@media (min-width: 760px) { .cta-band { grid-template-columns: auto 1fr; } }
.cta-band h2 { margin: 0 0 .35rem; font-size: 1.75rem; }
.cta-band .mockpic { width: min(100%, 300px); }
.cta-band p { margin: 0 0 1rem; color: var(--ink-soft); }

/* ------------------------------------------------------------------ cart */
.cartdrawer[open] {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(30rem, 100%); max-width: 100%;
  height: 100%; max-height: 100%; padding: 0; border: 0; border-left: 1px solid var(--rule);
  background: var(--paper); color: var(--ink); box-shadow: -20px 0 50px -30px rgba(0,0,0,.5);
}
dialog.cartdrawer { padding: 0; border: 0; }
dialog.cartdrawer::backdrop { background: rgba(9, 15, 12, .5); }
dialog.cartdrawer[open] { animation: drawer-in .2s ease-out; display: block; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__inner { display: flex; flex-direction: column; height: 100%; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--rule); }
.drawer__title { margin: 0; font-size: 1.75rem; }
.drawer__close { min-height: 44px; padding: .35rem .9rem; border: 1.5px solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: 700 1.0625rem/1 var(--font-body); cursor: pointer; }
.drawer__close:hover { border-color: var(--evergreen); }
.cartdrawer .cart { flex: 1; overflow-y: auto; padding: 1rem 1.25rem 1.5rem; }
.cart__empty { padding: 1rem 0; }
.cart__empty p { color: var(--ink-soft); }
.cart__lines { list-style: none; padding: 0; margin: 0 0 1.25rem; border-top: 1px solid var(--rule); }
.cart__line { margin: 0; display: grid; grid-template-columns: 56px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.cart__thumb .book { --book-w: 56px; }
.cart__thumb .pdfpage { width: 48px; padding: 6px 5px; gap: 3px; box-shadow: none; }
.cart__thumb .pdfpage::before { font-size: 8px; right: -6px; top: 5px; padding: 2px 3px; }
.cart__thumb .pdfpage i { height: 4px; }
.cart__thumb .pdfpage b { height: 5px; margin-bottom: 1px; }
.cart__title { margin: 0; font-weight: 700; line-height: 1.35; }
.cart__meta { margin: .15rem 0 0; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.4; }
.cart__price { margin: 0; font: 400 1.25rem/1.2 var(--font-display); white-space: nowrap; }
.cart__controls { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.qty button { width: 44px; height: 44px; border: 0; background: none; color: var(--ink); font: 600 1.25rem/1 var(--font-mono); cursor: pointer; }
.qty button:hover { background: var(--ledger); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 2rem; text-align: center; font: 600 1.0625rem/1 var(--font-mono); }
.cart__totals { margin: 0 0 1rem; }
.cart__totals div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.cart__totals dt { color: var(--ink-soft); }
.cart__totals dd { margin: 0; font-weight: 700; text-align: right; }
.cart__totals .is-total { border-top: 1px solid var(--rule); padding-top: .65rem; margin-top: .3rem; font-size: 1.1875rem; }
.cart__totals .is-total dt { color: var(--ink); font-weight: 700; }
.cart__warn { padding: .75rem 1rem; border: 1.5px solid var(--error); border-radius: 3px; color: var(--ink); margin: 0 0 1rem; }
.cart__fine { color: var(--ink-soft); font-size: 1.0625rem; margin: 1rem 0 0; }
.cart__msg { margin: .85rem 0 0; }
.cart__msg:empty { display: none; }
.cart__msg.is-error { color: var(--error); font-weight: 700; }
.cartpage .cart { max-width: 40rem; }

/* ------------------------------------------------------------------ thank you */
.ty { padding-block: clamp(2.5rem, 6vw, 5rem); }
.ty__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.ty__head h1 { margin: 0; }
.ty [hidden] { display: none !important; }
.downloads { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .9rem; }
[data-ty-has-downloads] { margin-bottom: 2.5rem; }
.downloads li { margin: 0; display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; justify-content: space-between; padding: 1rem 1.15rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.downloads b { font-size: 1.125rem; }
.orderlist { list-style: none; padding: 0; margin: 0 0 2rem; border-top: 1px solid var(--rule); }
.orderlist li { margin: 0; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.orderlist span { display: block; color: var(--ink-soft); font-size: 1.0625rem; }
.nextup { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .nextup { grid-template-columns: 1fr 1fr; } }
.nextup > div { border-top: 1.5px solid var(--evergreen); padding-top: 1rem; }
.nextup h2 { font-size: 1.5rem; }

/* ------------------------------------------------------------------ misc */
.notfound { padding-block: clamp(4rem, 10vw, 8rem); }
.notfound__links { display: flex; flex-wrap: wrap; gap: .75rem; }
.pros-mini { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .pros-mini { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.pros-mini__art { display: grid; justify-items: center; gap: .9rem; }
.pros-mini__note { margin: 0; color: var(--deep-soft); font-size: 1.0625rem; text-align: center; }
.pros-mini__note .tag { background: transparent; color: var(--deep-ink); border-color: var(--deep-rule); margin-right: .4rem; }
.segment-line { color: var(--deep-soft); }
.signup { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .signup { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.thanks-page { padding-block: clamp(3rem, 8vw, 6rem); }
.thanks-page .stack { max-width: 40rem; }
.statline { font: 400 clamp(1.5rem, 1.2rem + 1.2vw, 2rem)/1.3 var(--font-display); color: var(--ink); max-width: 34ch; }
.numbers { display: grid; gap: 0; border-top: 1px solid var(--rule); margin: 1.5rem 0; }
@media (min-width: 700px) { .numbers { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.numbers div { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.numbers b { display: block; font: 400 2rem/1.1 var(--font-display); color: var(--evergreen); }
.numbers span { color: var(--ink-soft); }
.numbers .src { display: block; margin-top: .3rem; font-size: 1.0625rem; color: var(--ink-soft); }
.numbers .src a { color: var(--ink-soft); }

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ print */
@media print {
  .site-header, .site-footer, .cartdrawer, .skip { display: none !important; }
  body { background: #fff; color: #000; }
}
.prose .signoff{margin-top:1.25rem;font-family:var(--font-display, "Libre Caslon Text", serif);line-height:1.5}
