/* Clever Nib: ink on ruled practice paper. */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic-var.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-italic-var.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --paper: #fbfbf8;
  --ink: #1d3577;
  --ink-deep: #142657;
  --text: #23263a;
  --muted: #565b70;
  --rule: #c5d6ea;
  --rule-soft: #e3ebf5;
  --brass: #a8772a;
  --brass-light: #e9c27a;
  --brass-text: #7f5815;
  --red: #b8324a;
  --kraft: #ece2cf;
  --kraft-line: #d8c9ab;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (max-width: 959px) { body.has-buybar { padding-bottom: 4.25rem; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.6 var(--sans); font-kerning: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink-deep); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; font-optical-sizing: auto; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 46rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }
.note { color: var(--muted); font-size: 0.9rem; }
.lede { font-size: 1.125rem; line-height: 1.6; max-width: 40em; color: var(--text); }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink-deep); font: 600 1.4rem/1 var(--serif); letter-spacing: -0.025em; }
.brand:hover { color: var(--ink); }
.mark { width: 2.1rem; height: 2.1rem; flex: none; }
.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.94rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--brass); }
.header-search { display: none; position: relative; }
.header-search input { width: 12rem; font: inherit; font-size: 0.94rem; padding: 0.45rem 2.4rem 0.45rem 0.8rem; border: 1px solid var(--rule); border-radius: 999px; background: #fff; color: var(--text); }
.header-search button { position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 0.35rem; cursor: pointer; color: var(--ink); }
svg { stroke: currentColor; }
.header-search svg, .icon-btn svg { width: 1.3rem; height: 1.3rem; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.mark path { stroke-linecap: butt; }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--ink); border-radius: 50%; cursor: pointer; list-style: none; }
.icon-btn::-webkit-details-marker { display: none; }
.search-link { margin-left: auto; }
.menu { position: relative; }
.menu[open] > nav { position: absolute; right: 0; top: 3rem; background: var(--paper); border: 1px solid var(--rule); padding: 0.5rem 0; min-width: 14rem; box-shadow: 0 12px 30px -12px rgba(20, 38, 87, 0.35); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 0.6rem 1.2rem; text-decoration: none; color: var(--text); }
.menu a:hover { background: var(--rule-soft); color: var(--ink); }
@media (min-width: 1000px) {
  .main-nav { display: block; }
  .menu { display: none; }
  .search-link { margin-left: 0.5rem; }
}
@media (min-width: 1280px) {
  .header-search { display: block; }
  .search-link { display: none; }
}

/* ---------- ruled headline: calligraphy guidelines set to Fraunces' metrics ----------
   line box 1.5em; baseline at 1.1115em, x-height (waist) 0.674em, ascender 0.3915em, descender 1.3455em */
.ruled {
  --lc: #a9bfdc;
  line-height: 1.5;
  padding-bottom: 0.05em;
  background-image:
    linear-gradient(to bottom, transparent calc(0.3915em - 0.5px), var(--rule) calc(0.3915em - 0.5px), var(--rule) calc(0.3915em + 0.5px), transparent calc(0.3915em + 0.5px)),
    linear-gradient(to bottom, transparent calc(0.674em - 0.5px), var(--lc) calc(0.674em - 0.5px), var(--lc) calc(0.674em + 0.5px), transparent calc(0.674em + 0.5px)),
    linear-gradient(to bottom, transparent calc(1.1115em - 1px), #7f9cc8 calc(1.1115em - 1px), #7f9cc8 calc(1.1115em + 0.5px), transparent calc(1.1115em + 0.5px)),
    linear-gradient(to bottom, transparent calc(1.3455em - 0.5px), var(--rule) calc(1.3455em - 0.5px), var(--rule) calc(1.3455em + 0.5px), transparent calc(1.3455em + 0.5px));
  background-size: 100% 1.5em;
  background-repeat: repeat-y;
}

/* ---------- hero ---------- */
.hero {
  border-bottom: 1px solid var(--rule);
  background:
    repeating-linear-gradient(125deg, transparent 0 46px, rgba(197, 214, 234, 0.32) 46px 47px),
    var(--paper);
}
.hero-grid { display: grid; gap: 2rem; padding-top: clamp(2rem, 6vw, 4.5rem); padding-bottom: clamp(2rem, 6vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 400; letter-spacing: -0.03em; color: var(--ink-deep); margin-bottom: 0.4em; text-wrap: balance; }
.hero .lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.hero-sheet { margin: 0; justify-self: center; max-width: 34rem; transform: rotate(1.2deg); }
.hero-sheet img { border: 1px solid var(--rule); background: #fff; box-shadow: 0 1px 0 var(--rule), 0 24px 40px -28px rgba(20, 38, 87, 0.45); }
.hero-sheet figcaption { font: italic 400 0.9rem var(--serif); color: var(--muted); margin-top: 0.6rem; text-align: right; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; } }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; padding: 0.6rem 1.4rem; border: 2px solid var(--ink); background: var(--ink); color: #fff; font: 600 0.98rem/1.2 var(--sans); letter-spacing: 0.005em; text-decoration: none; border-radius: 4px; cursor: pointer; }
.btn:hover { background: var(--ink-deep); border-color: var(--ink-deep); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--rule-soft); color: var(--ink-deep); }
.btn-small { min-height: 2.5rem; padding: 0.4rem 1rem; font-size: 0.9rem; }
.btn[disabled] { background: #e7e9ef; border-color: #c9cdd8; color: #5d6274; cursor: not-allowed; }

/* ---------- trust strip ---------- */
.trust { list-style: none; margin: 0; padding: 1.5rem 0; display: grid; gap: 1rem 2rem; grid-template-columns: 1fr; border-bottom: 1px solid var(--rule); }
.trust li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.trust b { display: block; color: var(--ink-deep); font-weight: 600; font-size: 0.98rem; }
.trust svg { width: 1.6rem; height: 1.6rem; flex: none; fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 0.15rem; }
@media (min-width: 640px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* ---------- contents (categories as a workbook contents page) ---------- */
.contents { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: 1rem; }
.contents h2 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); font-weight: 400; font-style: italic; }
.toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; columns: 1; }
.toc li { break-inside: avoid; padding: 0.9rem 0; border-bottom: 1px solid var(--rule-soft); }
.toc a { display: flex; align-items: baseline; gap: 0.5rem; text-decoration: none; color: var(--ink-deep); }
.toc-name { font: 500 clamp(1.15rem, 2vw, 1.35rem)/1.25 var(--serif); letter-spacing: -0.015em; }
.toc-dots { flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-0.3em); min-width: 1.5rem; }
.toc-n { font: italic 400 0.98rem var(--serif); color: var(--brass-text); white-space: nowrap; }
.toc a:hover .toc-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.toc p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.92rem; max-width: 36em; }
@media (min-width: 960px) { .toc { columns: 2; column-gap: 3.5rem; } }

/* ---------- blocks and product grid ---------- */
.block { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.5rem; }
.block-head h2 { margin: 0; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.5rem; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-img { display: block; border: 1px solid var(--rule); background: #fff; border-radius: 3px; overflow: hidden; aspect-ratio: 4 / 3; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-title { display: block; margin-top: 0.75rem; font: 500 0.97rem/1.4 var(--sans); color: var(--ink-deep); letter-spacing: -0.005em; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.card-sub { color: var(--muted); font-size: 0.86rem; line-height: 1.45; margin: 0.3rem 0 0.5rem; }
.card-meta { margin: auto 0 0; display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; font-size: 0.82rem; color: var(--muted); border-top: 1px dotted var(--rule); padding-top: 0.45rem; }
.price { font: 600 1rem/1 var(--sans); color: var(--ink-deep); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
@media (max-width: 480px) { .card-sub { display: none; } .card-title { font-size: 0.92rem; } .card-meta { flex-direction: column; gap: 0.2rem; } }

/* ---------- bundles band ---------- */
.kraft { background: var(--kraft); border-top: 1px solid var(--kraft-line); border-bottom: 1px solid var(--kraft-line); margin-top: 2rem; }
.kraft .block { padding-bottom: clamp(2rem, 5vw, 3rem); }
.kraft .block-head { border-color: var(--kraft-line); }
.bundle-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.bundle-list li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: start; }
.bundle-list img { border: 1px solid var(--kraft-line); background: #fff; border-radius: 3px; }
.bundle-list h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.bundle-list h3 a { text-decoration: none; color: var(--ink-deep); }
.bundle-list h3 a:hover { text-decoration: underline; }
.bundle-list p { margin: 0 0 0.4rem; font-size: 0.92rem; color: #4b4f60; }
.bundle-price s, .pprice s { color: var(--muted); font-size: 0.95rem; }
.save { color: var(--red); font-weight: 600; font-size: 0.88rem; }
@media (min-width: 800px) { .bundle-list { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; } }

.split { display: grid; gap: 1rem; }
@media (min-width: 900px) { .split { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; } }

/* ---------- page heads, crumbs ---------- */
.page-head { padding-top: 1.5rem; padding-bottom: 0.5rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0.9rem 0 1.25rem; padding: 0; font-size: 0.92rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--rule); }
.crumbs a { color: var(--muted); }
.other-cats ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.other-cats a { display: inline-block; padding: 0.4rem 0.9rem; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; background: #fff; }
.other-cats a:hover { border-color: var(--ink); }
.other-cats h2 { font-size: 1.3rem; }

/* ---------- product page ---------- */
.prose { overflow-wrap: anywhere; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.5em; font-size: 1.15rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--brass); }
.wrap-narrow { max-width: calc(47.5rem + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* hero: gallery 7, buy card 5; the card sticks only inside the hero */
.p-hero { display: grid; gap: 1.75rem; grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.p-hero > * { min-width: 0; }
.gallery-main { border: 1px solid var(--rule); background: #fff; border-radius: 3px; overflow: hidden; }
.gallery-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumbs { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; gap: 0.6rem; overflow-x: auto; }
.thumbs button { width: 5.5rem; padding: 0; border: 2px solid transparent; background: #fff; cursor: pointer; border-radius: 3px; flex: none; outline-offset: 1px; }
.thumbs button[aria-current] { border-color: var(--ink); }
.thumbs img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.buycard { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--ink); border-radius: 3px; padding: 1.4rem 1.4rem 1.2rem; align-self: start; }
.kicker { margin: 0 0 0.5rem; font: 600 0.74rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: 0.12em; }
.kicker a { color: var(--brass-text); text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.buycard h1 { font-size: clamp(1.65rem, 2.8vw, 2.15rem); line-height: 1.12; margin-bottom: 0.35rem; }
.buycard .sub { font-size: 1rem; color: var(--muted); margin-bottom: 0.9rem; }
.pprice { margin: 0 0 0.75rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; }
.pprice .price { font-size: 1.6rem; font-weight: 600; }
.cur { color: var(--muted); font-size: 0.82rem; }
.facts { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.facts li { font-size: 0.8rem; padding: 0.18rem 0.6rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: #3b3f52; }
.highlights { list-style: none; margin: 0 0 1.1rem; padding: 0; font-size: 0.94rem; }
.highlights li { position: relative; padding-left: 1.5rem; margin-bottom: 0.35rem; }
.highlights li::before { content: ""; position: absolute; left: 0.15rem; top: 0.35em; width: 0.7rem; height: 0.4rem; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }
.btn-buy { width: 100%; min-height: 3.3rem; font-size: 1.02rem; letter-spacing: 0.01em; }
.trustrow { list-style: none; margin: 1rem 0 0.4rem; padding: 0.8rem 0 0; border-top: 1px solid var(--rule-soft); display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; font-size: 0.82rem; color: #3b3f52; }
.trustrow li { display: inline-flex; align-items: center; gap: 0.35rem; }
.trustrow svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: var(--brass); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.buycard .note { font-size: 0.8rem; margin: 0.3rem 0 0; }
.licenses { border: 0; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.45rem; }
.licenses legend { font-weight: 600; margin-bottom: 0.5rem; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; }
.lic { display: flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0.55rem 0.75rem; border: 1px solid var(--rule); border-radius: 4px; cursor: pointer; font-weight: 400; }
.lic:has(input:checked) { border-color: var(--ink); background: var(--rule-soft); }
.lic input { width: auto; margin: 0; accent-color: var(--ink); }
.lic-name { flex: 1; }
.lic-price { font: 600 0.95rem var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-deep); }
.lic-help { font-size: 0.82rem; }
@media (min-width: 960px) {
  .p-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.75rem; align-items: start; }
  .buycard { position: sticky; top: 5.5rem; }
}

/* sections below the hero */
.p-sec { padding: clamp(2rem, 5vw, 3rem) 0; border-top: 1px solid var(--rule); }
.p-sec h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 1rem; }
.inside-sec { background: #fff; }
.checklist { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 3rem; }
.checklist li { break-inside: avoid; position: relative; padding: 0.55rem 0 0.55rem 1.8rem; border-bottom: 1px dotted var(--rule); font-size: 0.94rem; }
.checklist li::before { content: ""; position: absolute; left: 0.2rem; top: 0.95em; width: 0.7rem; height: 0.4rem; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }
.checklist li.sub-h { padding-left: 0; font: 600 0.78rem var(--sans); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-deep); border-bottom-style: solid; padding-top: 1rem; break-after: avoid; }
.checklist li.sub-h::before { display: none; }
@media (min-width: 900px) { .checklist { columns: 2; } }
.look-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.look-grid img { width: 100%; border: 1px solid var(--rule); border-radius: 3px; background: #fff; }
@media (min-width: 800px) { .look-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
.spec { margin: 0 0 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--rule-soft); }
.spec div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule-soft); }
.spec dt { color: var(--muted); font-size: 0.85rem; }
.spec dd { margin: 0; }
.files { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: 0.88rem; }
.files th, .files td { text-align: left; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.files th { font-weight: 600; color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; }
.files td:last-child, .files th:last-child { white-space: nowrap; padding-right: 0; }
.fname { display: block; word-break: break-all; font-weight: 500; }
.fnote { display: block; color: var(--muted); font-size: 0.82rem; }
.file-notes { padding-left: 1.2rem; font-size: 0.88rem; color: #3b3f52; }
.file-notes li { margin-bottom: 0.3rem; }
.file-notes li::marker { color: var(--brass); }
.cross { display: flex; align-items: center; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.cross img { width: 7.5rem; border: 1px solid var(--kraft-line); border-radius: 3px; }
.cross p { margin: 0; padding: 0.9rem 1.1rem; background: var(--kraft); border-radius: 4px; flex: 1; }
.faq .more { margin-top: 1rem; }

/* mobile buy bar, after the main button scrolls away */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: #fff; border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px -16px rgba(20, 38, 87, 0.5); transform: translateY(110%); transition: transform 0.2s ease; }
.buybar.show { transform: none; }
.buybar-row { display: flex; align-items: center; gap: 0.75rem; padding-top: 0.55rem; padding-bottom: 0.55rem; }
.buybar-title { flex: 1; min-width: 0; font: 500 0.9rem/1.25 var(--sans); color: var(--ink-deep); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buybar .btn { white-space: nowrap; }
@media (min-width: 960px) { .buybar { display: none; } }

/* ---------- sections: KDP Interiors, For Etsy Sellers ---------- */
.section-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.section-cards li { border: 1px solid var(--rule); border-radius: 4px; background: #fff; padding: 1.3rem 1.4rem; }
.section-cards a { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.section-cards svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sc-name { font: 500 1.35rem var(--serif); letter-spacing: -0.02em; color: var(--ink-deep); }
.section-cards a:hover .sc-name { text-decoration: underline; text-underline-offset: 0.18em; }
.section-cards p { margin: 0.6rem 0 0; color: #3b3f52; }
.sc-meta { font: italic 400 0.92rem var(--serif); color: var(--brass-text) !important; }
@media (min-width: 800px) { .section-cards { grid-template-columns: 1fr 1fr; } }
.points ul { list-style: none; margin: 0.5rem 0 1rem; padding: 0; display: grid; gap: 1rem; }
.points li { display: flex; flex-direction: column; gap: 0.2rem; padding-left: 1rem; border-left: 3px solid var(--brass-light); }
.points b { font: 600 0.98rem var(--sans); color: var(--ink-deep); }
.points span { color: #3b3f52; font-size: 0.92rem; }
@media (min-width: 800px) { .points ul { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.filters-bar { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: flex-end; padding: 1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; }
.filters-bar fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.filters-bar legend { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.3rem; width: 100%; }
select { font: inherit; font-size: 0.9rem; padding: 0.45rem 0.7rem; border: 1px solid #aebbd0; border-radius: 4px; background: #fff; color: var(--text); }
.chip { margin: 0; cursor: pointer; font-weight: 400; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 0.35rem 0.8rem; border: 1px solid var(--rule); border-radius: 999px; background: #fff; font-size: 0.86rem; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.empty-state { display: grid; gap: 2rem; align-items: center; padding: 1rem 0 2rem; }
.es-sheet { position: relative; aspect-ratio: 3 / 4; max-width: 15rem; width: 45%; justify-self: center; background: #fff; border: 1px solid var(--rule); box-shadow: 8px 8px 0 var(--kraft), 16px 16px 0 var(--kraft-line); border-radius: 2px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 22px, var(--rule-soft) 22px 23px); background-position: 0 30px; }
.es-sheet span { position: absolute; left: 14%; height: 3px; background: var(--ink); opacity: 0.18; border-radius: 2px; }
.es-sheet span:nth-child(1) { top: 12%; width: 55%; opacity: 0.55; height: 6px; }
.es-sheet span:nth-child(2) { top: 22%; width: 70%; }
.es-sheet span:nth-child(3) { top: 28%; width: 62%; }
.es-sheet span:nth-child(4) { top: 34%; width: 40%; }
.es-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.notify { margin-top: 1.25rem; max-width: 34rem; }
.notify-row { display: flex; gap: 0.5rem; }
.notify-row input { flex: 1; min-width: 0; }
.notify .notice { margin-top: 0.75rem; }
@media (min-width: 800px) { .empty-state { grid-template-columns: 0.7fr 1.3fr; gap: 3rem; } }

/* ---------- licenses ---------- */
.lic-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 2rem; font-size: 0.92rem; }
.lic-table th, .lic-table td { padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--rule-soft); text-align: center; vertical-align: top; }
.lic-table th[scope="row"] { text-align: left; font-weight: 400; }
.lic-table thead th { font: 600 0.92rem var(--sans); color: var(--ink-deep); border-bottom: 2px solid var(--rule); }
.yes { color: #1f6b45; font-weight: 600; }
.no { color: var(--muted); }

/* ---------- search ---------- */
.search-layout { display: grid; gap: 1.5rem; }
.search-layout > * { min-width: 0; }
.search-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; margin: 0.9rem 0 0.5rem; }
.search-tools .result-count { margin: 0; }
.sort { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-weight: 400; color: var(--muted); }
.facets { margin-top: 0.5rem; }
.facets > summary { font: 600 0.95rem var(--sans); color: var(--ink-deep); padding: 0.5rem 0; }
.facet { border: 0; margin: 0 0 1rem; padding: 0; }
.facet legend { font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.facet label { display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.2rem 0; font-weight: 400; font-size: 0.9rem; cursor: pointer; }
.facet input { width: auto; margin: 0; accent-color: var(--ink); }
.facet .n { margin-left: auto; color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.results[aria-busy="true"], [data-search][aria-busy="true"] .results { opacity: 0.6; }
.pager { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2rem; }
.pager a, .pager span { min-width: 2.5rem; text-align: center; padding: 0.4rem 0.6rem; border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; }
.pager span[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (min-width: 960px) {
  .search-layout { grid-template-columns: 16rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .search-layout .search-form { grid-column: 1 / -1; display: contents; }
  .search-layout .search-row, .search-layout .search-tools { grid-column: 1 / -1; }
  .search-layout .facets { grid-column: 1; }
  .search-layout .results { grid-column: 2; }
  .search-layout .facets > summary { pointer-events: none; list-style: none; }
  .search-layout .facets > summary::-webkit-details-marker { display: none; }
  .search-layout .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* header suggestions */
.suggest { position: absolute; right: 0; top: calc(100% + 0.4rem); width: 24rem; max-width: 90vw; list-style: none; margin: 0; padding: 0.3rem 0; background: #fff; border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 16px 36px -18px rgba(20, 38, 87, 0.5); z-index: 8; }
.suggest li { padding: 0.5rem 0.9rem; cursor: pointer; display: flex; flex-direction: column; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--rule-soft); }
.sg-t { font: 500 0.92rem var(--sans); color: var(--ink-deep); }
.sg-m { font-size: 0.78rem; color: var(--muted); }
.sg-all { border-top: 1px solid var(--rule-soft); color: var(--ink); font-size: 0.88rem; }

details > summary { cursor: pointer; }
.faq details { border-bottom: 1px solid var(--rule); padding: 0.85rem 0; }
.faq summary { font: 600 1.12rem/1.35 var(--serif); color: var(--ink-deep); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "2"; }
.faq details p { margin: 0.6rem 0 0.2rem; color: #3b3f52; }

/* ---------- forms ---------- */
label { display: block; font-weight: 500; margin-bottom: 0.3rem; }
input, textarea { font: inherit; width: 100%; padding: 0.65rem 0.8rem; border: 1px solid #aebbd0; border-radius: 4px; background: #fff; color: var(--text); }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 0.8rem 1rem; border-left: 4px solid var(--ink); background: var(--rule-soft); }
.notice-error { border-color: var(--red); background: #fbecef; }
.search-row { display: flex; gap: 0.5rem; }
.search-row input { flex: 1; min-width: 0; }
.result-count { color: var(--muted); }
.empty { margin-top: 1rem; }

/* ---------- thank-you ---------- */
.dl-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.dl-list li { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.15rem; }
.dl { font: 600 1.1rem var(--serif); word-break: break-all; }
.dl-meta { color: var(--muted); font-size: 0.85rem; }

.legal h2 { font-size: 1.35rem; }
.nf .mark { width: 3.5rem; height: 3.5rem; margin-bottom: 1rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: 4rem; background: var(--ink-deep); color: #d9e0ef; padding: 3rem 0 2rem; font-size: 0.9rem; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .mark { --ink: #fff; --paper: var(--ink-deep); }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { max-width: 26rem; margin-top: 0.8rem; color: #c4cde2; }
.site-footer h2 { font: 600 1.05rem var(--serif); color: var(--brass-light); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer .n { color: #9fabc8; font-size: 0.78rem; }
.mor { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #34467a; color: #e6ebf5; max-width: 48rem; }
.legal-line { color: #a9b4cf; font-size: 0.82rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1.4fr 0.8fr 0.8fr; } .foot-brand { grid-column: auto; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .btn { display: none; } }
