@font-face {
  font-family: Caprasimo;
  src: url("/fonts/caprasimo.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --fern: #4c5c48; --ink: #283225; --clay: #c46c50; --deep: #9e4a31;
  --coral: #d48c74; --bud: #d6a768; --sun: #e2a63a; --seed: #4a3021;
  --cream: #f6e6da; --blush: #f3e0e1; --paper: #fbf4f3;
  --edge: clamp(1.25rem, 5vw, 5rem); --bar: 3.75rem;
  font-family: "DM Sans", sans-serif; color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
body, figure, blockquote, h1, h2, h3, p, ol { margin: 0; }
body { line-height: 1.55; }
button, input, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button { background: transparent; border: 1px solid currentColor; }
a { color: inherit; text-underline-offset: .2em; }
a:hover, button:hover, summary:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, .display-sample, blockquote { font-family: Caprasimo, Georgia, serif; font-weight: 400; }
:root { --display: Caprasimo, Georgia, serif; --bar: 58px; }
h1, h2 { font-size: clamp(2.65rem, 5vw, 5.5rem); line-height: .98; letter-spacing: -.035em; }
h3 { font-size: 1.45rem; }
button { border: 0; padding: 0; }
.sr-only, .skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; top: 12px; left: var(--edge); width: auto; height: auto; padding: .5rem; clip-path: none; background: var(--paper); }
.mast {
  height: var(--bar); position: sticky; top: 0; z-index: 5; display: flex; align-items: center;
  gap: clamp(12px, 2vw, 36px); padding-inline: var(--edge); background: var(--paper); border-bottom: 1px solid var(--fern);
}
.mast-name { font: 1.35rem var(--display); letter-spacing: -.045em; text-decoration: none; margin-right: auto; }
.mast nav { display: flex; align-items: center; }
.mast nav:last-child { gap: 1.3rem; font-size: .88rem; font-weight: 650; }
.mast nav:last-child > * { min-height: 44px; display: grid; place-items: center; }
.review-link { color: var(--deep); }
#progress a { width: 24px; height: 44px; display: grid; place-items: center; }
#progress a::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--fern); border-radius: 50%; }
#progress a[data-answered]::before { background: var(--fern); }
#progress a:hover::before { outline: 1px solid var(--fern); outline-offset: 2px; }
section { scroll-margin-top: var(--bar); }
.chapter {
  min-height: calc(100svh - var(--bar)); padding: clamp(1.85rem, 4.4vh, 4rem) var(--edge);
  display: grid; grid-template-columns: minmax(0,1fr); align-content: center;
}
.page { width: min(100%, 78rem); min-width: 0; margin-inline: auto; }
.cream { background: var(--cream); } .paper { background: var(--paper); }
.blush { background: var(--blush); } .fern { background: var(--fern); color: var(--paper); }
.heading { margin-bottom: clamp(1.1rem, 2.5vh, 2rem); }
.heading p, .cover-credit p { margin-top: .6rem; font-size: clamp(.95rem, 1.25vw, 1.2rem); max-width: 54ch; }
#cover {
  padding: clamp(20px, 4vw, 64px) var(--edge); background: var(--fern) url("/photos/arrangement-57.jpg") center 39% / cover;
  display: grid; grid-template-columns: minmax(0,1fr); place-items: center; min-height: calc(100svh - var(--bar));
}
.jacket { width: min(100%, 71rem); min-width: 0; }
.bookplate { background: var(--cream); display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto 1fr auto; min-height: min(76svh, 50rem); padding: clamp(22px, 3vw, 48px); }
.cover-date { display: flex; justify-content: end; font-size: .86rem; font-weight: 650; color: var(--fern); }
.cover-art { display: grid; place-items: center; }
.cover-art img { width: min(100%, 73svh, 48rem); }
.cover-credit { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--fern); }
.cover-credit h1 { font-size: clamp(1.9rem, 3.3vw, 3.7rem); color: var(--fern); }
.cover-credit a, .arrow { width: 44px; height: 44px; flex: none; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-size: 1.3rem; }
.feature .page { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1fr); grid-template-rows: 1fr auto 1fr; gap: 0 clamp(2rem,6vw,6rem); }
.feature .heading { align-self: end; margin: 0; }
.feature .heading p { max-width: 25ch; font-size: clamp(1.1rem, 1.75vw, 1.7rem); }
.feature details { align-self: start; grid-row: 2; }
.feature-photo { grid-row: 1 / 4; grid-column: 2; }
.feature-photo img { width: 100%; height: clamp(24rem, 69svh, 50rem); object-fit: cover; }
#idea .page { grid-template-columns: minmax(0,1fr) minmax(0,.8fr); }
#idea .feature-photo { grid-column: 1; }
#idea .heading { grid-column: 2; grid-row: 1 / 4; align-self: center; }
details { font-size: .94rem; }
summary { width: fit-content; display: flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; }
details[open] > summary::after { content: "−"; }
.detail-body { max-width: 62ch; margin: .25rem 0 1rem; }
.detail-body p + p, .detail-body h3 { margin-top: .75rem; }
.detail-body dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; }
.detail-body dt { font-weight: 650; }
.detail-body dd { margin: 0; }
.anatomy { display: grid; place-items: center; }
.anatomy svg { width: min(100%, 76svh); overflow: visible; }
.leaders path { fill: none; stroke: var(--deep); stroke-width: 2.5; }
.leaders circle { fill: var(--deep); }
.callouts { fill: var(--ink); font-size: 36px; font-weight: 600; }
.track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--fern) var(--cream); position: relative;
}
.track > figure { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; display: grid; place-items: center; }
.viewer-tools { display: flex; align-items: center; gap: .6rem; padding-block: .5rem; }
.viewer-tools .caption { font-size: .95rem; font-weight: 650; margin-right: auto; }
.arrow:disabled { opacity: .48; cursor: default; }
.logos .track { background: var(--paper); }
.logos .track figure { height: clamp(15rem,41svh,28rem); padding: 1rem; }
.logos .track img { width: 80%; height: 100%; min-height: 0; object-fit: contain; }
.logos figure:last-child, .logos .thumbnails button:last-child { background: var(--fern); }
.thumbnails { display: flex; gap: 6px; }
.thumbnails button { border: 2px solid transparent; background: var(--paper); width: clamp(44px,4.5vw,68px); height: 44px; padding: 2px; }
.thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.thumbnails button[aria-pressed="true"] { border-color: var(--ink); }
.photos .track { gap: 8px; }
.photos .track > figure { flex-basis: 47%; }
.photos .track::after { content: ""; flex: 0 0 calc(53% - 16px); }
.photos img { width: 100%; height: min(48svh,32rem); object-fit: cover; }
.placements .track img { width: auto; height: min(43svh,27rem); max-width: 100%; object-fit: contain; }
.placements .thumbnails img { object-fit: cover; }
.flat-proofs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; gap: 12px; }
.flat-proofs img { max-height: 160px; margin: 0 auto; }
.flat-proofs figcaption { margin-top: .5rem; font-size: .85rem; }
.palette { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); margin: 0; padding: 0; list-style: none; }
.palette li { grid-column: span 3; padding: clamp(12px,1.5vw,24px); display: flex; align-items: flex-end; font: clamp(1.55rem,2.2vw,2.4rem)/1 var(--display); min-height: clamp(5rem,14svh,9rem); }
.palette li:first-child { grid-column: span 6; }
.color-fern { background: var(--fern); color: var(--paper); } .color-ink { background: var(--ink); color: var(--paper); }
.color-clay { background: var(--clay); } .color-clay-deep { background: var(--deep); color: var(--paper); }
.color-coral { background: var(--coral); } .color-bud { background: var(--bud); }
.color-sunflower { background: var(--sun); } .color-seed { background: var(--seed); color: var(--paper); }
.color-cream { background: var(--cream); } .color-blush { background: var(--blush); } .color-paper { background: var(--paper); }
.type-sheet { background: var(--fern); color: var(--cream); display: grid; grid-template-columns: 1.5fr 1fr; }
.type-sheet > div { padding: clamp(1.4rem,3.8vw,4rem); display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem; }
.type-sheet span, .quotes figcaption { font-size: .9rem; font-weight: 600; }
.display-proof div { font: clamp(4rem,8.4vw,8.5rem)/.91 var(--display); letter-spacing: -.04em; }
.body-proof { background: var(--bud); color: var(--ink); }
.body-proof div { font-size: clamp(1.7rem,3.9vw,4.3rem); line-height: 1.04; letter-spacing: -.045em; }
.quotes { padding: clamp(1.25rem,3vw,3rem); background: var(--paper); color: var(--deep); }
.quotes figcaption { color: var(--ink); }
.quotes blockquote { font: clamp(2.6rem,5.2vw,5.7rem)/1 var(--display); letter-spacing: -.032em; margin-top: 1rem; }
.quotes blockquote + blockquote { text-align: right; color: var(--fern); }
.online-proofs { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(0,1fr); gap: clamp(.8rem,2.5vw,2.5rem); align-items: center; }
.online-proofs svg { width: 100%; height: auto; max-height: 42svh; }
.online-proofs figcaption { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .9rem; font-weight: 650; }
.enlarge { min-height: 44px; text-decoration: underline; }
.fields, .send-fields { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-block: .4rem 1rem; }
.question, .note-field { display: block; font-weight: 600; font-size: .9rem; }
.question { flex: 1 1 15rem; max-width: 30rem; }
.question span { font-weight: 400; }
input[type=text], textarea {
  display: block; width: 100%; border: 1px solid var(--fern); border-radius: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.4 "DM Sans", sans-serif; padding: .55rem .75rem; margin-top: .3rem; scroll-margin-top: calc(var(--bar) + 48px);
}
textarea { resize: vertical; }
.decision-slot { scroll-margin-block: calc(var(--bar) + 24px) 24px; }
.decision { border: 0; border-top: 1px solid currentColor; padding: .7rem 0 0; margin: 0; min-width: 0; display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.decision-title { font-size: .95rem; font-weight: 650; margin-right: auto; }
.choices { display: inline-flex; gap: .5rem; }
.choices label, .primary, #edit-review {
  border: 1px solid currentColor; border-radius: 2rem; min-height: 44px; padding: .55rem 1rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 600;
}
.choices input { margin: 0; width: 1rem; height: 1rem; accent-color: var(--ink); }
.choices label:has(:checked), .primary, #edit-review { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.fern .choices label:has(:checked) { background: var(--paper); color: var(--ink); }
.note-field { flex-basis: 100%; max-width: 45rem; }
.return { min-height: 44px; display: inline-flex; align-items: center; }
#review { align-content: start; }
#review .page { max-width: 65rem; }
#review h2 { margin-bottom: 1.15rem; overflow-wrap: anywhere; }
.summary { margin-block: .75rem 1.2rem; }
.summary-row { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; align-items: center; gap: clamp(.8rem,1.6vw,1.5rem); padding: .4rem 0; border-bottom: 1px solid var(--fern); }
.summary-copy { display: flex; gap: .3rem 1rem; flex-wrap: wrap; align-items: baseline; overflow-wrap: anywhere; }
.summary-copy small { font-size: .9rem; }
.summary-copy p { flex-basis: 100%; white-space: pre-wrap; }
.summary-row a { min-height: 44px; display: grid; place-items: center; padding-inline: .3rem; }
.thumb { width: 100%; height: 42px; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.thumb img, .thumb svg { width: 100%; height: 100%; object-fit: contain; }
.thumb img.photo { object-fit: cover; }
.thumb-colors { display: flex; }
.thumb-colors i { flex: 1; height: 100%; }
.thumb-type, .thumb-voice { font: 1.5rem var(--display); background: var(--fern); color: var(--cream); }
.thumb-voice { background: var(--blush); color: var(--deep); }
.answers { max-width: 52rem; margin-block: .7rem; }
.answers dt { font-weight: 650; }
.answers dd { margin: 0 0 .65rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.answers a { margin-left: .5rem; }
#form-status:not(:empty), #storage-status:not(:empty) { background: var(--paper); color: var(--ink); padding: .7rem; }
#storage-status:not(:empty) { position: sticky; top: var(--bar); z-index: 4; }
dialog { max-height: 85svh; padding: clamp(18px,3vw,38px); width: min(38rem,calc(100% - 2rem)); background: var(--paper); color: var(--ink); border: 1px solid var(--fern); }
dialog::backdrop { background-color: var(--ink); opacity: .78; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.dialog-top h2 { font-size: clamp(2rem,3vw,3rem); }
.dialog-top button { min-height: 44px; text-decoration: underline; }
#contents ol { columns: 2; padding-left: 1.4rem; }
#contents a { min-height: 44px; display: inline-flex; align-items: center; }
#art-viewer { width: min(96vw,105rem); }
#art-scroll { max-height: 65svh; overflow: auto; }
#art-scroll > * { max-width: none; height: auto; margin: 0 auto; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes open-book { from { opacity: .7; transform: translateY(6px); } }
  .cover-art { animation: open-book .5s ease-out; }
}
@media (max-width: 680px) {
  :root { --bar: 52px; }
  .mast { gap: 7px; }
  .mast-name { font-size: 1.16rem; }
  .mast nav:last-child { gap: 8px; font-size: .82rem; }
  #contents-open { width: 44px; }
  #contents-open span { display: none; }
  #contents-open::before { content: ""; width: 18px; height: 7px; border-block: 2px solid currentColor; }
  #progress a { width: clamp(14px,calc(15vw - 34px),24px); }
  .chapter { padding-block: 1.75rem; }
  .bookplate { min-height: min(72svh,38rem); }
  .cover-date { font-size: .8rem; }
  .cover-credit { align-items: flex-start; }
  .cover-credit p { font-size: .82rem; }
  .feature .page, #idea .page { display: flex; flex-direction: column; }
  .feature .heading, #idea .heading { align-self: start; margin: 0 0 1.1rem; }
  .feature .heading p { font-size: 1rem; max-width: 35ch; }
  .feature-photo img { height: clamp(16rem,47svh,30rem); }
  .anatomy svg { width: 100%; }
  .callouts { font-size: 40px; }
  .logos .track figure { height: clamp(14rem,32svh,20rem); }
  .logos .track img { width: 100%; }
  .viewer-tools { flex-wrap: wrap; gap: .4rem; }
  .viewer-tools .thumbnails { order: 2; width: 100%; }
  .photos .track > figure { flex-basis: 92%; }
  .photos .track::after { flex-basis: calc(8% - 16px); }
  .photos img { height: min(45svh,24rem); }
  .placements .track img { width: 100%; height: auto; max-height: 43svh; }
  .palette { grid-template-columns: 1fr 1fr; }
  .palette li { grid-column: span 1; font-size: 1.54rem; min-height: clamp(2.9rem,6.8svh,4rem); padding: .65rem .85rem; }
  .palette li:first-child { grid-column: span 2; }
  .type-sheet { grid-template-columns: 1fr; }
  .type-sheet > div { gap: .75rem; }
  .display-proof div { font-size: clamp(3.8rem,16vw,5rem); }
  .quotes blockquote { font-size: clamp(2.25rem,9.6vw,3.8rem); }
  .online-proofs { grid-template-columns: minmax(0,1fr); gap: .4rem; }
  .online-proofs figure:last-child { width: 48%; min-width: 10rem; justify-self: end; }
  .fields, .send-fields { gap: .55rem; }
  .question { flex-basis: 100%; }
  .choices { gap: .35rem; }
  .choices label { font-size: .87rem; padding: .5rem .65rem; }
  .decision { align-items: start; }
  .decision-title { flex-basis: 100%; }
  .summary-row { grid-template-columns: 48px minmax(0,1fr) auto; gap: .6rem; padding: .33rem 0; }
  .summary-copy { display: block; }
  .summary-copy small { display: block; font-size: .82rem; }
  .summary-row a { font-size: .9rem; }
}
@media (max-width: 360px) {
  .mast, .mast nav:last-child { gap: 7px; }
  .mast-name { font-size: 1.12rem; }
  .thumbnails { gap: 3px; }
}
