:root {
  --tor-ground: #DDEDF8;
  --tor-ink: #2A2A2A;
  --tor-accent: #89541F;
  --tor-support: #D3DADE;
  --tor-surface: #FFFFFF;
  --tor-water: #176879;
  --tor-display: 'Jockey One', Impact, sans-serif;
  --tor-copy: 'Copse', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--tor-ink); background: var(--tor-surface); font-family: var(--tor-copy); font-size: 18px; line-height: 1.8; }
img, svg { max-width: 100%; }
img { display: block; color: var(--tor-ink); font-size: 16px; }
a { color: var(--tor-ink); text-decoration-color: var(--tor-accent); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-underline-offset 160ms ease, text-decoration-color 160ms ease; }
a:hover { text-decoration-color: var(--tor-water); text-decoration-thickness: 3px; text-underline-offset: 8px; }
a:focus-visible { outline: 3px solid var(--tor-accent); outline-offset: 6px; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: var(--tor-display); font-weight: 400; line-height: 1.06; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(48px, 5.8vw, 84px); }
h2 { margin: 0 0 26px; font-size: clamp(36px, 3.8vw, 55px); }
h3 { margin: 0 0 20px; font-size: 30px; }
figure { margin: 0; }
.tor-skip { position: absolute; top: 8px; left: 22px; z-index: 20; padding: 8px 16px; background: var(--tor-surface); transform: translateY(-180%); }
.tor-skip:focus { transform: translateY(0); }

/* The open hexagon is navigation, with the full name in its open base. */
.tor-masthead { padding: 14px 22px 20px; background: var(--tor-ground); }
.tor-crown { position: relative; width: min(700px, 100%); height: 114px; margin: 0 auto; }
.tor-crown-line { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--tor-accent); stroke-width: 2.5; }
.tor-crown-link { position: absolute; display: flex; align-items: center; gap: 8px; font-size: 17px; line-height: 1.4; text-decoration: none; padding: 4px 0; }
.tor-crown-link:hover, .tor-crown-link[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--tor-accent); text-underline-offset: 7px; }
.tor-crown-link--top { left: 50%; top: -2px; transform: translateX(-50%); }
.tor-crown-link--left { left: 30px; top: 0; }
.tor-crown-link--right { right: 30px; top: 0; }
.tor-crown-link svg, .tor-crown-link i { width: 18px; height: 18px; flex: 0 0 18px; }
.tor-wordmark { position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); white-space: nowrap; font-family: var(--tor-display); font-size: 43px; line-height: 1.15; text-decoration: none; }
.tor-wordmark:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* A stream fills the page edge to edge. The blue text band has a V cut,
   opening a window back into the photograph without putting words on it. */
.tor-opening { position: relative; isolation: isolate; overflow: hidden; padding-top: 264px; background: var(--tor-ground); }
.tor-hero-photo { position: absolute; z-index: -1; inset: 0; background-color: var(--tor-support); background-image: url('/tb-reader-d4d3ab381ca4/the-wider-underwater-view.webp'); background-size: cover; background-position: center 42%; }
.tor-opening-panel { position: relative; padding: 64px 22px 38px; background: var(--tor-ground); clip-path: polygon(0 0, calc(50% - 100px) 0, 50% 42px, calc(50% + 100px) 0, 100% 0, 100% 100%, 0 100%); }
.tor-opening-panel::before, .tor-opening-panel::after { content: ''; position: absolute; top: 0; height: 10px; width: calc(50% - 100px); background: var(--tor-accent); }
.tor-opening-panel::before { left: 0; }
.tor-opening-panel::after { right: 0; }
.tor-opening h1 { max-width: 1000px; margin: 0 auto; text-align: center; }
.tor-opening h1 span { display: block; }
.tor-opening-premise { max-width: 760px; margin: 26px auto 0; font-size: 20px; line-height: 1.7; text-align: center; }
.tor-widening { display: flex; flex-direction: column; align-items: center; gap: 9px; margin: 0; padding: 0 22px 44px; background: var(--tor-ground); }
.tor-widening span { display: block; height: 11px; background: var(--tor-accent); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.tor-widening span:nth-child(1) { width: 48px; }
.tor-widening span:nth-child(2) { width: 94px; }
.tor-widening span:nth-child(3) { width: 150px; }

/* The explanation expands: two open essays, a photograph across the gap,
   then three unequal foundations. No card is a navigation control. */
.tor-home-reading { padding: 80px 44px 104px; }
.tor-context-pair { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 96px; max-width: 1040px; margin: 0 auto; align-items: start; }
.tor-context-essay { position: relative; padding-top: 27px; border-top: 9px solid var(--tor-ground); }
.tor-context-essay:nth-child(2) { margin-top: 100px; border-top-color: var(--tor-accent); }
.tor-context-essay h2 { max-width: 400px; }
.tor-section-symbol { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 18px; color: var(--tor-accent); }
.tor-section-symbol svg, .tor-section-symbol i { width: 31px; height: 31px; }
.tor-context-essay > .tor-section-symbol { position: absolute; right: 0; top: -29px; background: var(--tor-surface); border: 2px solid var(--tor-accent); }
.tor-photo-crossing { position: relative; isolation: isolate; width: min(1180px, 100%); margin: 80px auto 86px; padding: 0 0 44px 210px; }
.tor-sideglance { position: relative; }
.tor-sideglance::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; background: var(--tor-support); border-radius: 8px; }
.tor-sideglance img { width: 100%; height: 290px; object-fit: cover; border-radius: 8px; background: var(--tor-support); }
.tor-triangle { position: absolute; left: 0; bottom: 0; width: 320px; height: 300px; padding: 8px; background: var(--tor-accent); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.tor-triangle img { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.tor-foundations { display: grid; grid-template-columns: 1.05fr 0.86fr 1.29fr; gap: 32px; max-width: 1264px; margin: 0 auto; align-items: start; }
.tor-foundation { position: relative; padding: 28px 28px 38px; background: var(--tor-ground); border-top: 10px solid var(--tor-accent); box-shadow: 9px 12px 0 var(--tor-support); }
.tor-foundation:nth-child(1) { margin-top: 35px; }
.tor-foundation:nth-child(2) { margin-top: 108px; background: var(--tor-surface); border: 3px solid var(--tor-accent); border-top-width: 10px; box-shadow: 9px 12px 0 var(--tor-ground); }
.tor-foundation:nth-child(3) { border-top-width: 18px; }
.tor-foundation > .tor-section-symbol { width: 62px; height: 62px; margin-top: -66px; margin-bottom: 24px; background: var(--tor-ground); border: 3px solid var(--tor-accent); }
.tor-foundation:nth-child(2) > .tor-section-symbol { background: var(--tor-surface); }
.tor-foundation h2 { font-size: 42px; }

/* Each topic opens on a solid blue premise beside its own small photo.
   The later prose grows wider, with open margins rather than worksheet boxes. */
.tor-breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 28px 22px 32px; font-size: 16px; }
.tor-breadcrumb svg, .tor-breadcrumb i { width: 18px; height: 24px; }
.tor-topic-front { max-width: 1280px; margin: 0 auto; }
.tor-topic-front--photographic { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: stretch; padding: 0 44px; }
.tor-topic-heading { position: relative; max-width: 880px; text-align: center; margin: 0 auto; padding: 42px 44px; background: var(--tor-ground); border-top: 8px solid var(--tor-accent); }
.tor-topic-front--photographic .tor-topic-heading { padding: 32px 36px 46px; text-align: left; }
.tor-page-marker { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 17px; }
.tor-page-marker svg, .tor-page-marker i { width: 24px; height: 24px; flex: 0 0 24px; color: var(--tor-accent); }
.tor-topic-front--photographic .tor-page-marker { justify-content: flex-start; }
.tor-topic-heading h1 { max-width: 760px; margin: 0 auto; font-size: clamp(44px, 4.6vw, 64px); }
.tor-topic-premise { max-width: 650px; margin: 26px auto 0; font-size: 19px; line-height: 1.75; }
.tor-photo-band { position: relative; min-width: 0; margin: 38px 0 -28px -16px; z-index: 1; }
.tor-photo-band::after { content: ''; position: absolute; right: 0; bottom: -10px; width: 38%; height: 10px; background: var(--tor-accent); }
.tor-photo-band img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; object-position: 42% center; border-radius: 8px; background: var(--tor-support); }
.tor-topic-sections { padding: 92px 66px 84px; }
.tor-explanation { position: relative; margin: 0 auto 58px; padding-top: 30px; border-top: 7px solid var(--tor-ground); }
.tor-explanation:nth-child(1) { max-width: 690px; }
.tor-explanation:nth-child(2) { max-width: 790px; }
.tor-explanation:nth-child(3) { max-width: 890px; }
.tor-explanation:nth-child(n+4) { max-width: 990px; }
.tor-explanation:nth-child(2) { border-top-color: var(--tor-accent); }
.tor-explanation h2 { max-width: 760px; padding-right: 12px; font-size: 44px; }
.tor-explanation h2 > .tor-section-symbol { position: absolute; top: 23px; left: -58px; margin: 0; width: 40px; height: 40px; }
.tor-explanation p { max-width: 76ch; }
.tor-next-reading { display: grid; grid-template-columns: 170px 1fr; gap: 32px; max-width: 990px; margin: 12px auto 0; padding: 30px 0 0; border-top: 8px solid var(--tor-support); }
.tor-next-reading h2 { font-size: 30px; margin: 0; }
.tor-next-reading p { max-width: 650px; }
.tor-footer { padding: 40px max(44px, calc((100% - 1176px) / 2)) 36px; border-top: 10px solid var(--tor-accent); background: var(--tor-ground); }
.tor-footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 28px; font-size: 17px; }
.tor-footer p { max-width: 750px; font-size: 16px; }
.tor-footer .tor-copyright { margin-top: 14px; }
.tor-lost { padding: 40px 66px 90px; }
.tor-lost .tor-explanation { margin-top: 60px; }

/* One motion moment, confined to the photograph. Words never wait for it. */
@media (min-width: 781px) and (prefers-reduced-motion: no-preference) {
  .tor-hero-photo { animation: tor-water-settle 1000ms ease-out both; }
}
@keyframes tor-water-settle {
  from { transform: scale(1.035); }
  to { transform: scale(1); }
}
@media (max-width: 1100px) {
  .tor-context-pair { gap: 54px; }
  .tor-foundations { gap: 24px; }
  .tor-foundation { padding: 26px 22px 32px; }
  .tor-foundation h2 { font-size: 36px; }
  .tor-topic-front--photographic { padding-inline: 32px; }
  .tor-topic-front--photographic .tor-topic-heading { padding-inline: 28px; }
  .tor-topic-heading h1 { font-size: 52px; }
}
@media (max-width: 780px) {
  .tor-opening { padding-top: 210px; }
  .tor-opening h1 { font-size: 64px; }
  .tor-foundations { grid-template-columns: 1fr; max-width: 640px; gap: 66px; }
  .tor-foundation:nth-child(n) { margin-top: 0; padding: 28px 30px 34px; }
  .tor-foundation h2 { font-size: 42px; }
  .tor-context-pair { grid-template-columns: 1fr; max-width: 640px; gap: 55px; }
  .tor-context-essay:nth-child(2) { margin-top: 0; }
  .tor-context-essay h2 { max-width: 520px; }
  .tor-photo-crossing { padding-left: 85px; padding-bottom: 68px; margin: 58px auto 70px; }
  .tor-triangle { width: 210px; height: 196px; }
  .tor-sideglance img { height: 240px; }
  .tor-sideglance::before { inset: 12px -12px -12px 12px; }
  .tor-topic-front--photographic { display: block; }
  .tor-topic-front--photographic .tor-topic-heading { padding-bottom: 44px; text-align: center; }
  .tor-topic-front--photographic .tor-page-marker { justify-content: center; }
  .tor-photo-band { margin: -16px 22px 0; }
  .tor-photo-band img { height: 200px; min-height: 0; object-position: center; }
  .tor-topic-sections { padding-top: 62px; }
  .tor-next-reading { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; line-height: 1.8; }
  h2 { font-size: 36px; margin-bottom: 22px; }
  .tor-masthead { padding: 18px 22px 20px; }
  .tor-crown { height: 88px; }
  .tor-crown-line { stroke-width: 3; }
  .tor-crown-link { font-size: 16px; gap: 4px; padding: 2px 0; }
  .tor-crown-link svg, .tor-crown-link i { display: none; }
  .tor-crown-link--top { top: -2px; }
  .tor-crown-link--left { left: 3px; top: 0; }
  .tor-crown-link--right { right: 3px; top: 0; }
  .tor-wordmark { font-size: 29px; bottom: 0; }
  .tor-opening { padding-top: 164px; }
  .tor-hero-photo { background-size: auto 360px; background-repeat: no-repeat; background-position: 43% top; }
  .tor-opening-panel { padding: 50px 22px 30px; clip-path: polygon(0 0, calc(50% - 60px) 0, 50% 30px, calc(50% + 60px) 0, 100% 0, 100% 100%, 0 100%); }
  .tor-opening-panel::before, .tor-opening-panel::after { width: calc(50% - 60px); height: 7px; }
  .tor-opening h1 { font-size: 46px; line-height: 1.06; }
  .tor-opening-premise { font-size: 18px; margin-top: 24px; line-height: 1.75; }
  .tor-widening { padding-bottom: 34px; gap: 8px; }
  .tor-widening span { height: 9px; }
  .tor-home-reading { padding: 54px 22px 72px; }
  .tor-context-essay h2 { font-size: 40px; }
  .tor-context-essay > .tor-section-symbol { width: 42px; height: 42px; top: -27px; }
  .tor-photo-crossing { padding-left: 42px; padding-bottom: 62px; margin-top: 44px; margin-bottom: 68px; }
  .tor-sideglance img { height: 180px; }
  .tor-triangle { width: 160px; height: 150px; padding: 5px; }
  .tor-foundation:nth-child(n) { padding: 24px 22px 30px; box-shadow: 6px 9px 0 var(--tor-support); }
  .tor-foundation h2 { font-size: 36px; }
  .tor-foundation > .tor-section-symbol { margin-top: -62px; }
  .tor-breadcrumb { margin-top: 24px; margin-bottom: 26px; font-size: 16px; gap: 8px; }
  .tor-topic-front--photographic { padding-inline: 22px; }
  .tor-topic-heading, .tor-topic-front--photographic .tor-topic-heading { padding: 26px 22px 34px; }
  .tor-topic-front:not(.tor-topic-front--photographic) { margin-inline: 22px; }
  .tor-page-marker { margin-bottom: 18px; font-size: 16px; }
  .tor-topic-heading h1 { font-size: 42px; }
  .tor-topic-premise { font-size: 18px; margin-top: 22px; }
  .tor-photo-band { margin: -12px 12px 0; }
  .tor-photo-band img { height: 140px; }
  .tor-topic-sections { padding: 46px 22px 56px; }
  .tor-explanation { padding-top: 22px; margin-bottom: 38px; }
  .tor-explanation h2 { padding-right: 0; font-size: 36px; }
  .tor-explanation h2 > .tor-section-symbol { position: static; margin: 0 0 12px; width: 32px; height: 32px; }
  .tor-explanation h2 > .tor-section-symbol svg, .tor-explanation h2 > .tor-section-symbol i { width: 26px; height: 26px; }
  .tor-footer { padding: 30px 22px; }
  .tor-footer-links { gap: 13px 24px; }
  .tor-lost { padding: 30px 22px 50px; }
  .tor-lost .tor-topic-heading { padding-inline: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
