:root {
  --paper: #f4f2ee;
  --paper-deep: #ebe7df;
  --ink: #27241f;
  --muted: #716a5e;
  --line: #cfc7b9;
  --gold: #815c1c;
  --gold-dark: #5d3e0d;
  --page-width: 1180px;
  --serif-display: Georgia, 'Times New Roman', serif;
  --serif-body: Cambria, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--serif-body); }
img { display: block; max-width: 100%; }
a { color: var(--gold-dark); text-decoration-color: #bda067; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid #c99b3e; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif-display); line-height: 1.08; letter-spacing: -0.018em; }
h1 { max-width: 13ch; font-size: clamp(2.65rem, 5vw, 5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 3vw, 3.1rem); font-weight: 400; }
h3 { font-size: 1.55rem; font-weight: 400; }

.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 2; padding: .65rem 1rem; background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-shell { width: min(var(--page-width), calc(100% - 3rem)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding-block: 1.8rem 1rem; }
.brand { display: block; color: var(--ink); text-decoration: none; }
.brand__name { display: block; font: 400 clamp(2rem, 3vw, 2.8rem)/.95 var(--serif-display); letter-spacing: .02em; }
.brand__tagline { display: block; max-width: 50ch; margin-top: .65rem; color: var(--muted); font-size: .73rem; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.primary-nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 1.25rem; padding-bottom: .2rem; font-size: .95rem; }
.primary-nav a { color: var(--ink); text-decoration: none; }
.primary-nav a:hover { color: var(--gold-dark); text-decoration: underline; }
.primary-nav a.is-current { color: var(--gold-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.hero { padding: clamp(3.2rem, 7vw, 7rem) 0 clamp(4rem, 8vw, 8rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(270px, .65fr); align-items: center; gap: clamp(2rem, 8vw, 8rem); }
.hero__copy { padding-block: 1rem; }
.kicker { margin-bottom: .85rem; color: var(--gold-dark); font-size: .73rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.hero__intro { max-width: 45ch; margin: 1.5rem 0 2rem; color: #4e493f; font-size: 1.13rem; }
.hero__cover, .book-cover, .book-card__image { background: var(--paper-deep); border: 1px solid var(--line); box-shadow: 10px 14px 0 #ded6c9; }
.hero__cover { justify-self: end; width: min(100%, 350px); }
.hero__cover img { width: 100%; }
.hero__cover--empty { display: grid; aspect-ratio: 2 / 3; place-items: center; color: var(--muted); font-style: italic; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .65rem 1.15rem; border: 1px solid var(--gold); color: var(--gold-dark); font-size: .92rem; font-weight: 600; letter-spacing: .03em; text-decoration: none; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.button:hover { background: var(--gold-dark); color: #fffdf8; }
.button:active { transform: translateY(1px); }
.button--compact { min-height: 2.45rem; padding: .52rem .9rem; background: var(--gold-dark); color: #fffdf8; cursor: pointer; }
.button--compact:hover { background: var(--ink); }
.button--quiet { background: transparent; color: var(--gold-dark); }
.button--quiet:hover { background: var(--paper-deep); color: var(--ink); }
.cookie-banner { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 10; width: min(31rem, calc(100% - 2.5rem)); padding: 1.15rem; border: 1px solid var(--gold-dark); background: #fffdf8; box-shadow: 8px 10px 0 #d6c396; }
.cookie-banner p { margin: 0 0 .95rem; color: #413c34; font-size: .91rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.section { padding: clamp(3.8rem, 7vw, 7rem) 0; border-top: 1px solid var(--line); }
.section--quiet { background: #eeebe4; }
.section-heading { margin-bottom: 2.2rem; }
.section-heading h2 { max-width: 16ch; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
.book-grid--catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.book-card { display: grid; grid-template-columns: 120px 1fr; gap: 1.2rem; align-items: start; min-width: 0; }
.book-card__image { display: block; aspect-ratio: 2 / 3; overflow: hidden; }
.book-card__image img { width: 100%; height: 100%; object-fit: cover; }
.book-card__image span { display: grid; height: 100%; place-items: center; padding: 1rem; color: var(--muted); font-size: .78rem; text-align: center; }
.book-card__meta { margin-bottom: .25rem; color: var(--muted); font-size: .85rem; font-style: italic; }
.book-card h3 { margin-bottom: .55rem; }
.book-card h3 a { color: var(--ink); }
.book-card__copy > p:not(.book-card__meta) { margin-bottom: .65rem; color: #4e493f; font-size: .96rem; line-height: 1.55; }
.text-link { color: var(--gold-dark); font-size: .92rem; font-weight: 600; }
.subjects-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: start; }
.subjects-layout > div > p { max-width: 33ch; color: #4e493f; }
.subject-list { border-top: 1px solid var(--line); }
.subject-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.subject-list a:hover { color: var(--gold-dark); }
.statement { max-width: 730px; }
.statement p { max-width: 54ch; font-size: 1.16rem; }

.page-intro { padding: clamp(3rem, 7vw, 6rem) 0 2.5rem; border-bottom: 1px solid var(--line); }
.page-intro h1 { margin-bottom: 1rem; }
.page-intro p { max-width: 57ch; color: #4e493f; font-size: 1.12rem; }
.page-intro--narrow .site-shell { max-width: 880px; }
.about-intro, .method-intro { padding-bottom: clamp(3.8rem, 7vw, 7rem); }
.about-intro__grid, .method-intro__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .62fr); gap: clamp(3rem, 9vw, 9rem); align-items: end; }
.about-intro__copy, .method-intro__grid > p { max-width: 34ch; margin: 0; color: #4e493f; font-size: 1.1rem; }
.about-intro__copy p:last-child { margin-bottom: 0; }
.about-story { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(3rem, 10vw, 10rem); align-items: start; }
.about-story__main { max-width: 660px; }
.about-story__main h2 { max-width: 14ch; margin-bottom: 1.25rem; }
.about-story__main p { color: #413c34; font-size: 1.08rem; }
.about-story__aside { padding: 1.3rem 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--line); }
.about-story__aside h3 { margin-bottom: .9rem; font-size: 1.5rem; }
.about-story__aside ul { margin: 0; padding: 0; list-style: none; }
.about-story__aside li { padding: .7rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.edition-plates-layout, .method-boundary__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(340px, .72fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.edition-plates-layout h2, .method-boundary__grid h2 { max-width: 14ch; }
.edition-plates-layout p:not(.kicker), .method-boundary__grid p:not(.kicker) { max-width: 46ch; color: #4e493f; }
.edition-plates { display: flex; justify-content: end; align-items: end; gap: clamp(1rem, 3vw, 2rem); }
.edition-plates a { width: min(45%, 180px); color: var(--ink); text-decoration: none; }
.edition-plates img { width: 100%; border: 1px solid var(--line); box-shadow: 7px 9px 0 #dcd4c5; }
.edition-plates span { display: block; margin-top: .65rem; font-size: .85rem; line-height: 1.35; }
.about-etsy .statement { padding-top: .5rem; }

.method-steps { max-width: 860px; }
.method-steps article { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 1.5rem; padding: 2.2rem 0; border-top: 1px solid var(--line); }
.method-steps article:last-child { border-bottom: 1px solid var(--line); }
.method-step__number { margin: .45rem 0 0; color: var(--gold-dark); font: 600 .84rem/1 Georgia, serif; letter-spacing: .13em; }
.method-steps h2 { margin-bottom: .65rem; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.method-steps article p:not(.method-step__number) { max-width: 58ch; margin-bottom: 0; color: #4e493f; }
.method-boundary .edition-plates { justify-content: start; }
.catalogue-section { padding: 3rem 0 6rem; }
.catalogue-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.catalogue-filter { border-top: 1px solid var(--line); }
.catalogue-filter h2 { margin: .8rem 0; font-size: 1.4rem; }
.catalogue-filter a { display: flex; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .92rem; text-decoration: none; }
.catalogue-filter a.is-active, .catalogue-filter a:hover { color: var(--gold-dark); }
.empty-state { max-width: 570px; padding: 2.5rem; border: 1px solid var(--line); background: var(--paper-deep); }
.empty-state h2 { font-size: 2rem; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1.6rem; color: var(--muted); font-size: .86rem; }
.book-hero { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.book-hero__grid { display: grid; grid-template-columns: minmax(220px, 350px) minmax(0, 1fr); gap: clamp(2.5rem, 8vw, 8rem); align-items: center; padding-top: 2rem; }
.book-cover { width: 100%; overflow: hidden; }
.book-cover img { width: 100%; }
.book-cover span { display: grid; aspect-ratio: 2 / 3; place-items: center; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.image-lightbox-trigger { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; text-align: left; }
.image-lightbox-trigger img { transition: transform .18s ease; }
.image-lightbox-trigger:hover img { transform: scale(1.015); }
.image-lightbox-trigger:focus-visible { outline: 3px solid #c99b3e; outline-offset: -5px; }
.book-subtitle { max-width: 50ch; margin: -1rem 0 1rem; color: #4e493f; font-size: 1.15rem; font-style: italic; }
.book-author { margin-bottom: 1.3rem; color: var(--muted); font-style: italic; }
.book-hero__summary { max-width: 52ch; margin-bottom: 1.8rem; font-size: 1.12rem; }
.book-hero .button--primary { width: min(100%, 27rem); min-height: 4.25rem; padding: .9rem 1.4rem; border: 1px solid #4b3712; background: #f2c94c; box-shadow: 5px 5px 0 #d6c396; color: #27241f; font-size: 1.08rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.book-hero .button--primary:hover { background: #e4b632; color: #27241f; }
.book-hero .button--primary:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 #d6c396; }
.etsy-note { margin: .8rem 0 0; color: var(--muted); font-size: .85rem; }
.book-content { padding-top: clamp(3.5rem, 6vw, 6rem); }
.book-content__grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(3rem, 8vw, 8rem); }
.prose { max-width: 680px; }
.prose h2 { margin: 0 0 1.1rem; font-size: 2.3rem; }
.prose h2:not(:first-child) { margin-top: 3.1rem; }
.prose p { color: #413c34; }
.book-facts { align-self: start; padding-top: .5rem; border-top: 1px solid var(--line); }
.book-facts h2 { margin: .85rem 0 1.1rem; font-size: 1.55rem; }
.book-facts dl { margin: 0; }
.book-facts dl > div { display: grid; grid-template-columns: 1fr 1.2fr; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .91rem; }
.book-facts dt { color: var(--muted); }
.book-facts dd { margin: 0; text-align: right; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.preview-grid figure { margin: 0; }
.preview-grid img { width: 100%; border: 1px solid var(--line); }
.preview-grid figcaption { margin-top: .45rem; color: var(--muted); font-size: .85rem; }
.image-lightbox { width: min(1120px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; overflow: auto; border: 1px solid var(--line); background: var(--paper); color: var(--ink); box-shadow: 0 1.5rem 4rem rgb(39 36 31 / .28); }
.image-lightbox::backdrop { background: rgb(31 30 28 / .72); }
.image-lightbox__shell { padding: clamp(1rem, 2.5vw, 1.8rem); }
.image-lightbox__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.image-lightbox__position { margin: 0; color: var(--muted); font-size: .88rem; }
.image-lightbox__close, .image-lightbox__control { min-height: 2.6rem; padding: .55rem .85rem; border: 1px solid var(--gold); background: transparent; color: var(--gold-dark); font: 600 .86rem/1.1 var(--serif-body); cursor: pointer; }
.image-lightbox__close:hover, .image-lightbox__control:hover { background: var(--gold-dark); color: #fffdf8; }
.image-lightbox__close:active, .image-lightbox__control:active { transform: translateY(1px); }
.image-lightbox__close:focus-visible, .image-lightbox__control:focus-visible { outline: 3px solid #c99b3e; outline-offset: 3px; }
.image-lightbox__stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(.65rem, 2vw, 1.4rem); align-items: center; }
.image-lightbox__control[hidden] { display: none; }
.image-lightbox__figure { min-width: 0; margin: 0; text-align: center; }
.image-lightbox__figure img { width: auto; max-width: 100%; max-height: min(72dvh, 850px); margin: 0 auto; border: 1px solid var(--line); object-fit: contain; }
.image-lightbox__figure figcaption { margin-top: .75rem; color: var(--muted); font-size: .88rem; text-align: left; }

.method-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 4rem; }
.method-list article { padding: 2rem 0; border-top: 1px solid var(--line); }
.method-list h2 { margin-bottom: .6rem; font-size: 1.8rem; }
.method-list p { margin: 0; color: #4e493f; }
.site-footer { border-top: 1px solid var(--line); background: var(--paper-deep); }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; padding-block: 1.4rem; color: var(--muted); font-size: .84rem; }
.footer__inner p { max-width: 55ch; margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: end; gap: 1rem; }
.footer__cookie-settings { margin: 0; padding: 0; border: 0; background: transparent; color: var(--gold-dark); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: #bda067; text-underline-offset: 3px; }
.footer__cookie-settings:hover { color: var(--ink); }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .masthead { align-items: start; flex-direction: column; }
  .primary-nav { justify-content: start; padding-bottom: .4rem; }
  .hero__grid, .subjects-layout, .catalogue-layout, .book-hero__grid, .book-content__grid { grid-template-columns: 1fr; }
  .about-intro__grid, .method-intro__grid, .about-story, .edition-plates-layout, .method-boundary__grid { grid-template-columns: 1fr; }
  .about-intro__copy, .method-intro__grid > p { max-width: 52ch; }
  .about-story__aside { max-width: 520px; }
  .edition-plates { justify-content: start; }
  .hero__cover { justify-self: start; width: min(260px, 80%); }
  .book-grid, .book-grid--catalogue { grid-template-columns: 1fr; }
  .catalogue-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.2rem; }
  .catalogue-filter h2 { grid-column: 1 / -1; }
  .book-cover { max-width: 300px; }
  .book-facts { max-width: 500px; }
  .preview-grid { grid-template-columns: 1fr 1fr; }
  .image-lightbox__stage { grid-template-columns: 1fr 1fr; }
  .image-lightbox__figure { grid-column: 1 / -1; grid-row: 1; }
  .image-lightbox__control { width: 100%; }
  .method-list { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
  .footer__links { justify-content: start; }
  .cookie-banner { right: 1rem; bottom: 1rem; width: calc(100% - 2rem); }
}

@media (max-width: 520px) {
  .site-shell { width: min(var(--page-width), calc(100% - 2rem)); }
  .primary-nav { gap: .8rem 1rem; font-size: .87rem; }
  .brand__tagline { letter-spacing: .09em; }
  .hero { padding-top: 2.7rem; }
  .book-card { grid-template-columns: 96px 1fr; }
  .method-steps article { grid-template-columns: 1fr; gap: .5rem; }
  .method-step__number { margin-top: 0; }
  .catalogue-filter { grid-template-columns: 1fr; }
  .book-facts dl > div { grid-template-columns: .9fr 1.1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .book-hero .button--primary { width: 100%; min-height: 4rem; }
  .image-lightbox { width: min(100% - 1rem, 1120px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .image-lightbox-trigger img { transition: none; }
}
