/* Companion pages share the portfolio's paper, ink and moss palette. */
body.supporting-page {
  --color-bg: #f5f4ef; --color-text: #182d2c; --color-line: #d9ddd4;
  --color-accent: #476255; --bg: #f5f4ef; --text: #182d2c;
  --border: #d9ddd4; --text-secondary: #52615b;
  --bg-secondary: #eeeee6; --calm-paper: #faf9f5; --calm-shadow: none;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  color: var(--color-text); background: var(--color-bg); font-family: var(--font-main);
  font-size: 16px; line-height: 1.7; min-height: 100svh;
}
body.supporting-page::before { display: none; }
.supporting-page *, .supporting-page *::before, .supporting-page *::after { box-sizing: border-box; }
.supporting-page ::selection { background: #d7e2ca; color: #182d2c; }
.supporting-page a:hover { opacity: 1; color: #476255; }
.supporting-page :is(a, button, summary, input):focus-visible { outline: 2px solid #476255 !important; outline-offset: 5px; }
.skip-link { position: fixed; top: 8px; left: 12px; transform: translateY(-160%); background: #182d2c; color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { transform: none; color: #fff; }
.supporting-page .portfolio-header {
  grid-column: 1 / -1; width: min(1120px, 100%); margin: 0 auto;
  min-height: 100px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--color-line); gap: 24px; padding: 20px 0;
}
.portfolio-brand { font: 400 23px/1.2 Georgia, serif; letter-spacing: -.7px; white-space: nowrap; }
.portfolio-brand span { color: #73825d; }
.portfolio-header nav { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.portfolio-header nav a { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; }
.portfolio-header nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; }
.supporting-page .portfolio-footer {
  width: min(1120px, 100%); grid-column: 1 / -1; margin: 48px auto 0;
  border-top: 1px solid var(--color-line); padding: 32px 0 24px;
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 20px;
  color: #52615b; font-size: 13px;
}
.portfolio-footer .footer-name { font: 400 24px Georgia, serif; color: #182d2c; }
.portfolio-footer p { margin: 7px 0 0; }
.portfolio-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.portfolio-footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
.portfolio-footer small { grid-column: 1 / -1; font-size: 11px; }
.supporting-page .layout-grid { width: min(1120px,100%); gap: 20px; margin: 0 auto; border: 0; }
.supporting-main { display: contents; }
.supporting-page .module {
  background: #faf9f5; border: 1px solid var(--color-line); border-radius: 16px;
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: clamp(24px, 4vw, 48px); min-width: 0;
}
.supporting-page .clock-module, .supporting-page .location-module { display: none; }
.supporting-page :is(.full-width-module,.app-hero-module,.koe-details-module) { margin-top: 24px; }
.supporting-page .app-hero-module { min-height: 570px; border: 0; background: transparent; padding-left: 0; }
.supporting-page :is(h1,h2,h3,h4) { color: #182d2c; }
.supporting-page :is(.app-title,.page-title,.section-title,.essay-title,.books-year-title) { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.045em; }
.supporting-page .app-title { font-size: clamp(48px, 6.4vw, 76px); line-height: 1.04; }
.supporting-page .app-tagline { color: #476255; font-size: 11px; line-height: 1.8; letter-spacing: .1em; }
.supporting-page .app-desc { color: #52615b; line-height: 1.8; }
.supporting-page :is(.download-btn,.btn-primary,.supporting-button) { display: inline-flex; align-items: center; justify-content: center; gap: 32px; min-height: 48px; padding: 13px 22px; border: 1px solid #182d2c; border-radius: 7px; background: #182d2c; color: #faf9f5; font: 500 13px/1.5 var(--font-main); text-transform: none; }
.supporting-page :is(.download-btn,.btn-primary,.supporting-button):hover { background: #476255; color: #fff; border-color: #476255; }
.supporting-page .privacy-link { color: #52615b; opacity: 1; font-size: 11px; min-height: 44px; display: inline-flex; align-items: center; }
.supporting-page .gallery-module { margin-top: 24px; min-height: 570px; background: #e3e8dc !important; color: #182d2c; padding: 26px 0; }
.supporting-page .gallery-scroll { padding: 28px 28px 12px; gap: 22px; }
.supporting-page .gallery-scroll img { height: 450px; max-width: none; border-radius: 14px; box-shadow: 0 18px 35px #182d2c18; }
.supporting-page .gallery-module .module-label { padding-inline: 28px; opacity: 1; color: #52615b; }
.supporting-page .module-label { color: #52615b; opacity: 1; font-size: 10px; letter-spacing: .13em; }
.supporting-page .section-title { font-size: clamp(32px, 5vw, 56px); line-height: 1.13; text-wrap: balance; }
.supporting-page .music-header-row { gap: 24px; align-items: center; flex-wrap: wrap; }
.supporting-page :is(.legal-copy,.essay-content) { color: #3e514a; max-width: 720px; margin-inline: auto; line-height: 1.85; overflow-wrap: break-word; }
.supporting-page :is(.legal-copy,.essay-content) p { margin-bottom: 20px; }
.supporting-page :is(.legal-copy,.essay-content) :is(h3,h4) { margin: 32px 0 10px; font-family: Georgia,serif; font-weight: 400; font-size: 24px; line-height: 1.3; text-transform: none; }
.supporting-page :is(.legal-copy,.essay-content) a { text-decoration: underline; text-underline-offset: 3px; }
.supporting-page :is(.legal-copy,.essay-content) ul { list-style: disc; margin: 14px 0 24px 22px; }
.supporting-page .essay-item { border-color: var(--color-line) !important; background: transparent; border-radius: 9px; padding: 28px; gap: 24px; }
.supporting-page .essay-item:hover { background: #eeeee6; transform: none; }
.supporting-page .essay-excerpt { color: #52615b; }
.supporting-page .essay-title { font-size: 30px; line-height: 1.2; }
.supporting-page .essay-meta { opacity: 1; color: #52615b; font-size: 10px; }
.supporting-page .archive-introduction h1 { font: 400 clamp(42px, 6vw, 64px)/1.1 Georgia,serif; letter-spacing: -.04em; margin-top: 18px; }
.eyebrow { display: block; color: #476255; font-size: 10px; line-height: 1.6; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.supporting-page .books-intro { opacity: 1; color: #52615b; margin-bottom: 0; }
.supporting-page .books-year-link { min-width: 58px; min-height: 44px; display: inline-flex; justify-content: center; align-items: center; opacity: 1; }
.supporting-page .book-grid { grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 24px; }
.supporting-page .archive-book-meta .b-author { color: #52615b; opacity: 1; }
.supporting-page .archive-book-meta .b-title { font-family: var(--font-main); color: #182d2c; }
.supporting-page .archive-book-card:hover .archive-book-thumb { transform: translateY(-4px); }
.supporting-page .page-hero { background: transparent; border: 0; box-shadow: none; text-align: left; padding: 64px 0 36px; min-height: 0; }
.supporting-page .page-watermark, .supporting-page .pastel-hero::before { display: none; }
.supporting-page .container { width: min(1120px,100%); max-width: 1120px; padding-inline: 0; }
.supporting-page .page-title { font-size: clamp(48px, 7vw, 80px); line-height: 1.05; margin: 16px 0 22px; }
.supporting-page .page-sub { color: #52615b; max-width: 600px; font-size: 18px; }
.supporting-page .app-showcase { padding: 0; }
.supporting-page .app-showcase > section { box-shadow: none; border-radius: 12px; padding: 24px; }
.supporting-page .services-wrap { max-width: 100%; padding: 8px 0 48px; }
.supporting-page .svc-card { padding: clamp(24px,5vw,56px); background: #faf9f5; border-color: var(--color-line); box-shadow: none; }
.supporting-page .svc-card h2 { font: 400 clamp(28px,4vw,42px)/1.2 Georgia,serif; }
.supporting-page .svc-lead { max-width: 740px; margin: 20px 0; }
.supporting-page .svc-list { list-style: disc; padding-left: 20px; }
.supporting-page .svc-actions { margin-top: 28px; gap: 16px; align-items: center; }
.supporting-page .svc-badges { flex-wrap: wrap; gap: 7px; }
.supporting-page .btn-ghost { padding: 12px 16px; border-color: var(--color-line); color: #182d2c; }
.supporting-page .reveal { opacity: 1; transform: none; }
.supporting-page .blog-post { box-shadow: none; border: 1px solid var(--color-line); background: #faf9f5; }
.supporting-page .blog-post h3 { font-family: Georgia,serif; font-weight: 400; }
.about-main { max-width: 1120px; margin: auto; }
.about-opening { padding: 80px 0 64px; max-width: 800px; }
.about-opening h1 { font: 400 clamp(48px,7.5vw,88px)/1.04 Georgia,serif; letter-spacing: -.055em; margin: 26px 0; }
.about-lead { max-width: 620px; color: #52615b; font-size: 20px; line-height: 1.75; }
.about-story-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(48px,8vw,128px); padding: 56px 0 72px; border-top: 1px solid var(--color-line); }
.about-story h2 { font: 400 clamp(32px,4vw,48px)/1.1 Georgia,serif; letter-spacing: -.04em; margin-bottom: 30px; }
.about-story p { color: #52615b; margin-bottom: 22px; }
.about-story p a { color: #182d2c; text-decoration: underline; text-underline-offset: 4px; }
.about-story strong { font-weight: 600; color: #182d2c; }
.text-link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; font-size: 13px; color: #182d2c; }
.about-at-a-glance { padding: 32px; background: #e8ebdf; border-radius: 12px; align-self: start; }
.about-at-a-glance dl { margin: 26px 0; }
.about-at-a-glance dl div { border-bottom: 1px solid #cbd2c2; padding: 15px 0; }
.about-at-a-glance dt { color: #52615b; font-size: 11px; }
.about-at-a-glance dd { margin: 3px 0 0; font-size: 14px; }
.about-at-a-glance p { font-size: 14px; color: #52615b; line-height: 1.8; }
.about-contact { padding: 52px; border: 1px solid var(--color-line); border-radius: 12px; }
.about-contact h2 { font: 400 clamp(36px,5vw,54px)/1.15 Georgia,serif; letter-spacing: -.04em; margin: 18px 0; }
.about-contact p:not(.eyebrow) { color: #52615b; max-width: 580px; margin-bottom: 28px; }
@media (max-width: 900px) {
  .supporting-page .layout-grid { display: flex; flex-direction: column; gap: 16px; }
  .supporting-page .app-hero-module { min-height: auto; margin: 16px 0 0; padding: 36px 0 12px; }
  .supporting-page .gallery-module { min-height: 0; margin-top: 0; }
  .supporting-page .gallery-scroll img { height: min(65vh,450px); width: auto; max-height: none; }
  .supporting-page .full-width-module { margin-top: 12px; }
  .supporting-page .portfolio-header { width: 100%; }
}
@media (max-width: 600px) {
  body.supporting-page { padding-inline: max(20px,env(safe-area-inset-left)); }
  .supporting-page .portfolio-header { min-height: 84px; gap: 16px; padding-block: 16px; }
  .portfolio-brand { font-size: 21px; }
  .portfolio-header nav { gap: 17px; font-size: 12px; }
  .portfolio-header nav a span { display: none; }
  .supporting-page .portfolio-footer { grid-template-columns: 1fr; margin-top: 36px; gap: 16px; }
  .portfolio-footer nav { gap: 22px; }
  .supporting-page .module { padding: 24px 20px; }
  .supporting-page .gallery-module { padding: 22px 0; }
  .supporting-page .gallery-scroll { padding: 20px 20px 8px; }
  .supporting-page .download-btn { width: auto; }
  .supporting-page .app-actions { gap: 8px 18px; }
  .supporting-page .essay-list { grid-template-columns: 1fr; }
  .supporting-page .essay-item { padding: 24px; min-height: 0; }
  .supporting-page .book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 20px; }
  .supporting-page .page-hero { padding-top: 44px; }
  .supporting-page .page-sub { font-size: 16px; }
  .about-opening { padding: 52px 0 40px; }
  .about-lead { font-size: 17px; }
  .about-story-grid { grid-template-columns: 1fr; padding: 36px 0; gap: 36px; }
  .about-at-a-glance { padding: 26px; }
  .about-contact { padding: 30px 24px; }
}
@media (max-width: 360px) {
  body.supporting-page { padding-inline: 16px; }
  .portfolio-header nav { gap: 12px; }
  .portfolio-brand { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .supporting-page *, .supporting-page *::before, .supporting-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Direct bookshelf pages keep the same reading notes in a lightweight dialog. */
.supporting-page :is(.books-section, .books-module) .book-item { aspect-ratio: auto; min-width: 0; cursor: pointer; }
.supporting-page :is(.books-section, .books-module) .book-3d-wrap { width: 100%; aspect-ratio: 2 / 3; position: relative; }
.supporting-page :is(.books-section, .books-module) .book-3d { position: relative; width: 100%; height: 100%; }
.supporting-page :is(.books-section, .books-module) .book-face-front { position: absolute; inset: 0; border-radius: 3px 8px 8px 3px; overflow: hidden; background: #dce1d3; box-shadow: 0 10px 18px #182d2c16; }
.supporting-page :is(.books-section, .books-module) .book-face-front img { display: block; width: 100%; height: 100%; object-fit: cover; }
.supporting-page :is(.books-section, .books-module) .book-3d :not(.book-face-front):not(img) { display: none; }
.supporting-page :is(.books-section, .books-module) .book-info { position: static; display: flex; gap: 5px; margin-top: 14px; color: #182d2c; }
.supporting-page :is(.books-section, .books-module) .b-title { font-size: 13px; font-family: var(--font-main); font-weight: 500; text-transform: none; line-height: 1.45; }
.supporting-page :is(.books-section, .books-module) .b-author { color: #52615b; font-size: 11px; opacity: 1; }
.supporting-page .book-item:hover .b-title { text-shadow: none; }
.supporting-page .books-year-link.active { background: #182d2c; color: #faf9f5; border-color: #182d2c; }
.supporting-page .book-notes-dialog { width: min(680px,calc(100vw - 32px)); max-height: 85svh; border: 1px solid #d9ddd4; border-radius: 16px; padding: 32px; margin: auto; background: #f5f4ef; color: #182d2c; overflow: auto; }
.book-notes-dialog::backdrop { background: #102625a6; }
.book-notes-dialog .book-notes-close { display: block; margin: 0 0 24px auto; border: 1px solid #d9ddd4; padding: 10px 15px; border-radius: 6px; background: transparent; color: #182d2c; font: inherit; font-size: 12px; cursor: pointer; }
.book-notes-dialog .book-notes-content { display: grid; grid-template-columns: 150px 1fr; gap: 28px; }
.book-notes-dialog img { width: 150px; height: auto; border-radius: 3px; }
.book-notes-dialog h2 { font: 400 34px/1.15 Georgia,serif; letter-spacing: -.035em; margin: 0 0 12px; }
.book-notes-dialog p { font-size: 15px; color: #52615b; line-height: 1.8; }
.book-notes-dialog .book-notes-text { margin-top: 24px; }
@media(max-width:500px) { .book-notes-dialog { padding: 24px; }.book-notes-dialog .book-notes-content { grid-template-columns: 1fr; }.book-notes-dialog img { width: 110px; }.book-notes-dialog h2 { font-size: 30px; } }
.supporting-page :is(.tech-player,.tech-header,.tech-control-panel) { color: #182d2c !important; background: #faf9f5 !important; border-color: #d9ddd4 !important; }
.supporting-page :is(.tech-label,.tech-description,.tech-track-artist) { color: #52615b; opacity: 1; }
.supporting-page :is(.tech-main,.tech-controls-row,.tech-knob) { border-color: #d9ddd4 !important; }
.supporting-page .tech-knob::after { background: #476255 !important; }
.supporting-page .music-page-intro { padding: 36px; }
.supporting-page .music-page-intro h1 { font: 400 clamp(44px,6vw,64px)/1.1 Georgia,serif; letter-spacing: -.04em; margin-top: 16px; }

/* Keep four navigation links comfortable on narrower legacy pages. */
.portfolio-header nav { flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; }
