.mesa-project { color: var(--ink); }
.mesa-project h1, .mesa-project h2, .mesa-project h3 { font-family: var(--display); }
.mesa-head { padding-block: clamp(20px, 2.9vw, 48px) clamp(26px, 3.7vw, 58px); }
.mesa-return { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: none; }
.mesa-return span { color: var(--red); font-size: 1.3em; }
.mesa-return:hover { text-decoration: underline; }
.mesa-title-line { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: clamp(24px, 6vw, 95px); margin-top: clamp(20px, 3vw, 45px); }
.mesa-title-line h1 { margin: .14em 0 0; font-size: clamp(3.1rem, 7.4vw, 7.9rem); letter-spacing: -.072em; line-height: .98; }
.mesa-title-line h1 span { color: var(--coral); }
.mesa-lead { max-width: 40ch; font-size: clamp(1.06rem, 1.45vw, 1.44rem); line-height: 1.5; }
.mesa-reader-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 2rem; border-top: 1px solid var(--ink); padding: 1rem 0; }
.mesa-reader-head h2 { font-size: clamp(1.35rem, 2vw, 2rem); letter-spacing: -.045em; }
.mesa-selector-hint, .mesa-sheet figcaption > p:not(.mesa-kind), .mesa-detail figcaption > p:not(.mesa-kind), .mesa-brief-copy > p, .mesa-method li p, .mesa-end > p { color: var(--muted); }
.mesa-book { min-width: 0; margin: 0; padding: 0; border: 1px solid var(--line); }
.mesa-options, .mesa-selector-hint { display: none; }
.mesa-options { gap: .35rem; align-items: center; flex-wrap: wrap; padding: .45rem clamp(12px, 1.5vw, 23px); border-bottom: 1px solid var(--line); }
.mesa-options label { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .85rem; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-weight: 700; }
.mesa-options label:hover { background: #e5e4dc; }
.mesa-radio { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.mesa-radio:checked + label { background: var(--ink); border-color: var(--ink); color: white; }
.mesa-radio:focus-visible + label { outline: 2px solid #3554d1; outline-offset: 2px; }
.mesa-sheet { display: grid; grid-template-columns: minmax(0, 2.28fr) minmax(0, 1fr); }
.mesa-sheet + .mesa-sheet { border-top: 1px solid var(--line); }
.mesa-stage, .mesa-detail-window { position: relative; overflow: hidden; isolation: isolate; background-color: #eeeee7; background-image: radial-gradient(#76796c46 .8px, transparent .9px); background-size: 11px 11px; }
.mesa-stage { display: grid; place-items: center; height: clamp(300px, 35vw, 520px); border-right: 1px solid var(--line); }
.mesa-stage img { width: 100%; height: 100%; object-fit: contain; }
.mesa-stage-cut img { width: 85%; height: 87%; }
.mesa-stage-meta, .mesa-kind { color: var(--muted); font: 700 .75rem/1.4 var(--body); letter-spacing: .095em; text-transform: uppercase; }
.mesa-stage-meta { position: absolute; top: clamp(11px, 1.5vw, 24px); left: clamp(12px, 1.5vw, 23px); z-index: 1; display: flex; align-items: center; gap: .55rem; background: #eeeee7; padding: 1px 4px; }
.mesa-stage-meta i { width: 1.8rem; height: 1px; background: var(--coral); }
.mesa-sheet figcaption { display: flex; flex-direction: column; align-items: start; padding: clamp(23px, 3vw, 54px); }
.mesa-sheet h3 { font-size: clamp(1.85rem, 3.1vw, 3.4rem); line-height: 1.04; letter-spacing: -.058em; margin: .45em 0 .48em; }
.mesa-sheet figcaption > p:not(.mesa-kind) { max-width: 36ch; }
.mesa-sheet figcaption small { margin-top: auto; padding-top: 1.5rem; color: var(--muted); }
@supports selector(:has(input:checked)) {
  .mesa-options { display: flex; }
  .mesa-selector-hint { display: block; }
  .mesa-book .mesa-sheet { display: none; border-top: 0; }
  .mesa-book:has(#mesa-all:checked) .mesa-sheet-all,
  .mesa-book:has(#mesa-structure:checked) .mesa-sheet-structure,
  .mesa-book:has(#mesa-circulation:checked) .mesa-sheet-circulation,
  .mesa-book:has(#mesa-envelope:checked) .mesa-sheet-envelope,
  .mesa-book:has(#mesa-section:checked) .mesa-sheet-section { display: grid; }
}
.mesa-brief, .mesa-method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 7vw, 118px); padding-block: clamp(48px, 6.5vw, 108px); }
.mesa-brief h2, .mesa-method h2 { margin-top: .4em; max-width: 17ch; font-size: clamp(2.2rem, 4.3vw, 4.6rem); line-height: 1.02; letter-spacing: -.062em; }
.mesa-brief-copy { max-width: 59ch; }
.mesa-brief-copy > p, .mesa-method li p, .mesa-detail figcaption > p:not(.mesa-kind) { line-height: 1.6; }
.mesa-brief-copy h3 { margin: 1.35em 0 .42em; }
.mesa-brief-copy h3, .mesa-method li h3, .mesa-detail h3 { font-size: clamp(1.22rem, 1.8vw, 1.7rem); letter-spacing: -.038em; }
.mesa-gallery > h2 { padding-top: 1rem; border-top: 1px solid var(--ink); margin-bottom: 1.1rem; font-size: clamp(1.5rem, 2.3vw, 2.2rem); letter-spacing: -.045em; }
.mesa-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.3vw, 40px); }
.mesa-detail-window { aspect-ratio: 2.23; border: 1px solid var(--line); }
.mesa-detail-window img { position: absolute; max-width: none; height: auto; left: 50%; top: 50%; }
.mesa-detail-access img { width: 226%; transform: translate(-36%, -75%); }
.mesa-detail-roof img { width: 174%; transform: translate(-50%, -31%); }
.mesa-detail figcaption { border-bottom: 1px solid var(--line); padding: 1rem 0 1.2rem; }
.mesa-detail h3 { margin: .27em 0 .3em; }
.mesa-method ol { list-style: none; margin: 0; padding: 0; counter-reset: mesa-step; }
.mesa-method li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .35rem .85rem; border-top: 1px solid var(--line); padding: 1rem 0 1.15rem; counter-increment: mesa-step; }
.mesa-method li::before { grid-row: 1 / span 2; color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; content: counter(mesa-step, decimal-leading-zero); }
.mesa-method li p { grid-column: 2; max-width: 54ch; }
.mesa-end { padding-block: 0 clamp(50px, 7vw, 110px); }
.mesa-end > p { max-width: 78ch; margin-bottom: 1.1rem; }
.mesa-end > div { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.6rem; }
@media (max-width: 850px) {
  .mesa-title-line { grid-template-columns: 1fr; gap: 1rem; }
  .mesa-title-line h1 { font-size: clamp(3.1rem, 10vw, 5.5rem); }
  .mesa-lead { max-width: 58ch; }
  .mesa-sheet { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .mesa-sheet figcaption { padding: 1.25rem; }
  .mesa-stage { height: clamp(275px, 36vw, 350px); }
}
@media (max-width: 620px) {
  .mesa-reader-head { align-items: start; gap: .6rem; }
  .mesa-options { gap: .1rem; padding: .35rem; }
  .mesa-options label { padding: .32rem .55rem; }
  .mesa-sheet, .mesa-brief, .mesa-method, .mesa-pair { grid-template-columns: 1fr; }
  .mesa-sheet figcaption { padding: 1.1rem; }
  .mesa-sheet figcaption small { padding-top: .75rem; }
  .mesa-stage { height: auto; aspect-ratio: 1.37; border-right: 0; border-bottom: 1px solid var(--line); }
  .mesa-sheet h3 { margin: .25em 0 .3em; }
  .mesa-stage-meta { font-size: .66rem; }
  .mesa-brief h2, .mesa-method h2 { max-width: 22ch; }
}
@media print {
  .mesa-return, .mesa-options, .mesa-end > div, .mesa-selector-hint { display: none; }
  .mesa-book .mesa-sheet { display: grid; break-inside: avoid; }
  .mesa-stage { height: 48mm; }
}
