@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/instrument-serif-normal.woff2') format('woff2');
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --pale: #eee9da;
  --ink: #202820;
  --muted: #4f584b;
  --green: #20382e;
  --forest: #183128;
  --rust: #964622;
  --line: #d1cbbb;
  --cream: #fff9e9;
  --blue: #375a70;
  --blue-wash: #e8eef0;
  --blue-edge: #bacbd2;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.57 var(--sans); }
h1, h2, h3, p, figure, ol { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: .99; }
h1 { font-size: clamp(4rem, 7.4vw, 7.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2.6rem, 4.3vw, 4.15rem); letter-spacing: -.018em; }
h3 { font-size: 2.1rem; }
p + p { margin-top: .9rem; }
a { color: inherit; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
.wrap { width: min(100% - 6.5rem, 1330px); margin-inline: auto; }
.skip { position: absolute; z-index: 9; top: .7rem; left: .75rem; padding: .6rem 1rem; color: var(--cream); background: var(--forest); transform: translateY(-170%); }
.skip:focus { transform: translateY(0); }
.review-strip { padding: .28rem 1rem; text-align: center; color: var(--cream); background: var(--forest); font-size: .74rem; font-weight: 600; letter-spacing: .06em; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .6rem; color: var(--forest); font-family: var(--serif); font-size: 1.68rem; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand img { width: 31px; height: 40px; object-fit: contain; }
.brand strong { font-weight: 400; }
.mast .brand img { width: clamp(3.5rem, 7vw, 4rem); height: auto; aspect-ratio: 1; }
.brand-type { display: grid; gap: .23rem; }
.brand-type small { font: 700 .78rem/1.2 var(--sans); letter-spacing: .025em; }
.wide-nav { display: flex; align-items: center; gap: clamp(.85rem, 2vw, 2rem); }
.wide-nav a, .menu nav a { text-decoration: none; font-size: .92rem; font-weight: 650; }
.wide-nav a:not(.support-link):hover, .wide-nav a[aria-current="page"]:not(.support-link) { text-decoration: underline; text-underline-offset: .4em; }
.support-link { border: 1px solid var(--green); border-radius: 30px; padding: .48rem .95rem; }
.support-link:hover, .support-link[aria-current="page"] { background: var(--green); color: var(--cream); }
.menu { display: none; }
.eyebrow { color: var(--rust); font-size: .74rem; font-weight: 750; letter-spacing: .15em; line-height: 1.35; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: .6rem; height: .6rem; margin-right: .35rem; border-radius: 50%; background: var(--rust); }
.lead { max-width: 39rem; font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--muted); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; max-width: 100%; padding: .8rem 1.15rem; border: 1px solid transparent; border-radius: 3px; font-size: .92rem; font-weight: 750; line-height: 1.35; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.button span, .text-link span { flex: 0 0 auto; font-size: 1.12em; }
.button.primary { background: var(--green); color: var(--cream); }
.button.primary:hover { background: #304b3c; }
.button.outline { border-color: var(--green); color: var(--green); }
.button.outline:hover { background: var(--green); color: var(--cream); }
.button.cream { background: var(--cream); color: var(--forest); }
.button.cream:hover { background: #e9e0c9; }
.text-link { display: inline-block; color: var(--green); font-size: .94rem; font-weight: 750; text-underline-offset: .28em; text-decoration-thickness: 1px; }
.text-link span { margin-left: .25rem; }
.text-link:hover { color: var(--rust); }
.field-notes { background: #f3eee2; }
.field-notes .mast-inner { min-height: 76px; }
.field-notes .mast .brand { font: 750 1.12rem/1.15 var(--sans); letter-spacing: -.035em; }
.field-notes .mast .brand strong { font-weight: inherit; }
.field-notes .wide-nav .support-link { border-radius: 0; }
.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(26rem, 40.5vw, 38rem);
  background: #191715;
  color: #fff6e7;
}
.hero-image { position: absolute; inset: 0; z-index: -1; }
.hero-image img { position: absolute; inset: 0 0 0 auto; width: 76%; height: 100%; object-fit: cover; object-position: center 34%; }
.hero-image::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, #191715 14%, #191715f2 26%, #19171580 46%, #19171505 71%),
    linear-gradient(0deg, #171412a0, transparent 25%);
}
.hero-image figcaption { position: absolute; z-index: 1; right: max(3.25rem, calc((100% - 1330px) / 2)); bottom: .8rem; font-size: .74rem; }
.hero-content { padding-block: 2.65rem 3rem; }
.hero-copy h1 { font-size: clamp(3.2rem, 6.2vw, 5.6rem); line-height: .96; letter-spacing: -.023em; }
.hero-copy h1 em { color: #f1c586; font-weight: 400; }
.hero-copy p { max-width: 36ch; margin: 1.2rem 0 1.35rem; font-size: clamp(1rem, 1.43vw, 1.17rem); }
.hero-copy .button { min-height: 44px; border-radius: 0; color: #282616; background: #f4e6c9; }
.hero-copy .button:hover { background: #fff6df; text-decoration: underline; text-underline-offset: .22em; }
.hero-copy .button:focus-visible { outline-color: #fff6e7; }
.home-process { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(1.25rem, 4vw, 4rem); align-items: center; padding-block: clamp(1.7rem, 3.6vw, 3.25rem); }
.home-process h2 { font-size: clamp(2.15rem, 4.35vw, 3.8rem); }
.home-process ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.6rem, 1.4vw, 1.25rem); list-style: none; padding: 0; counter-reset: home-step; }
.home-process li { display: grid; align-content: start; gap: .35rem; padding-top: .55rem; border-top: 1px solid var(--line); counter-increment: home-step; font-size: .92rem; font-weight: 750; line-height: 1.3; }
.home-process li::before { content: counter(home-step, decimal-leading-zero) / ''; font-size: .72rem; }
.home-support { border-top: 1px solid var(--line); }
.home-support-inner { display: flex; min-height: 60px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem; padding-block: .75rem; font-size: .92rem; }
.mission-band { background: var(--pale); border-block: 1px solid var(--line); }
.mission-row { display: grid; grid-template-columns: 1.05fr .85fr; align-items: end; gap: clamp(1rem, 5vw, 5rem); padding-block: clamp(2.2rem, 4vw, 4.1rem); }
.mission-row h2 { max-width: 15ch; margin-top: .6rem; }
.mission-row p:not(.eyebrow) { max-width: 32rem; color: var(--muted); font-size: 1.13rem; }
.mission-row .text-link { margin-top: .65rem; }
.feature { padding-block: clamp(2.6rem, 5.5vw, 5.7rem); }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.65rem; }
.section-top h2 { margin-top: .45rem; }
.home-collection { background: var(--blue-wash); border-top: 1px solid var(--blue-edge); }
.home-collection .eyebrow, .home-collection .text-link { color: var(--blue); }
.home-cards, .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.card-tile { min-width: 0; }
.card-link { display: grid; grid-template-rows: auto 1fr; height: 100%; border: 1px solid var(--blue-edge); border-radius: 5px; background: var(--paper); text-decoration: none; }
.card-link:focus-visible { outline-color: var(--blue); }
.card-link:hover { border-color: var(--blue); }
.card-link:hover :is(h2, h3) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.card-stage { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; min-width: 0; overflow: hidden; border-radius: 4px 4px 0 0; background: radial-gradient(ellipse at 46% 32%, #f7f7f0, #dce7eb 92%); }
.card-art { position: absolute; inset: 0; margin: auto; display: block; width: 72%; height: 80%; filter: drop-shadow(3px 8px 7px #24384335); }
.card-art img { width: 100%; height: 100%; object-fit: contain; }
.card-stage:has(.card-art--photo) { background: #fefefe; }
.card-art--photo { width: 94%; height: 93%; filter: none; }
.card-art--white-butterfly-card { transform: rotate(-3deg); }
.card-caption { display: flex; justify-content: space-between; align-items: center; gap: .65rem; min-width: 0; padding: .85rem .9rem; border-top: 1px solid var(--blue-edge); }
.card-caption :is(h2, h3) { font-size: clamp(1.65rem, 2.5vw, 2.35rem); line-height: 1.03; }
.card-caption p { margin-top: .3rem; color: var(--muted); font-size: .82rem; }
.card-caption > span { display: grid; flex: 0 0 2rem; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--blue-edge); border-radius: 50%; color: var(--blue); }
.card-link:hover .card-caption > span { color: white; border-color: var(--blue); background: var(--blue); }
.cta { color: var(--cream); background: var(--green); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.25rem, 4vw, 3.7rem); }
.cta p { margin-top: .65rem; color: #e5e8dd; }
.cta .button { flex: 0 0 auto; }
.cta a:focus-visible { outline-color: var(--cream); }
.footer {
  padding-block: clamp(1.6rem, 3.5vw, 2.7rem);
  border-top: 1px solid var(--line);
  background: var(--pale);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: start;
  gap: clamp(1rem, 4vw, 3.5rem);
}
.footer .brand { font-size: clamp(1.75rem, 2.7vw, 2.1rem); }
.footer .brand img { width: 2.75rem; height: 2.75rem; }
.footer p { margin-top: .55rem; max-width: 38ch; color: var(--muted); font-size: .9rem; }
.footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .15rem .9rem;
  padding-inline-start: clamp(1rem, 3vw, 2.75rem);
  border-inline-start: 1px solid var(--line);
}
.footer nav a {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: .35em;
  min-height: 44px;
  color: var(--green);
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}
.footer nav a:hover { color: var(--rust); }
.page-lead { padding-block: clamp(2.7rem, 5.5vw, 5.5rem) clamp(1.85rem, 3.2vw, 3.2rem); }
.page-lead h1 { max-width: 17ch; margin: .55rem 0 .9rem; font-size: clamp(3.65rem, 7vw, 6.8rem); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5.5rem); align-items: center; }
.editorial, .support-grid { padding-bottom: clamp(2.8rem, 6vw, 6rem); }
.editorial-photo img { width: 100%; aspect-ratio: 1.24; object-fit: cover; border-radius: 4px 4px 4px 44px; }
.editorial-photo figcaption { padding-top: .65rem; color: var(--muted); font-size: .83rem; }
.editorial-copy p, .support-copy p { margin-top: .85rem; max-width: 38rem; color: var(--muted); }
.editorial-copy .text-link { margin-top: 1rem; }
.audience h2 { margin-bottom: 1.65rem; }
.three article { border-top: 1px solid var(--line); padding-top: 1rem; }
.three p { margin-top: .65rem; color: var(--muted); }
.process-layout { display: grid; grid-template-columns: 1.25fr .75fr; align-items: start; gap: clamp(1.5rem, 5vw, 5rem); padding-bottom: clamp(2.6rem, 5vw, 5rem); }
.steps { padding-left: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; counter-increment: step; border-top: 1px solid var(--line); padding: 1rem 0 1.35rem 3.15rem; }
.steps li::before { position: absolute; left: 0; top: .95rem; content: counter(step, decimal-leading-zero); color: var(--rust); font-weight: 750; }
.steps h2 { font-size: clamp(2.05rem, 3.3vw, 3rem); }
.steps p { margin-top: .5rem; color: var(--muted); }
.process-photo img { aspect-ratio: 1; }
.gallery-section { padding-bottom: clamp(2.6rem, 5vw, 5rem); }
.gallery-transcripts { margin-bottom: 1rem; }
.gallery-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.35rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
:is(.filters, .dialog-sides) button { border: 1px solid #a49f8d; border-radius: 40px; background: transparent; padding: .45rem .85rem; min-height: 42px; font-size: .9rem; font-weight: 700; cursor: pointer; }
:is(.filters, .dialog-sides) button:hover { border-color: var(--green); }
:is(.filters, .dialog-sides) button[aria-pressed="true"] { color: white; background: var(--blue); border-color: var(--blue); }
.gallery-count { white-space: nowrap; font-size: .85rem; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem 1.25rem; }
.gallery .card-stage { background: #fefefe; }
.gallery .card-art { width: 94%; height: 93%; filter: none; transform: none; }
.gallery .card-caption { align-items: start; }
.gallery .card-caption > div { display: grid; grid-template-rows: 1fr auto; align-self: stretch; gap: .3rem; }
.gallery .card-caption p { margin-top: 0; }
.card-dialog { width: min(52rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); margin: auto; padding: clamp(.7rem, 2vw, 1.35rem); border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
.card-dialog[open]:has(.dialog-body) { display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.card-dialog::backdrop { background: #121e16d6; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: .55rem; padding-block: .25rem; }
.dialog-body { overflow: auto; overscroll-behavior: contain; }
.dialog-top h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
.dialog-close { flex: 0 0 auto; padding: .35rem .55rem; min-height: 42px; background: var(--blue); color: white; border: 1px solid var(--blue); border-radius: 3px; cursor: pointer; }
.card-dialog img { width: auto; height: auto; max-height: min(68dvh, 720px); margin-inline: auto; object-fit: contain; }
.dialog-sides { display: flex; flex-wrap: wrap; gap: .5rem; padding: .45rem .45rem .8rem; }
.dialog-art { text-align: center; }
.dialog-art .artwork-large { display: inline-flex; align-items: center; min-height: 44px; margin-top: .3rem; }
.dialog-transcript { margin: .45rem 0 .85rem; border-block: 1px solid var(--line); }
.dialog-transcript summary { min-height: 44px; padding: .6rem .5rem; color: var(--green); font-weight: 700; cursor: pointer; }
.dialog-transcript .transcript-page { margin: 0 .5rem 1rem; }
.dialog-transcript summary:focus-visible { outline-offset: -3px; }
.transcript-copy { max-width: 65ch; padding: .3rem .75rem 1rem; }
.panel-title { margin-bottom: .35rem; font: 700 .94rem/1.4 var(--sans); }
.panel-title:not(:first-child) { margin-top: 1rem; }
.transcript-note { color: var(--muted); font-size: .9rem; }
.involvement { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; padding-bottom: clamp(2.8rem, 6vw, 6rem); }
.involvement article { display: flex; flex-direction: column; align-items: start; gap: .85rem; padding: clamp(1.3rem, 3vw, 2.9rem); border: 1px solid var(--line); background: var(--pale); }
.involvement article p { margin: 0; color: var(--muted); }
.involvement .button { margin-top: auto; }
.support-copy article + article { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.support-copy .button, .contact-link { margin-top: .85rem; }
.contact-link { overflow-wrap: anywhere; }
.policy-list { padding-bottom: clamp(2.8rem, 6vw, 6rem); }
.policy-list > a { max-width: 46rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); color: var(--green); text-decoration: none; }
.policy-list strong { text-decoration: underline; text-underline-offset: .2em; }
.policy-list small { display: block; margin-top: .25rem; color: var(--muted); font-size: .9rem; }
.policy-list > a:hover strong { color: var(--rust); }
.policy-list p { margin-top: 1rem; color: var(--muted); }
.reading-page { padding-bottom: clamp(2.8rem, 6vw, 6rem); }
.reading-section, .transcript-index, .policy-review { max-width: 43rem; }
.reading-section { padding-block: clamp(1.25rem, 3vw, 2rem); border-bottom: 1px solid var(--line); }
.reading-section h2, .policy-review h2 { margin-bottom: .75rem; font-size: clamp(1.95rem, 4vw, 2.65rem); line-height: 1.06; }
.reading-section a { overflow-wrap: anywhere; }
.transcript-index { margin-top: 1.1rem; padding: .6rem 0 1rem; border-bottom: 1px solid var(--line); }
.transcript-index ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .35rem 1rem; margin: 0; padding-inline-start: 1.25rem; }
.policy-review { margin-top: 1.5rem; padding: clamp(1.05rem, 3vw, 1.6rem); border-inline-start: 3px solid var(--rust); background: var(--pale); }
.policy-review ul { margin: 0; padding-inline-start: 1.2rem; }
.policy-review li + li { margin-top: .55rem; }

@media (max-width: 1070px) {
  .wrap { width: calc(100% - 4.4rem); }
  .hero-image figcaption { right: 2.2rem; }
}
@media (max-width: 840px) {
  .wrap { width: calc(100% - 3rem); }
  .wide-nav { display: none; }
  .mast-inner, .field-notes .mast-inner { min-height: 72px; }
  .menu { display: block; position: relative; }
  .menu summary { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 750; list-style: none; min-height: 44px; padding-inline: .15rem; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary::after { content: ''; width: 14px; height: 7px; border-block: 1px solid currentColor; }
  .menu nav { position: absolute; right: 0; top: calc(100% + .5rem); display: grid; width: min(15rem, 80vw); z-index: 3; padding: .6rem 1rem; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 10px 28px #20382e22; }
  .menu nav a { padding: .6rem .15rem; border: 0; border-radius: 0; min-height: 44px; }
  .menu nav a + a { border-top: 1px solid var(--line); }
  .menu nav a[aria-current="page"] { color: var(--rust); background: transparent; }
  .menu nav a:hover { color: var(--rust); background: transparent; }
  .hero-image figcaption { right: 1.5rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2.35rem); }
  .mast-inner { gap: .6rem; }
  .mission-row, .split, .process-layout, .involvement { grid-template-columns: 1fr; }
  .home-hero { min-height: 26rem; align-items: end; }
  .hero-content { padding-block: 5.6rem 2.65rem; }
  .hero-copy h1 { font-size: clamp(2.25rem, 10vw, 4rem); }
  .hero-copy p { max-width: 30ch; margin-block: .85rem 1rem; }
  .hero-image img { width: 100%; object-position: 64% 46%; }
  .hero-image::after { background: linear-gradient(0deg, #181715fa 4%, #181715b8 53%, #18171512 90%); }
  .hero-image figcaption { right: 1.175rem; bottom: .5rem; }
  .home-process { grid-template-columns: 1fr; }
  .home-process h2 br { display: none; }
  .home-process li { font-size: .83rem; }
  .mission-row { gap: .75rem; }
  .mission-row p:not(.eyebrow) { font-size: 1.03rem; }
  .section-top, .cta-inner { align-items: flex-start; flex-direction: column; }
  .section-top { gap: .6rem; margin-bottom: 1rem; }
  .home-cards { grid-template-columns: 1fr; gap: .65rem; }
  .home-cards .card-link { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: 1fr; }
  .home-cards .card-stage { aspect-ratio: 6 / 5; border-radius: 4px 0 0 4px; }
  .home-cards .card-caption { border-top: 0; border-left: 1px solid var(--blue-edge); }
  .card-caption { padding: .63rem; gap: .35rem; }
  .card-caption :is(h2, h3) { font-size: clamp(1.4rem, 5vw, 1.85rem); }
  .card-caption > span { flex-basis: 1.6rem; width: 1.6rem; height: 1.6rem; font-size: .82rem; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer nav { padding: .45rem 0 0; border-inline-start: 0; border-top: 1px solid var(--line); }
  .page-lead h1 { font-size: clamp(3.45rem, 13vw, 5.25rem); }
  .three { grid-template-columns: 1fr; }
  .process-layout { gap: 1rem; }
  .process-photo img { aspect-ratio: 1.48; }
  .gallery { gap: 1.2rem .75rem; }
  .gallery .card-stage { aspect-ratio: 1; }
  .gallery-tools { align-items: start; gap: .35rem; flex-direction: column; }
  .filters button { font-size: .84rem; padding-inline: .62rem; }
}
@media (max-width: 350px) {
  .wrap { width: calc(100% - 1.7rem); }
  .brand { font-size: 1.5rem; }
  .mast-inner, .mast .brand { gap: .35rem; }
  .menu summary { gap: .35rem; font-size: .9rem; }
  .hero-image figcaption { right: .85rem; }
  .actions { gap: .7rem 1rem; }
  .button { gap: .55rem; padding-inline: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 650px) {
  .card-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  .dialog-art { margin-inline: -.32rem; }
  .card-dialog img { max-height: min(68dvh, calc(100dvh - 12rem)); }
}

/* The review theme follows the same preference on desktop and phone. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #192923;
  --pale: #24382f;
  --ink: #f3ecde;
  --muted: #c8cab9;
  --green: #d8ead1;
  --forest: #e5efdf;
  --rust: #f2a989;
  --line: #687a70;
  --blue: #b9d2df;
  --blue-wash: #263a44;
  --blue-edge: #66818b;
}

.theme-icon {
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1.25rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.theme-icon:hover {
  border-color: var(--green);
  background: var(--pale);
}

[data-theme="dark"] .field-notes {
  background: var(--paper);
}

[data-theme="dark"] :is(.mast .brand img, .footer .brand img) {
  border-radius: 5px;
  background: #f6f0e4;
}

[data-theme="dark"] :is(.review-strip, .skip) {
  background: var(--pale);
}

[data-theme="dark"] :is(.button.primary, .button.outline:hover, .wide-nav .support-link:hover, .wide-nav .support-link[aria-current="page"]) {
  color: var(--paper);
  background: var(--green);
}

[data-theme="dark"] .button.primary:hover {
  background: #edf5e8;
}

[data-theme="dark"] .button.cream {
  color: var(--paper);
}

[data-theme="dark"] .cta {
  border-block: 1px solid var(--line);
  color: var(--ink);
  background: var(--pale);
}

[data-theme="dark"] .cta p {
  color: var(--muted);
}

[data-theme="dark"] :is(.filters, .dialog-sides) button {
  border-color: var(--line);
}

[data-theme="dark"] :is(.filters, .dialog-sides) button[aria-pressed="true"],
[data-theme="dark"] .dialog-close,
[data-theme="dark"] .card-link:hover .card-caption > span {
  border-color: var(--blue);
  color: var(--paper);
  background: var(--blue);
}

@media (max-width: 1070px) {
  .mast-inner { gap: .9rem; }
  .wide-nav { margin-inline-start: auto; }
}

@media (max-width: 840px) {
  .menu { margin-inline-start: auto; }
}

@media (max-width: 650px) {
  .mast-inner { gap: .5rem; }
  .mast .brand {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(1.12rem, 4.4vw, 1.65rem);
    white-space: normal;
  }
  .mast .brand img {
    flex: none;
    width: clamp(2.2rem, 9.4vw, 2.8rem);
  }
  .menu { flex: none; }
}

@media (max-width: 350px) {
  .mast-inner, .mast .brand { gap: .35rem; }
}
