/* Site chrome follows pathlesspath.com. Printed surfaces keep their own colors. */
body { font-size: 15px; }
h1, h2, h3 { color: var(--ink); }
h1, h2 { font-weight: 500; letter-spacing: -.022em; }
h1 { font-size: 44px; line-height: 1.08; }
a:hover, .text-button:hover { color: var(--accent-hover); }

.masthead {
  max-width: 1440px; height: 78px; margin: auto; padding: 0 32px;
  border-bottom-color: var(--line);
  gap: 24px;
}
.identity { font-size: 23px; font-weight: 500; gap: 10px; }
.identity svg { width: 23px; height: 31px; }
.tabs { gap: 26px; }
.tabs button { padding: 0 2px; font-size: 14px; color: var(--muted); border-bottom-width: 2px; }
.tabs button:hover { color: var(--accent); }
.tabs button[aria-selected=true] { color: var(--ink); font-weight: 600; }
.exhibition, .journal-page { max-width: 1440px; }
.book-stage, .journal-stage { grid-template-columns: minmax(0,1fr) 350px; }
.gallery, .journal-gallery { background: var(--stage-background); }
.gallery.detail-view { background: var(--stage-background); }
.gallery { min-height: 650px; height: min(850px,calc(100vh - 78px)); }
.journal-gallery { min-height: 650px; height: min(850px,calc(100vh - 78px)); }
.details, .journal-details { padding: 36px 32px 40px 24px; border-left: 0; }
.intro h1, .journal-details h1 { font-size: 44px; line-height: 1.08; margin: 0 0 16px; }
.dek, .journal-details .journal-intro { font: 15px/1.7 var(--sans); color: var(--text); margin: 0 0 24px; }

/* A small set of controls, without a different button treatment for each panel. */
.primary-button { border-radius: 5px; font-size: 14px; font-weight: 500; min-height: 44px; }
.primary-button:hover { background: #2c4f77; color: white; }
.text-button { color: var(--accent); border-bottom: 0; text-underline-offset: 4px; }
.text-button:hover { text-decoration: underline; }
.pill-button, .journal-film-stops button, .notecards-choices button,
.quote-filters button, .quote-search, .cost-switch button {
  border-radius: 5px; border-color: var(--line); background: transparent;
}
.pill-button:hover, .journal-film-stops button:hover, .notecards-choices button:hover,
.quote-filters button:hover { background: var(--surface-subtle); color: var(--ink); }
.viewer-tools, .journal-tools {
  border-radius: 5px; border-color: var(--line); background: var(--paper); backdrop-filter: none;
}
.viewer-tools { top: 22px; right: 26px; }
.journal-tools { top: 22px; right: 26px; }
.feature-close { border-radius: 5px; background: var(--paper); }
.modes, .journal-modes { border-top: 0; gap: 6px; padding-top: 8px; }
.modes button, .journal-modes button { border-radius: 5px; font-size: 13px; }
.modes button:not([aria-pressed=true]):hover, .journal-modes button:not([aria-pressed=true]):hover {
  background: var(--surface-subtle); color: var(--ink);
}
.gallery-bottom p, .journal-gallery-bottom, .journal-film p { color: var(--muted); }
.journal-page-controls>button:not(.pill-button) { border-radius: 5px; border-color: var(--line); background: var(--paper); }
.journal-page-controls .pill-button { background: var(--paper); }
.journal-page-controls>span { color: var(--text); }
.sliders { padding: 2px 0 8px; }
input[type=range]::-webkit-slider-runnable-track { background: var(--line); }
input[type=range]::-moz-range-track { background: var(--line); }
.layer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; padding-top: 14px; }
.layer-list button { border: 0; border-radius: 4px; padding: 9px 5px; font-size: 13px; gap: 9px; }
.layer-list .arrow { display: none; }
.layer-list button:hover, .layer-list button[aria-pressed=true], .craft-list button[aria-pressed=true],
.chapter-sheets button:hover, .chapter-sheets button[aria-pressed=true] { background: var(--surface-subtle); }
.chapter-sheets button[aria-pressed=true] { border-color: var(--line); }
.selection-note { margin: 16px 0 26px; min-height: 0; line-height: 1.6; }
.reading-controls h2, .craft-features h2, .chapter-pullouts h2 { font-size: 28px; line-height: 1.15; }
.reading-controls select, .journal-quote-jump select { border-radius: 5px; background: var(--paper); }
.reading-controls .text-button { margin: 8px 18px 0 0; }
.reading-controls .primary-button { margin: 16px 0 4px; }
.source-note { font-size: 12px; }

/* Give the originals the space; captions describe what is actually here. */
.illustrations { padding: 52px 32px 60px; background: transparent; }
.illustrations h2, .journal-pair h2, .notecards-original h2 { font-size: 32px; line-height: 1.15; }
.illustrations>div:first-child { margin-bottom: 36px; }
.illustrations p { margin-bottom: 14px; }
.illustrations .primary-button { width: auto; display: inline-block; padding: 11px 18px; margin: 0; }
.art-grid { gap: 36px 28px; }
.art-grid img { padding: 0; background: white; box-shadow: none; border: 1px solid var(--line); }
.art-grid button span { font-size: 15px; font-weight: 500; }
.art-grid .art-pull { font-size: 13px; margin-top: 4px; }
.journal-details .journal-facts { border: 0; font-size: 14px; line-height: 1.7; margin: 26px 0 18px; }
.journal-actions { display: grid; gap: 10px; margin: 26px 0; }
.journal-actions .primary-button, .journal-actions .pill-button { width: 100%; min-height: 48px; margin: 0; padding: 13px 18px; font-size: 15px; text-align: center; }
.journal-actions .journal-shop { display: flex; align-items: center; justify-content: center; gap: 10px; color: white; text-decoration: none; }
.journal-actions .pill-button { border: 1px solid var(--ink); color: var(--ink); }
.journal-actions :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.journal-pair { padding: 48px 32px; background: transparent; }
.journal-pair p { font-size: 15px; }
.journal-film video { background: var(--surface-subtle); box-shadow: none; }
.notecards-page { max-width: 1280px; padding: 44px 32px 0; }
.notecards-heading h1, .cost-heading h1 { font-size: 44px; line-height: 1.08; margin: 0 0 14px; }
.notecards-heading p { font-size: 15px; color: var(--text); }
.notecards-controls { border-top: 0; }
.notecards-step button { border-radius: 5px; }
.notecards-choices { gap: 6px; }
.notecards-choices button { font-size: 13px; padding: 9px 12px; }
.notecards-choices button[aria-pressed=true], .quote-filters button[aria-pressed=true] { background: var(--ink); color: white; }
.preview-note { font-size: 13px; color: var(--muted); margin: 4px 0 36px; max-width: 650px; }
.preview-note summary { cursor: pointer; }
.preview-note p { line-height: 1.6; }
.notecards-original { padding: 42px 0 48px; }
.notecards-set-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.notecards-set-actions .text-button { min-height: 44px; }
.cost-page { max-width: 1280px; padding: 44px 32px; }
.cost-heading { align-items: start; }
.cost-heading h1 { max-width: 480px; }
.cost-heading p { font-size: 15px; color: var(--text); }
.cost-switch button { border: 1px solid transparent; }
.cost-switch button[aria-pressed=true] { background: var(--surface-subtle); border-color: var(--line); }
.cost-row[aria-pressed=true] { background: var(--surface-subtle); }
.cost-track { background: #dfe6e9; }
.cost-context h2 { font-size: 28px; }
.cost-context { grid-template-columns: 1fr; gap: 0; }
.cost-context strong { font-variant-numeric: tabular-nums; }
.notebook-costs { display: grid; grid-template-columns: .85fr 1.4fr; gap: 24px 80px; border-top: 1px solid var(--line); margin-top: 42px; padding-top: 40px; align-items: center; }
.notebook-cost-summary h2 { font-size: 36px; margin: 0 0 22px; }
.notebook-cost-summary .cost-total { margin: 0 0 14px; color: var(--ink); }
.notebook-cost-summary>p:last-child { margin: 0; font-size: 15px; color: var(--muted); }
.notebook-cost-rows { margin: 0; }
.notebook-cost-row { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 17px 12px 30px; font-size: 15px; }
.notebook-cost-row dd { margin: 0; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.notebook-cost-row .cost-track { position: absolute; left: 12px; right: 12px; bottom: 14px; }
.notebook-costs>.cost-source { grid-column: 1/-1; margin-top: 0; }
.site-footer { max-width: 1440px; margin: auto; padding: 24px 32px; display: flex; justify-content: space-between; gap: 24px; font-size: 13px; }
.site-footer>a { color: var(--accent); text-decoration: none; }
.site-footer>a:hover { text-decoration: underline; }

/* One clear purchase path, shared by all four tabs. */
.bundle-open { width: auto; margin: 0; padding: 11px 18px; white-space: nowrap; flex-shrink: 0; }
.bundle-invitation {
  max-width: 1216px; margin: 0 auto; padding: 38px 0 44px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.bundle-invitation h2 { font-size: 32px; line-height: 1.15; margin: 0 0 10px; }
.bundle-invitation p { margin: 0; color: var(--muted); }
.bundle-dialog { width: min(980px,calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; }
.bundle-dialog[open] { animation: bundle-enter 360ms cubic-bezier(.2,.7,.2,1) both; }
.bundle-dialog::backdrop { background: #14283cb3; backdrop-filter: blur(4px); }
.bundle-dialog[open]::backdrop { animation: art-backdrop-enter 240ms ease both; }
.bundle-dialog .reader-header { padding: 22px 28px; gap: 20px; position: sticky; top: 0; z-index: 1; }
.bundle-dialog h2 { font-size: 34px; line-height: 1.1; margin: 0; }
.bundle-dialog h2:focus { outline: none; }
.bundle-dialog .reader-header button { min-width: 44px; min-height: 44px; flex-shrink: 0; }
.bundle-image { width: 100%; height: auto; display: block; background: #bfced5; }
.bundle-details { padding: 26px 28px 28px; }
.bundle-includes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.bundle-includes h3 { font: 500 23px/1.15 var(--serif); margin: 0 0 8px; }
.bundle-includes p, .bundle-next p { font-size: 14px; line-height: 1.6; color: var(--text); margin: 0; }
.bundle-includes .text-button { display: inline-block; padding: 10px 0; min-height: 44px; font-size: 13px; }
.bundle-next { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.bundle-next>p { color: var(--muted); }
.bundle-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.bundle-actions .primary-button { width: auto; margin: 0; padding: 12px 20px; text-decoration: none; text-align: center; }
.bundle-actions .text-button { padding: 8px 12px; }
body:has(#bundle-dialog[open]) { overflow: hidden; }
@keyframes bundle-enter { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@media(prefers-reduced-motion:reduce) {
  .bundle-dialog[open], .bundle-dialog[open]::backdrop { animation: none; }
}
@media(max-width:1280px) { .bundle-invitation { margin: 0 32px; } }
@media(max-width:900px) {
  .masthead { display: grid; grid-template-columns: 1fr auto; height: auto; padding-top: 16px; gap: 8px 16px; }
  .masthead .tabs { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 43px; }
  .masthead .bundle-open { grid-column: 2; grid-row: 1; }
}
@media(max-width:600px) {
  .bundle-dialog .reader-header { padding: 14px 16px; gap: 8px; }
  .bundle-dialog h2 { font-size: 29px; }
  .bundle-details { padding: 22px 20px; }
  .bundle-includes { grid-template-columns: 1fr; gap: 20px; }
  .bundle-includes h3 { margin-bottom: 4px; }
  .bundle-next { display: block; margin-top: 22px; padding-top: 20px; }
  .bundle-actions { margin-top: 18px; align-items: stretch; }
  .bundle-invitation { display: block; margin: 0 22px; padding: 30px 0; }
  .bundle-invitation h2 { font-size: 29px; }
  .bundle-invitation .bundle-open { margin-top: 22px; }
  .masthead .identity { font-size: 20px; gap: 8px; }
  .masthead .identity svg { width: 18px; }
  .masthead .bundle-open { font-size: 12px; padding: 10px 12px; }
}

/* Readers share the same page and controls. Paper and ink inside them stay original. */
.experience-dialog, .experience-dialog.reading { background: var(--paper); border-color: var(--line); }
.experience-header, .reader-header { background: var(--paper); backdrop-filter: none; }
.experience-header h2 { font-size: 34px; line-height: 1.15; }
.experience-header>button { border: 0; border-radius: 5px; }
.experience-dialog::backdrop { background: #14283cb3; backdrop-filter: blur(4px); }
@keyframes art-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
.art-stack .drawing-card { background: white; border-color: var(--line); box-shadow: 0 1px 3px #14283618,0 8px 18px #14283612; }
.art-stack .drawing-card[aria-pressed=true] { box-shadow: 0 1px 3px #14283618,0 12px 24px #1428361c; }
.drawing-card:hover { border-color: var(--accent); }
.art-stack.spread .drawing-card[aria-pressed=true], .quote-sheet[aria-pressed=true] { outline-color: var(--accent); }
.art-thumbnails button { background: white; border-color: var(--line); }
.art-zoom { background: white; }
.reader-pages img, .reader-pages.artwork-view img { background: var(--book-paper,#fffdf6); }
.art-caption h3, .quote-caption h3 { font-size: 28px; font-weight: 500; }
.art-caption-actions .primary-button { width: auto; }
.art-caption-actions .text-button { white-space: nowrap; }
.quote-search { background: var(--surface); }
.quote-zoom, .notecards-large, .journal-art-body { background: var(--surface-subtle); }
.essay-prose, .reader-text section { font-family: var(--prose); color: #141515; }
.essay-prose p:first-child:first-letter { float: none; font: inherit; margin: 0; color: inherit; }
.essay-switch button { font-size: 15px; }
.essay-footer .primary-button { width: auto; padding: 12px 20px; }

@media(max-width:1100px) {
  .book-stage, .journal-stage { grid-template-columns: minmax(0,1fr) 320px; }
  .details, .journal-details { padding: 32px 24px; }
  .intro h1, .journal-details h1 { font-size: 40px; }
}
@media(max-width:760px) {
  .masthead { height: auto; min-height: 102px; padding: 16px 22px 0; gap: 8px; }
  .identity { font-size: 23px; }
  .tabs { gap: 24px; height: 43px; }
  .tabs button { font-size: 14px; }
  .book-stage, .journal-stage { display: block; }
  .gallery { height: 570px; min-height: 0; }
  .journal-gallery { height: 590px; min-height: 0; }
  .viewer-tools, .journal-tools { top: 18px; right: 18px; }
  .details, .journal-details { padding: 32px 24px 38px; }
  .intro h1, .journal-details h1 { max-width: 380px; font-size: 40px; }
  .modes button, .journal-modes button { font-size: 12px; }
  .illustrations { padding: 36px 24px 44px; }
  .illustrations h2, .journal-pair h2, .notecards-original h2 { font-size: 30px; }
  .illustrations>div:first-child { margin-bottom: 28px; }
  .art-grid { gap: 28px 16px; }
  .art-grid button span { font-size: 14px; }
  .journal-pair { padding: 34px 24px; }
  .notecards-page, .cost-page { padding: 32px 22px; }
  .notecards-heading h1, .cost-heading h1 { font-size: 40px; }
  .notebook-costs { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; padding-top: 30px; }
  .notebook-cost-summary h2 { font-size: 30px; margin-bottom: 18px; }
  .notebook-cost-row { font-size: 14px; padding-left: 4px; padding-right: 4px; }
  .notebook-cost-row .cost-track { left: 4px; right: 4px; }
  .notecards-heading { gap: 20px; }
  .notecards-choices { justify-content: start; }
  .site-footer { display: block; padding: 24px; }
  .site-footer p { margin-top: 10px; }
  .experience-header h2, .quote-dialog .experience-header h2 { font-size: 28px; }
  .art-caption h3, .quote-caption h3 { font-size: 25px; }
}
@media(max-width:380px) {
  .masthead { padding-left: 18px; padding-right: 18px; }
  .masthead .identity { font-size: 18px; }
  .masthead .bundle-open { padding-left: 9px; padding-right: 9px; }
  .identity svg { display: block; }
  .tabs { justify-content: space-between; gap: 8px; }
  .tabs button { font-size: 13px; }
  .gallery { height: 520px; }
  .journal-gallery { height: 540px; }
  .modes, .journal-modes { gap: 2px; }
  .modes button, .journal-modes button { font-size: 11px; }
  .details, .journal-details { padding-left: 20px; padding-right: 20px; }
  .notecards-page, .cost-page { padding-left: 18px; padding-right: 18px; }
}
