:root {
  --paper: #f9f7e1;
  --ink: #272727;
  --green: #229650;
  --quiet: #deddd3;
  --white: #fff;
  --edge: 5vw;
  --display: 'Supermercado One', Georgia, serif;
  --reading: 'Kite One', 'Trebuchet MS', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 19px/1.75 var(--reading); }
a { color: var(--ink); text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
[data-lucide], .lucide { display: inline-block; flex-shrink: 0; width: 22px; height: 22px; stroke-width: 1.7; vertical-align: middle; }
p { margin: 0 0 1.3em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; }
h1, h2 { text-wrap: balance; }
h1 { margin: 0; letter-spacing: -0.025em; }
h2 { margin: 0; font-size: clamp(40px, 4.2vw, 64px); letter-spacing: -0.015em; }
::selection { color: var(--ink); background: var(--quiet); }
.ld-skip { position: absolute; top: -100px; left: 22px; z-index: 5; padding: 10px 18px; background: var(--white); }
.ld-skip:focus { top: 10px; }
.outrigger-header { min-height: 120px; padding: 17px 22px 10px; display: grid; grid-template-columns: 1fr; grid-template-rows: 47px 42px; }
.outrigger-name { justify-self: start; align-self: start; font: 34px/1.2 var(--display); text-decoration: none; white-space: nowrap; }
.outrigger-links { justify-self: end; display: flex; align-items: center; gap: 38px; }
.outrigger-links a { display: inline-flex; align-items: center; gap: 9px; position: relative; min-height: 38px; font-size: 17px; text-decoration: none; }
.outrigger-links a::after { content: ''; width: 30px; height: 5px; background: var(--green); transition: width 160ms ease; }
.outrigger-links a:hover, .outrigger-links a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; }
.outrigger-links a:hover::after, .outrigger-links a:focus-visible::after { width: 42px; }
.outrigger-links [data-lucide], .outrigger-links .lucide { width: 19px; height: 19px; }
/* An ivory correspondence band sits in the wall's open interval. The two
   neighbours remain at its edges; the reply projects from the opposite side. */
.distance-opening { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 720px; padding: 48px 0 58px; }
.mural-banner { position: absolute; z-index: -2; inset: 0 0 auto; width: 100%; height: 600px; object-fit: cover; object-position: center 50%; border-radius: 0 0 50% 50% / 0 0 5% 5%; background: var(--quiet); }
.opening-position { width: min(760px, 54vw); margin-left: 28vw; padding: 27px 36px 42px; color: var(--ink); background: var(--paper); border-left: 12px solid var(--green); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 64px) calc(100% - 28px), calc(100% - 64px) 100%, 0 100%); }
.distance-opening h1 { font-size: clamp(58px, 5.2vw, 80px); line-height: 1.06; }
.opening-reply { position: relative; width: min(570px, 46vw); margin: 68px 5vw 0 auto; padding: 25px 32px 28px; background: var(--white); border-top: 8px solid var(--green); box-shadow: 14px 14px 0 var(--quiet); }
.distance-opening .opening-lead { margin: 0; font-size: 20px; line-height: 1.65; }
.mural-endmarks { position: absolute; z-index: -1; inset: 28px 3vw auto; height: 525px; pointer-events: none; }
.mural-endmarks::before, .mural-endmarks::after { content: ''; position: absolute; width: 83px; height: 116px; border-top: 10px solid var(--green); border-bottom: 10px solid var(--green); }
.mural-endmarks::before { left: 0; top: 0; border-left: 12px solid var(--green); }
.mural-endmarks::after { right: 0; bottom: 0; border-right: 12px solid var(--green); animation: end-settle 750ms cubic-bezier(.2,.7,.3,1) both; }
@keyframes end-settle { from { transform: translateX(-18px); } to { transform: translateX(0); } }
.inner-opening { position: relative; padding: 40px var(--edge) 64px; }
.opening-symbol { display: inline-flex; align-items: center; padding-left: 16px; margin-bottom: 26px; height: 34px; border-left: 8px solid var(--green); }
.opening-symbol .lucide, .opening-symbol [data-lucide] { width: 30px; height: 30px; }
.inner-opening h1 { max-width: 1080px; font-size: clamp(56px, 6.2vw, 92px); }
.inner-opening .opening-lead { max-width: 680px; margin: 32px 0 0 auto; font-size: 22px; line-height: 1.65; }
.wall-inset { position: relative; margin: 48px 0 0; width: 82%; padding-bottom: 16px; }
.wall-inset img { width: 100%; height: 260px; object-fit: cover; border-radius: 8px; box-shadow: 14px 14px 0 var(--green); background: var(--quiet); }
.wall-inset figcaption { position: relative; max-width: 460px; width: 72%; margin: -32px -7vw 0 auto; padding: 18px 23px; color: var(--ink); background: var(--paper); border-left: 6px solid var(--green); font-size: 16px; line-height: 1.6; }
/* Each complete span is one passage: position, broad middle, far-edge stop.
   The separated ends never join into a rail or turn into opposed columns. */
.span-field { counter-reset: crossings; }
.distance-span { padding: 76px var(--edge) 70px; position: relative; background: var(--paper); }
.distance-span:nth-child(odd) { background: var(--white); }
.span-opening { width: min(730px, 65%); }
.distance-span:nth-child(even) .span-opening { margin-left: auto; text-align: right; }
.span-number { display: flex; align-items: baseline; gap: 24px; margin-bottom: 19px; color: var(--ink); }
.span-number::before { counter-increment: crossings; content: counter(crossings, decimal-leading-zero); color: var(--green); font: clamp(96px, 11vw, 158px)/.82 var(--display); letter-spacing: -.06em; }
.span-number .lucide, .span-number [data-lucide] { width: 30px; height: 30px; }
.distance-span:nth-child(even) .span-number { justify-content: flex-end; }
.separated-ends { width: 100%; height: 38px; margin-top: 38px; position: relative; }
.separated-ends::before, .separated-ends::after { content: ''; position: absolute; width: min(138px, 12%); height: 38px; border-top: 5px solid var(--quiet); border-bottom: 5px solid var(--quiet); }
.separated-ends::before { left: 0; border-left: 12px solid var(--green); }
.separated-ends::after { right: 0; border-right: 12px solid var(--green); }
.span-words { width: min(830px, 77%); margin: 38px auto 42px; }
.span-words a { text-decoration-color: var(--green); }
.span-words a:hover, .span-words a:focus-visible { text-decoration-color: var(--ink); }
.reply-line { margin: 0; }
.reply-line dt { font: 30px/1.25 var(--display); margin-bottom: 24px; }
.reply-line dd { margin: 0; }
.span-stop { position: relative; font: 29px/1.35 var(--display); width: min(450px, 43%); margin: 0 -2vw 0 auto; padding: 18px 24px; border-left: 9px solid var(--green); background: var(--paper); box-shadow: 12px 12px 0 var(--quiet); }
.distance-span:nth-child(even) .span-stop { margin: 0 auto 0 -2vw; border-left: 0; border-right: 9px solid var(--green); background: var(--white); box-shadow: -12px 12px 0 var(--quiet); }
.reading-out { padding: 66px var(--edge) 76px; border-top: 10px solid var(--green); }
.reading-out h2 { max-width: 730px; font-size: 46px; }
.reading-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 34px; }
.reading-paths a { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 17px 0 15px; border-bottom: 5px solid var(--green); font-size: 19px; text-decoration: none; transition: transform 160ms ease; }
.reading-paths a:hover, .reading-paths a:focus-visible { transform: translateY(-4px); text-decoration: underline; text-decoration-thickness: 2px; }
.reading-paths .lucide, .reading-paths [data-lucide] { width: 27px; height: 27px; }
.long-footer { padding: 45px var(--edge) 28px; background: var(--quiet); }
.footer-note { max-width: 850px; font-size: 20px; }
.footer-line { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-top: 44px; font-size: 16px; }
.footer-line p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 27px; }
.footer-links a { display: inline-block; }
.gone-opening { padding: 75px var(--edge) 130px; min-height: 60vh; }
.gone-opening h1 { max-width: 900px; font-size: clamp(54px, 6vw, 84px); }
.gone-opening p { max-width: 630px; margin-top: 35px; }
@media (min-width: 1600px) {
  .span-words { width: min(960px, 75%); font-size: 21px; }
}
@media (max-width: 1050px) and (min-width: 761px) {
  .opening-position { margin-left: 20vw; width: 68vw; }
  .opening-reply { width: 57vw; }
  .reading-paths { gap: 23px; }
}
@media (max-width: 760px) {
  :root { --edge: 22px; }
  body { font-size: 17px; line-height: 1.75; }
  .outrigger-header { position: relative; min-height: 96px; height: 96px; padding: 0 22px; display: block; }
  .outrigger-name { position: absolute; left: 22px; top: 65px; font-size: 27px; line-height: 1; }
  .outrigger-links { display: grid; position: absolute; inset: 8px 22px auto; grid-template-columns: 1fr 1fr; gap: 5px 9px; }
  .outrigger-links a { gap: 5px; font-size: 16px; line-height: 1.45; min-height: 24px; width: max-content; }
  .outrigger-links .lucide, .outrigger-links [data-lucide] { display: none; }
  .outrigger-links a::after, .outrigger-links a:hover::after, .outrigger-links a:focus-visible::after { width: 15px; height: 3px; }
  .outrigger-links a:nth-child(1), .outrigger-links a:nth-child(2) { grid-row: 1; justify-self: start; }
  .outrigger-links a:nth-child(2) { grid-column: 2; }
  .outrigger-links a:nth-child(3) { grid-column: 1 / -1; grid-row: 2; justify-self: end; }
  .distance-opening { display: grid; grid-template-columns: 22px minmax(0, 1fr) 22px; grid-template-rows: auto 180px auto; min-height: 0; padding: 22px 0 42px; }
  .opening-position { grid-column: 2; grid-row: 1; z-index: 1; width: 100%; margin: 0; padding: 20px 21px 30px; border-left-width: 8px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 35px) calc(100% - 18px), calc(100% - 35px) 100%, 0 100%); }
  .distance-opening h1 { font-size: clamp(39px, 11vw, 58px); line-height: 1.09; letter-spacing: -.025em; }
  .mural-banner { position: relative; grid-column: 1 / -1; grid-row: 2; z-index: 0; inset: auto; width: 100%; max-width: none; height: 180px; object-position: center; border-radius: 0; }
  .opening-reply { grid-column: 2; grid-row: 3; z-index: 1; width: 100%; margin: -12px 0 0; padding: 20px 23px 24px; border-top-width: 6px; box-shadow: 8px 8px 0 var(--quiet); }
  .distance-opening .opening-lead { font-size: 18px; line-height: 1.65; }
  .mural-endmarks { display: none; }
  .inner-opening { padding: 30px 22px 40px; }
  .opening-symbol { margin-bottom: 20px; height: 30px; }
  .opening-symbol .lucide, .opening-symbol [data-lucide] { width: 25px; height: 25px; }
  .inner-opening h1 { font-size: clamp(39px, 10.7vw, 58px); }
  .inner-opening .opening-lead { margin: 24px 0 0; font-size: 19px; line-height: 1.65; }
  .wall-inset { width: 100%; margin: 30px 0 0; padding-bottom: 0; }
  .wall-inset img { height: 180px; box-shadow: 8px 8px 0 var(--green); }
  .wall-inset figcaption { width: 88%; margin: -18px 0 0 auto; padding: 14px 16px; font-size: 16px; line-height: 1.55; border-left-width: 5px; }
  .distance-span { padding: 54px 22px 52px; }
  .span-opening { width: 100%; }
  h2 { font-size: 36px; }
  .span-number { margin-bottom: 17px; gap: 17px; }
  .span-number::before { font-size: 86px; }
  .span-number .lucide, .span-number [data-lucide] { width: 25px; height: 25px; }
  .separated-ends { margin-top: 27px; height: 25px; }
  .separated-ends::before, .separated-ends::after { height: 25px; border-top-width: 4px; border-bottom-width: 4px; }
  .separated-ends::before { border-left-width: 8px; }
  .separated-ends::after { border-right-width: 8px; }
  .span-words { width: 100%; margin: 27px 0 32px; }
  .span-stop { width: 90%; margin-right: 8px; font-size: 24px; padding: 15px 18px; border-left-width: 6px; box-shadow: 8px 8px 0 var(--quiet); }
  .distance-span:nth-child(even) .span-stop { margin-left: 8px; border-right-width: 6px; box-shadow: -8px 8px 0 var(--quiet); }
  .reading-out { padding: 43px 22px 48px; border-top-width: 7px; }
  .reading-out h2 { font-size: 34px; }
  .reading-paths { display: flex; flex-direction: column; gap: 14px; margin-top: 23px; }
  .reading-paths a { font-size: 18px; }
  .long-footer { padding: 34px 22px 24px; }
  .footer-note { font-size: 19px; }
  .footer-line { display: block; margin-top: 30px; }
  .footer-links { margin-bottom: 27px; }
  .gone-opening { padding: 45px 22px 80px; }
  .gone-opening h1 { font-size: 47px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
