.studio {
  --studio-ink: #263d34;
  --studio-faint: #727c75;
  --studio-rule: #d4d8d2;
  --studio-accent: #a92e59;
  background: #f7f8f5;
  color: #252d28;
  letter-spacing: 0;
}
.studio a { color: inherit; }
.studio button { font: inherit; cursor: pointer; }
.studio button:focus-visible, .studio a:focus-visible, .studio summary:focus-visible { outline: 2px solid var(--studio-accent); outline-offset: 6px; }
.studio [hidden] { display: none !important; }
.studio svg { width: 18px; height: 18px; stroke-width: 1.5; flex-shrink: 0; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 90; background: white; padding: 15px; }
.studio-header { max-width: 1440px; margin: auto; padding: 26px 42px 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.masthead { display: flex; align-items: center; gap: 24px; }
.masthead h1 { font-family: "EB Garamond", Georgia, serif; font-size: 88px; line-height: .85; font-weight: 400; margin: 0; white-space: nowrap; color: var(--studio-ink); }
.masthead h1 > span:first-child { font-style: italic; }
.masthead h1 i { font-style: normal; }
.mast-dot { color: var(--studio-accent); }
.masthead p { font-size: 10px; line-height: 1.65; margin: 8px 0 0; }
.studio-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 22px; padding-bottom: 4px; }
.studio-nav a { font-size: 12px; text-decoration: none; }
.studio-nav a:hover { color: var(--studio-accent); }
.studio-tools { position: sticky; top: 0; z-index: 20; padding: 10px 42px; border-top: 1px solid var(--studio-rule); border-bottom: 1px solid var(--studio-rule); background: rgba(247,248,245,.96); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.theme-tabs, .view-tools, .view-tabs { display: flex; align-items: center; gap: 6px; }
.theme-tabs { gap: 28px; }
.theme-tabs button { padding: 8px 0; border: 0; color: var(--studio-faint); background: none; font-size: 12px; white-space: nowrap; }
.theme-tabs button[aria-pressed="true"] { color: var(--studio-ink); box-shadow: 0 1px 0 currentColor; }
.theme-tabs sup { font-size: 8px; padding-left: 3px; }
.view-tabs { border: 1px solid var(--studio-rule); padding: 2px; gap: 0; }
.view-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; padding: 7px 10px; min-width: 84px; background: none; color: var(--studio-faint); font-size: 11px; }
.view-tabs button[aria-pressed="true"] { background: var(--studio-ink); color: #fff; }
.studio .living-toggle { display: flex; align-items: center; gap: 7px; background: transparent; border: 0; padding: 8px 10px; color: var(--studio-faint); font-size: 11px; white-space: nowrap; }
.living-toggle[aria-pressed="true"] { color: var(--studio-accent); }
.living-toggle .living-pause, .living-toggle[aria-pressed="true"] .living-play { display: none; }
.living-toggle[aria-pressed="true"] .living-pause { display: block; }
.living-toggle:disabled { opacity: .5; cursor: default; }
.icon-button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: inherit; padding: 0; flex-shrink: 0; }
.icon-button:hover { background: #e1e8de; }
.icon-button:disabled { opacity: .25; cursor: default; }
.art-spread { padding: 0 42px; border-bottom: 1px solid var(--studio-rule); }
.art-spread[data-group="growth"] { background: #edf0eb; }
.art-spread[data-group="memory"] { background: #f5f2f3; }
.spread-heading { max-width: 1320px; display: flex; align-items: baseline; gap: 24px; padding: 24px 0 16px; margin: auto; }
.spread-heading > span { font-size: 10px; color: var(--studio-faint); }
.spread-heading h2 { font: italic 36px/1.1 "EB Garamond", Georgia, serif; font-weight: 400; margin: 0; }
.spread-count { margin-left: auto; }
.spread-field { position: relative; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 42px 24px; padding: 30px 8px 35px; }
.art-sheet { margin: 0; position: relative; width: var(--size); justify-self: center; align-self: start; transform: translateY(var(--lift)) rotate(var(--angle)); transition: transform 300ms ease; transform-origin: center center; }
.art-sheet:nth-child(4n+1) { transform-origin: left center; }
.art-sheet:nth-child(4n) { transform-origin: right center; }
.art-open { display: block; position: relative; }
.art-sheet img.art-arrival { position: absolute; inset: 0; height: 100%; opacity: 0; pointer-events: none; box-shadow: none; transition: opacity 900ms ease; }
.art-sheet img.art-arrival.is-visible { opacity: 1; }
.art-sheet img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; box-shadow: 1px 5px 12px #14281c16; }
.art-sheet figcaption { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 9px; height: 3.9em; font-size: 11px; line-height: 1.3; color: #59675c; transition: opacity 450ms ease; }
.art-sheet.is-changing figcaption { opacity: .25; }
.art-sheet figcaption > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.new-mark { color: var(--studio-accent); flex-shrink: 0; font-size: 9px; }
.sheet-1 { --size: 100%; --lift: 2px; --angle: -4deg; }
.sheet-2 { --size: 88%; --lift: 24px; --angle: 3deg; }
.sheet-3 { --size: 90%; --lift: -9px; --angle: -2deg; }
.sheet-4 { --size: 80%; --lift: 18px; --angle: 5deg; }
.sheet-5 { --size: 83%; --lift: 13px; --angle: 3deg; }
.sheet-6 { --size: 96%; --lift: -7px; --angle: -3deg; }
.sheet-7 { --size: 100%; --lift: 16px; --angle: 2deg; }
.sheet-8 { --size: 88%; --lift: -4px; --angle: -4deg; }
.sheet-9 { --size: 95%; --lift: 5px; --angle: -2deg; }
.sheet-10 { --size: 84%; --lift: 22px; --angle: 4deg; }
.sheet-11 { --size: 92%; --lift: -2px; --angle: -5deg; }
.sheet-12 { --size: 87%; --lift: 16px; --angle: 2deg; }
.spread-poem { grid-column: 1 / -1; justify-self: end; margin: 15px 6% 0 0; white-space: pre-line; font: italic 25px/1.15 "EB Garamond", Georgia, serif; color: var(--studio-ink); transform: rotate(-3deg); }
.art-spread[data-group="growth"] .sheet-1 { --angle: 3deg; }
.art-spread[data-group="growth"] .sheet-2 { --angle: -4deg; }
.art-spread[data-group="growth"] .sheet-5 { --angle: 2deg; }
.art-spread[data-group="memory"] .sheet-1 { --angle: 2deg; }
.art-spread[data-group="memory"] .sheet-2 { --angle: -3deg; }
.studio[data-arrangement="1"] .art-sheet:nth-child(odd) { --angle: 3deg; --lift: 18px; }
.studio[data-arrangement="1"] .art-sheet:nth-child(even) { --angle: -4deg; --lift: -6px; }
.studio[data-arrangement="2"] .art-sheet:nth-child(3n+1) { --angle: -2deg; --lift: -8px; }
.studio[data-arrangement="2"] .art-sheet:nth-child(3n+2) { --angle: 5deg; --lift: 16px; }
.studio[data-arrangement="2"] .art-sheet:nth-child(3n) { --angle: -4deg; --lift: 4px; }
.studio[data-view="index"] .spread-field { gap: 32px 24px; padding: 22px 0 55px; }
.studio[data-view="index"] .art-sheet { width: 100%; transform: none; }
.studio[data-view="index"] .spread-poem { display: none; }
.studio-projects { max-width: 1320px; padding: 76px 42px; margin: auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.project-intro > span { font-size: 10px; color: var(--studio-faint); }
.project-intro h2 { font: 56px/1 "EB Garamond", Georgia, serif; font-weight: 400; margin: 22px 0 0; }
.project-links a { display: grid; grid-template-columns: 24px 1fr 24px; gap: 7px 14px; text-decoration: none; padding: 22px 0; border-bottom: 1px solid var(--studio-rule); }
.project-links a:first-child { border-top: 1px solid var(--studio-rule); }
.project-links a > span { font-size: 9px; padding-top: 8px; }
.project-links strong { font: 28px/1.15 "EB Garamond", Georgia, serif; }
.project-links small { grid-column: 2; font-size: 11px; color: var(--studio-faint); }
.project-links a:hover { color: var(--studio-accent); }
.studio-archive { max-width: 1320px; margin: 0 auto; padding: 0 42px; }
.studio-archive summary { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--studio-rule); border-bottom: 1px solid var(--studio-rule); padding: 24px 0; cursor: pointer; list-style: none; font: italic 36px "EB Garamond", Georgia, serif; }
.studio-archive summary::-webkit-details-marker { display: none; }
.archive-meta { display: flex; align-items: center; gap: 24px; font: 10px var(--font); }
.studio-archive[open] summary svg { transform: rotate(45deg); }
.archive-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 30px 20px; padding-top: 28px; }
.archive-art { text-decoration: none; font-size: 10px; }
.archive-art img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin-bottom: 8px; }
.studio-footer { max-width: 1320px; margin: auto; padding: 72px 42px 115px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.studio-footer p { font: 34px/1.1 "EB Garamond", Georgia, serif; margin: 0; }
.studio-footer nav { display: flex; flex-direction: column; gap: 9px; font-size: 12px; }
.studio-footer a { text-decoration: none; }
.studio-footer > span { font-size: 10px; color: var(--studio-faint); }
.studio .player { background: #f7f8f5f5; border-color: var(--studio-rule); color: var(--studio-ink); }
.art-viewer { position: fixed; inset: 0; margin: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; padding: 0; border: 0; background: #eef0ec; color: #233b30; }
.art-viewer[open] { display: grid; grid-template-rows: 58px minmax(0,1fr) 60px; }
.art-viewer::backdrop { background: #19251ff0; }
.viewer-bar, .viewer-bottom { padding: 6px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 12px; }
.viewer-bar > div { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 24px; min-width: 0; }
#viewer-title { overflow-wrap: anywhere; }
#viewer-position { color: #63746a; font-size: 10px; white-space: nowrap; }
.viewer-canvas { overflow: auto; display: flex; align-items: safe center; justify-content: safe center; padding: 10px 26px; overscroll-behavior: contain; }
.viewer-canvas img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-canvas.is-zoomed { display: block; cursor: grab; }
.viewer-canvas.is-zoomed img { max-width: none; max-height: none; width: min(1600px,190vw); margin: auto; }
.viewer-pagination { display: flex; gap: 12px; }
.viewer-bottom a { text-decoration: none; font-size: 11px; }
@media(min-width:1600px) { .studio-tools { padding-inline: max(42px, calc((100% - 1356px)/2)); } }
@media(max-width:1050px) {
  .studio-header { padding: 24px; align-items: flex-start; }
  .masthead { gap: 16px; }
  .masthead h1 { font-size: 70px; }
  .masthead p { display: none; }
  .studio-nav { max-width: 420px; padding-top: 8px; }
  .studio-tools { padding-inline: 24px; }
  .art-spread { padding-inline: 24px; }
  .spread-poem { font-size: 21px; }
}
@media(max-width:900px) {
  .studio-tools { flex-wrap: wrap; }
  .view-tools { margin-left: auto; }
  .spread-field { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .art-sheet:nth-child(n) { transform-origin: center center; }
  .art-sheet:nth-child(3n+1) { transform-origin: left center; }
  .art-sheet:nth-child(3n) { transform-origin: right center; }
}
@media(max-width:640px) {
  .studio-header { padding: 20px 18px 18px; display: block; }
  .masthead { justify-content: space-between; }
  .masthead h1 { font-size: 66px; }
  .masthead p { display: block; font-size: 9px; }
  .studio-nav { justify-content: flex-start; max-width: none; gap: 14px; margin-top: 20px; padding: 0; }
  .studio-nav a { font-size: 11px; }
  .studio-tools { padding: 8px 18px; flex-wrap: wrap; gap: 8px; }
  .theme-tabs { width: 100%; justify-content: space-between; gap: 12px; }
  .view-tools { width: 100%; justify-content: space-between; gap: 4px; }
  .studio .living-toggle { padding-inline: 0; font-size: 10px; gap: 4px; }
  .living-toggle svg { width: 14px; }
  .view-tabs button { min-width: 66px; padding: 6px; gap: 5px; }
  .view-tabs svg { width: 14px; height: 14px; }
  .icon-button { width: 34px; height: 34px; }
  .art-spread { padding: 0 18px; overflow: clip; }
  .spread-heading { padding: 22px 0 18px; gap: 12px; }
  .spread-heading h2 { font-size: 28px; }
  .spread-count { display: none; }
  .spread-field { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 34px 16px; padding: 16px 3px 30px; }
  .art-sheet:nth-child(n) { transform-origin: center center; }
  .art-sheet figcaption { font-size: 10px; gap: 6px; }
  .spread-poem { margin: 14px 5% 10px 0; font-size: 25px; }
  .studio[data-view="index"] .spread-field { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 18px; }
  .studio[data-view="index"] .art-sheet { width: 100%; transform: none; align-self: start; }
  .studio-projects { padding: 45px 24px; grid-template-columns: 1fr; gap: 32px; }
  .project-intro h2 { font-size: 46px; }
  .project-links strong { font-size: 26px; }
  .studio-archive { padding-inline: 24px; }
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .studio-footer { padding: 50px 24px 110px; flex-wrap: wrap; }
  .studio-footer p { width: 100%; font-size: 32px; }
  .viewer-canvas { padding: 8px; }
  .viewer-bar, .viewer-bottom { padding-inline: 12px; }
  .viewer-bar > div { gap: 3px 12px; }
  #viewer-position { flex-basis: 100%; }
}
@media(hover:hover) and (pointer:fine) {
  .studio .art-sheet:hover { z-index: 10; transform: translateY(var(--lift)) rotate(0deg) scale(1.24); }
  .studio[data-view="index"] .art-sheet:hover { transform: scale(1.12); }
  .art-sheet:hover img { box-shadow: 0 14px 28px #14281c30; }
}
.studio .art-sheet:focus-within { z-index: 10; transform: translateY(var(--lift)) rotate(0deg) scale(1.18); }
.studio[data-view="index"] .art-sheet:focus-within { transform: scale(1.1); }
@media(prefers-reduced-motion:reduce) {
  .studio *, .studio *::before, .studio *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media(max-width:360px) {
  .masthead p { display: none; }
}
