:root {
  color-scheme: light;
  --pool: #E7FBF9;
  --ink: #2C1C2C;
  --seam: #7D317D;
  --mineral: #D9C1E2;
  --chalk: #FFFFFF;
  --edge: max(28px, calc((100vw - 1240px) / 2));
  font-family: 'GFS Neohellenic', 'Trebuchet MS', sans-serif;
  color: var(--ink);
  background: var(--pool);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 22px; line-height: 1.48; }
img, svg { display: block; max-width: 100%; }
a { color: var(--seam); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible { outline: 3px solid var(--seam); outline-offset: 5px; background-color: var(--chalk); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: 'Solway', Georgia, serif; font-weight: 500; }
h1 { margin: 0; font-size: clamp(42px, 4.2vw, 62px); line-height: 1.12; letter-spacing: -1.8px; text-wrap: balance; }
h2 { margin: 0 0 25px; font-size: clamp(28px, 2.7vw, 40px); line-height: 1.2; letter-spacing: -0.9px; text-wrap: balance; }
h3 { font-size: 24px; line-height: 1.3; }
.md-skip { position: fixed; z-index: 10; top: 10px; left: 10px; padding: 10px 18px; background: var(--chalk); transform: translateY(-200%); }
.md-skip:focus { transform: none; }

/* The brand is a core slot through a mineral seam, with three exposed depths. */
.core-mast { height: 126px; background: linear-gradient(to bottom, var(--seam) 0 76px, var(--pool) 76px); position: relative; padding: 12px var(--edge) 0; z-index: 2; }
.core-name { width: min(1060px, 100%); min-height: 64px; padding: 8px 25px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--pool); color: var(--ink); text-decoration: none; font: 500 35px/1.25 'Solway', Georgia, serif; box-shadow: 8px 0 0 var(--mineral); }
.core-name:hover { background: var(--chalk); }
.core-name img { width: 91px; height: 38px; }
.core-face { display: grid; grid-template-columns: 1fr 1fr 1fr; max-width: 1060px; padding: 0 25px; gap: 25px; }
.core-face a { display: flex; align-items: center; gap: 9px; font-size: 19px; width: fit-content; text-decoration: none; border-bottom: 3px solid transparent; padding: 4px 0; transition: border-color 160ms ease, color 160ms ease; }
.core-face a:hover, .core-face a[aria-current] { border-bottom-color: var(--seam); color: var(--ink); }
.core-face a:nth-child(1) { margin-top: 0; }
.core-face a:nth-child(2) { margin-top: 7px; }
.core-face a:nth-child(3) { margin-top: 14px; }
[data-lucide], .lucide { width: 20px; height: 20px; flex: 0 0 auto; stroke-width: 1.7; }
i[data-lucide] { display: block; border-block: 2px solid currentColor; height: 10px; width: 17px; }

/* Full-bleed stone, crossed by two solid mint strata. No floating reading card. */
.first-cut { position: relative; isolation: isolate; padding-top: 184px; }
.pool-ledges { position: absolute; inset: 0; z-index: -1; margin: 0; background: var(--mineral); }
.pool-photo { height: 100%; background-image: url('./pool-seams.webp'); background-position: center 53%; background-size: cover; clip-path: polygon(0 0, 100% 0, 100% 36%, 97% 36%, 97% 69%, 94% 69%, 94% 100%, 0 100%); }
.title-stratum { padding: 30px calc(var(--edge) + 240px) 34px calc(var(--edge) - 14px); background: var(--pool); clip-path: polygon(0 0, 80% 0, 80% 30%, 86% 30%, 86% 69%, 92% 69%, 92% 100%, 0 100%); border-left: 14px solid var(--seam); }
.first-cut h1 { max-width: 1000px; }
.opening-stratum { position: relative; background: var(--pool); margin-top: 80px; padding: 26px var(--edge) 33px; }
.opening-stratum::before { content: ''; position: absolute; top: -12px; left: 0; width: 76%; height: 12px; background: var(--seam); }
.pool-ledges::after { content: ''; position: absolute; width: 78px; height: 52px; top: 410px; right: calc(3% - 20px); background-image: url('./pool-seams.webp'); background-size: 620px auto; background-position: 74% 60%; border-radius: 56% 43% 46% 51%; transform: rotate(-14deg); box-shadow: 6px 10px 0 rgb(44 28 44 / 22%); z-index: 1; }
.home-welcome { max-width: 900px; margin: 0 0 20px; font-size: 20px; line-height: 1.35; }

/* This exposed caption has no interactive styles or actionable elements. */
.context-exposure { position: relative; display: grid; grid-template-columns: 88px 1fr; column-gap: 20px; max-width: 1060px; padding-top: 25px; }
.context-label { font-family: 'Solway', Georgia, serif; font-size: 20px; align-self: center; justify-self: center; transform: rotate(-90deg); margin: 0; color: var(--seam); }
.context-bars { position: absolute; top: 0; left: 108px; right: 0; height: 16px; }
.context-bars span { display: block; height: 5px; margin-bottom: 1px; background: var(--mineral); width: 100%; }
.context-bars span:nth-child(2) { width: 83%; background: var(--seam); }
.context-bars span:nth-child(3) { width: 68%; background: var(--ink); }
.context-copy { margin: 0; font-size: 18px; line-height: 1.36; max-width: 940px; }

/* Three broad strata; the oversized layer marks protrude across their seams. */
.strata-descent { position: relative; margin-top: 0; }
.strata-descent::after { content: ''; position: absolute; width: 4px; background: var(--seam); right: calc(var(--edge) + 210px); top: 0; bottom: 0; pointer-events: none; }
.stratum { position: relative; padding: 94px calc(var(--edge) + 268px) 90px calc(var(--edge) + 140px); background: var(--chalk); }
.stratum::before { content: ''; position: absolute; height: 14px; top: 0; left: 0; width: calc(100% - var(--edge) - 210px); background: var(--mineral); }
.stratum:nth-child(2) { background: var(--pool); padding-left: calc(var(--edge) + 200px); }
.stratum:nth-child(2)::before { width: 65%; height: 20px; background: var(--seam); }
.stratum:nth-child(3) { padding-left: calc(var(--edge) + 166px); padding-top: 101px; }
.stratum:nth-child(3)::before { width: 52%; height: 25px; background: var(--mineral); }
.stratum-read { max-width: 820px; }
.stratum-body { max-width: 720px; }
.stratum-body p:last-child { margin-bottom: 0; }
.stratum-marker { position: absolute; left: var(--edge); top: -26px; width: 115px; color: var(--seam); font-family: 'Solway', Georgia, serif; display: grid; grid-template-columns: 1fr 24px; align-items: end; }
.layer-word { grid-column: 1 / -1; font-size: 17px; line-height: 1; padding: 4px 0; }
.layer-number { font-size: 112px; line-height: 1.05; letter-spacing: -8px; text-shadow: 4px 5px 0 var(--mineral); }
.stratum-marker .lucide, .stratum-marker [data-lucide] { margin-bottom: 12px; }
.cut-caption { position: absolute; right: var(--edge); top: 119px; width: 176px; margin: 0; font-size: 18px; line-height: 1.4; }
.cut-caption::before { content: ''; display: block; height: 9px; width: 67px; background: var(--seam); margin: 0 0 20px -38px; box-shadow: 10px 5px 0 var(--mineral); }

/* Unequal reading ledges hang beyond the article's vertical cut. */
.reading-next { padding: 48px calc(var(--edge) + 45px) 58px var(--edge); display: grid; grid-template-columns: 1fr 1.05fr; gap: 10px 70px; align-items: start; background: var(--mineral); border-top: 13px solid var(--seam); }
.reading-next p { grid-row: 1 / 4; margin: 5px 0 0; font: 500 34px/1.2 'Solway', Georgia, serif; max-width: 370px; letter-spacing: -0.8px; }
.reading-next a { grid-column: 2; display: flex; align-items: center; gap: 15px; min-height: 57px; padding: 10px 22px; background: var(--pool); text-decoration: none; box-shadow: 7px 6px 0 var(--seam); transition: transform 160ms ease, background-color 160ms ease, color 160ms ease; }
.reading-next a:nth-of-type(2) { margin-left: 28px; margin-right: -28px; }
.reading-next a:nth-of-type(3) { margin-left: 56px; margin-right: -56px; }
.reading-next a:hover, .reading-next a:focus-visible { background: var(--seam); color: var(--chalk); transform: translateY(-3px); }
.reading-next a:focus-visible { outline-color: var(--ink); }

.inner-opening { padding: 41px var(--edge) 44px; }
.depth-crumb { font-size: 18px; margin-bottom: 29px; display: flex; align-items: center; gap: 15px; }
.depth-crumb .lucide, .depth-crumb [data-lucide] { color: var(--seam); }
.inner-opening h1 { max-width: 1060px; font-size: clamp(40px, 4.1vw, 60px); }
.inner-deck { max-width: 815px; font-size: 24px; line-height: 1.4; margin: 24px 0 0; }
.inner-photo { margin: 0 0 0; position: relative; padding-bottom: 56px; background: var(--pool); }
.inner-photo img { width: 100%; height: 256px; object-fit: cover; object-position: center 54%; clip-path: polygon(0 0, 100% 0, 100% 34%, 96% 34%, 96% 67%, 92% 67%, 92% 100%, 0 100%); }
.inner-photo figcaption { position: relative; margin: -30px calc(var(--edge) + 70px) 0 auto; width: min(560px, 70%); padding: 18px 25px 12px; font-size: 18px; background: var(--pool); border-top: 8px solid var(--seam); box-shadow: 10px 9px 0 var(--mineral); }
.source-entry { margin: 32px 0 0; padding-top: 22px; border-top: 5px solid var(--mineral); }
.source-entry h3 { margin: 0 0 10px; }
.source-entry p { margin: 0 0 10px; font-size: 20px; }
.source-entry .source-by { font-size: 17px; }
.cut-footer { background: var(--pool); padding: 48px var(--edge) 30px; display: grid; grid-template-columns: 140px 1fr; gap: 0 35px; }
.footer-motif { width: 112px; height: 45px; grid-row: 1 / 4; margin-top: 5px; }
.footer-sentence { max-width: 690px; font-size: 20px; }
.footer-paths { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 5px 0 27px; font-size: 18px; }
.copyright { grid-column: 2; font-size: 16px; margin: 0; }
.missing-path { padding: 55px var(--edge) 100px; max-width: 1100px; }
.missing-path h1 { font-size: 47px; }
.missing-path p { margin-top: 28px; }

@media (min-width: 1700px) {
  .title-stratum { padding-left: var(--edge); }
  .first-cut h1 { max-width: 1120px; }
}
@media (max-width: 1050px) and (min-width: 601px) {
  :root { --edge: 28px; }
  .core-name { font-size: 30px; }
  .core-face a { font-size: 17px; }
  .first-cut { padding-top: 90px; }
  .first-cut h1 { max-width: 790px; }
  .title-stratum { padding-right: 21%; }
  .strata-descent::after { right: calc(var(--edge) + 155px); }
  .stratum { padding-right: calc(var(--edge) + 197px); padding-left: calc(var(--edge) + 75px); }
  .stratum:nth-child(2) { padding-left: calc(var(--edge) + 103px); }
  .stratum:nth-child(3) { padding-left: calc(var(--edge) + 89px); }
  .stratum-marker { width: 68px; }
  .layer-number { font-size: 80px; }
  .stratum-marker .lucide, .stratum-marker [data-lucide] { display: none; }
  .cut-caption { width: 125px; font-size: 17px; }
  .reading-next { gap: 10px 35px; }
  .reading-next p { font-size: 28px; }
}
@media (max-width: 600px) {
  :root { --edge: 18px; }
  body { font-size: 20px; line-height: 1.45; }
  h1 { font-size: 30px; line-height: 1.12; letter-spacing: -0.8px; text-wrap: pretty; }
  h2 { font-size: 28px; letter-spacing: -0.5px; margin-bottom: 20px; }
  .core-mast { height: 80px; padding: 6px 12px 0; background: linear-gradient(to bottom, var(--seam) 0 43px, var(--pool) 43px); }
  .core-name { width: 100%; min-height: 36px; padding: 4px 10px; font-size: 20px; gap: 8px; letter-spacing: -0.6px; white-space: nowrap; box-shadow: none; }
  .core-name img { width: 36px; height: 21px; }
  .core-face { padding: 0; gap: 0; height: 37px; grid-template-columns: 1fr 1fr 1fr; }
  .core-face a { width: 100%; margin: 0 !important; justify-content: center; padding: 4px 2px; font-size: 16px; gap: 5px; line-height: 1; min-height: 35px; }
  .core-face a + a { border-left: 2px solid var(--mineral); }
  .core-face .lucide, .core-face [data-lucide] { width: 14px; height: 14px; }
  .first-cut { padding-top: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
  .title-stratum { grid-row: 1; padding: 22px 18px 0; border-left: 0; clip-path: none; }
  .first-cut h1 { max-width: 354px; }
  .opening-stratum { grid-row: 2; margin: 0; padding: 16px var(--edge) 24px; }
  .opening-stratum::before { display: none; }
  .home-welcome { font-size: 17px; line-height: 1.28; margin: 0 0 17px; }
  .context-exposure { display: block; padding-top: 0; max-width: none; }
  .context-label { transform: none; margin: 0 0 7px; text-align: left; font-size: 17px; line-height: 1.1; }
  .context-bars { position: static; height: 16px; margin-bottom: 9px; }
  .context-copy { font-size: 16px; line-height: 1.3; max-width: none; }
  .pool-ledges { grid-row: 3; position: relative; inset: auto; height: 172px; margin: 0 0 0; z-index: auto; background: var(--pool); }
  .pool-photo { background-position: 65% 53%; clip-path: polygon(0 0, 100% 0, 100% 33.333%, 93% 33.333%, 93% 66.666%, 86% 66.666%, 86% 100%, 0 100%); }
  .pool-ledges::after { width: 33px; height: 23px; top: 72px; right: calc(7% - 9px); background-size: 290px auto; box-shadow: 4px 6px 0 rgb(44 28 44 / 22%); }
  .strata-descent::after { right: 14px; width: 3px; }
  .stratum { padding: 76px 35px 43px 18px; }
  .stratum::before { height: 10px; width: calc(100% - 17px); }
  .stratum:nth-child(2) { padding-left: 27px; }
  .stratum:nth-child(2)::before { width: 76%; height: 14px; }
  .stratum:nth-child(3) { padding-left: 22px; padding-top: 83px; }
  .stratum:nth-child(3)::before { width: 61%; height: 18px; }
  .stratum-marker { top: -14px; left: auto; right: 32px; display: flex; align-items: baseline; width: auto; gap: 5px; }
  .layer-word { font-size: 16px; }
  .layer-number { font-size: 70px; line-height: 1; letter-spacing: -4px; text-shadow: 3px 3px 0 var(--mineral); }
  .stratum-marker .lucide, .stratum-marker [data-lucide] { display: none; }
  .cut-caption { position: static; width: auto; margin: 0 62px 28px 0; font-size: 16px; line-height: 1.3; padding-left: 13px; border-left: 4px solid var(--seam); }
  .cut-caption::before { display: none; }
  .stratum-body { max-width: none; }
  .reading-next { display: block; padding: 28px 40px 38px 18px; border-top-width: 9px; }
  .reading-next p { font-size: 27px; margin: 0 0 25px; }
  .reading-next a { font-size: 19px; min-height: 51px; padding: 10px 12px; margin-bottom: 11px; gap: 10px; }
  .reading-next a:nth-of-type(2) { margin-left: 10px; margin-right: -10px; }
  .reading-next a:nth-of-type(3) { margin-left: 20px; margin-right: -20px; }
  .inner-opening { padding: 25px var(--edge) 29px; }
  .depth-crumb { font-size: 16px; margin-bottom: 20px; }
  .inner-opening h1 { font-size: 32px; line-height: 1.15; letter-spacing: -0.8px; }
  .inner-deck { font-size: 20px; line-height: 1.35; margin-top: 19px; }
  .inner-photo { padding-bottom: 42px; }
  .inner-photo img { height: 172px; }
  .inner-photo figcaption { width: auto; margin: -22px 30px 0 18px; padding: 13px 16px; font-size: 16px; line-height: 1.3; border-top-width: 6px; box-shadow: 7px 6px 0 var(--mineral); }
  .source-entry h3 { font-size: 21px; }
  .source-entry p { font-size: 19px; }
  .source-entry .source-by { font-size: 16px; }
  .cut-footer { display: block; padding-top: 32px; }
  .footer-motif { width: 85px; height: 34px; margin: 0 0 24px; }
  .footer-sentence { font-size: 19px; }
  .footer-paths { font-size: 17px; margin: 23px 0; }
  .missing-path { padding-top: 28px; }
  .missing-path h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
