/* Ink Hill Press — site styles. Tokens come from the Ink Hill Press design system (brand kit v1). */
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/LibreCaslonText-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("../fonts/Fredoka-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-var.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --paper: #FBFAF7; --paper-raised: #FFFFFF; --paper-sunk: #F2F0EA;
  --ink: #1F2433; --ink-muted: #5A6070; --line: #E4E0D8;
  --hill: #2F6B4F; --hill-soft: #E1EEE6; --on-hill: #FFFFFF;
  --cv-orange: #E8622A; --cv-orange-text: #C2491A; --cv-orange-soft: #FDE6DA;
  --cv-sun: #F7B731; --cv-sun-soft: #FEF2D2;
  --cv-meadow: #2E9A5C; --cv-meadow-text: #237A48;
  --cv-sky: #2A7FC9; --cv-sky-text: #1F68A8; --cv-sky-soft: #E0EEFA;
  --cv-berry: #CF3F73; --focus: #1F68A8; --danger: #B3261E;
  --font-press: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --font-series: Fredoka, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-sans: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-press: 4px; --radius-card: 16px; --radius-play: 28px; --radius-pill: 999px;
  --shadow-book: 0 1px 2px rgba(31,36,51,.08), 0 12px 28px rgba(31,36,51,.16);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--font-sans); }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hill); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--radius-press); z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
.eyebrow { font: 600 13px/1.3 var(--font-press); letter-spacing: .16em; text-transform: uppercase; color: var(--hill); }
.press-display { font: 500 clamp(40px, 5.4vw, 72px)/1.04 var(--font-press); letter-spacing: -.01em; }
.press-h2 { font: 500 clamp(28px, 3.2vw, 40px)/1.15 var(--font-press); }
.press-h3 { font: 500 24px/1.2 var(--font-press); }
.series-display { font: 600 clamp(40px, 5vw, 64px)/1 var(--font-series); }
.series-h2 { font: 600 clamp(28px, 3.4vw, 36px)/1.1 var(--font-series); }
.series-h3 { font: 600 21px/1.25 var(--font-series); }
.lead { font-size: 19px; line-height: 1.55; }
.muted { color: var(--ink-muted); }
.small { font-size: 13px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  font: 600 15px/1 var(--font-sans); text-decoration: none; border-radius: var(--radius-press);
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-hill { background: var(--hill); border-color: var(--hill); color: var(--on-hill); }
.btn-hill:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-cv { border-radius: var(--radius-pill); background: var(--cv-orange); border-color: var(--cv-orange); color: var(--ink); }
.btn-cv:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-round { border-radius: var(--radius-pill); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 16px; padding-bottom: 16px; }
.site-header .logo img { height: 40px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--hill); }
.nav .btn { padding: 0 20px; min-height: 44px; }
@media (max-width: 720px) {
  .site-header .logo img { height: 34px; }
  .nav { width: 100%; gap: 4px 18px; }
  .nav .btn { display: none; }
}

/* sections */
.section { padding-top: 88px; }
.section-last { padding-bottom: 96px; }
@media (max-width: 720px) { .section { padding-top: 64px; } .section-last { padding-bottom: 64px; } }
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 72px; }
.hero > .text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero > .art { flex: 0 1 380px; display: flex; justify-content: center; margin: 0 auto; }
.cover { width: 360px; max-width: 100%; border-radius: 6px; box-shadow: var(--shadow-book); }
.cover-tilt { transform: rotate(-1.5deg); }
@media (prefers-reduced-motion: no-preference) { .cover-tilt { transition: transform .3s ease; } .cover-tilt:hover { transform: rotate(0); } }

.panel { border-radius: var(--radius-play); padding: 56px clamp(24px, 5vw, 64px); }
.panel-orange { background: var(--cv-orange-soft); }
.panel-hill { background: var(--hill-soft); border-radius: var(--radius-press); }
.panel-sky { background: var(--cv-sky-soft); }
.panel-ink { background: var(--ink); color: var(--paper); }
.split { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.split > * { flex: 1 1 380px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }

.stat-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.stat-list li { background: var(--paper-raised); border-radius: var(--radius-card); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.stat-list .num { font: 600 34px/1 var(--font-series); }
.stat-list .label { font-weight: 600; }
.stat-list .note { font-size: 14px; color: var(--ink-muted); }

.card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card .more { margin-top: auto; font-weight: 700; }
.icon-chip { width: 48px; height: 48px; border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.pillars > div { border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }

.page-art { display: flex; flex-direction: column; gap: 12px; }
.page-art img { width: 100%; aspect-ratio: 700 / 930; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-play); padding: 14px; }

/* forms */
.form { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-end; }
.field-group { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; min-width: 0; }
.form label, .form legend { font-weight: 600; font-size: 14px; }
.field { width: 100%; min-height: 48px; padding: 0 16px; font: 400 16px var(--font-sans); color: var(--ink);
  background: var(--paper-raised); border: 1.5px solid var(--ink-muted); border-radius: var(--radius-press); }
.choices { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; flex-basis: 100%; }
.choices .row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--ink-muted);
  border-radius: var(--radius-pill); background: var(--paper-raised); cursor: pointer; font-weight: 600; font-size: 15px; }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--cv-sky-text); }
.hp { position: absolute; left: -5000px; }
.form-status { flex-basis: 100%; font-size: 15px; min-height: 0; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--paper-raised); color: var(--ink); border-radius: var(--radius-card); padding: 14px 16px; border: 1.5px solid var(--cv-meadow-text); }
.form-status.err { color: var(--danger); font-weight: 600; }
.panel-ink .form label, .panel-ink .form legend { color: var(--paper); }
.fine { flex-basis: 100%; font-size: 13px; color: var(--ink-muted); }
.panel-ink .fine { color: #C9CCD6; }

/* book page */
.crumbs { font-size: 14px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); }
.pill { display: inline-block; border-radius: var(--radius-pill); padding: 6px 14px; font-size: 13px; font-weight: 700; }
.pill-white { background: var(--paper-raised); }
.pill-sun { background: var(--cv-sun); }
.dots { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.dots li { display: flex; gap: 14px; align-items: flex-start; }
.dots li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px; border-radius: 999px; background: var(--dot, var(--cv-orange)); }
.callout { background: var(--cv-sun-soft); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.details { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; }
.details dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; font-size: 15px; font-variant-numeric: tabular-nums; }
.details dt { color: var(--ink-muted); }
.details dd { margin: 0; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font: 600 18px/1.35 var(--font-series); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--cv-orange-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 20px; color: var(--ink-muted); }

/* footer */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--paper); }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; padding-top: 56px; padding-bottom: 40px; }
.site-footer .about { display: flex; flex-direction: column; gap: 14px; flex: 1 1 300px; }
.site-footer .about img { height: 36px; width: auto; align-self: flex-start; }
.site-footer .about p { color: #C9CCD6; max-width: 30em; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 10px 40px; font-weight: 600; font-size: 15px; align-content: start; }
.site-footer .legal { border-top: 1px solid #3A4052; padding-top: 20px; padding-bottom: 32px; font-size: 13px; color: #C9CCD6; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

.prose { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font: 500 26px/1.25 var(--font-press); margin-top: 16px; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
