:root {
  --terms-ground: #edf4e6;
  --terms-ink: #282d22;
  --terms-accent: #7fafd8;
  --terms-support: #c5ddcf;
  --terms-surface: #fcfdfb;
  --terms-display: 'Corben', Georgia, serif;
  --terms-body: 'Mako', 'Trebuchet MS', sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-padding-top: 30px; }
body { margin: 0; background: var(--terms-surface); color: var(--terms-ink); font: 18px/1.65 var(--terms-body); }
::selection { background: var(--terms-accent); color: var(--terms-ink); }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: background-color .16s, box-shadow .16s, transform .16s; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible { outline: 3px solid var(--terms-ink); outline-offset: 5px; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; }
svg { display: block; }
h1, h2, h3 { font-family: var(--terms-display); font-weight: 400; overflow-wrap: normal; }
h1 { margin: 0; font-size: clamp(40px, 4.25vw, 62px); line-height: 1.18; letter-spacing: -.035em; }
h2 { margin: 0 0 28px; font-size: clamp(28px, 3vw, 42px); line-height: 1.28; letter-spacing: -.025em; }
h3 { margin: 0 0 12px; font-size: 25px; line-height: 1.35; }
.terms-skip { position: absolute; left: 24px; top: -100px; z-index: 10; background: var(--terms-accent); padding: 10px 18px; }
.terms-skip:focus { top: 12px; }
.terms-library-icon { display: inline-block; width: 21px; height: 21px; flex: 0 0 21px; vertical-align: middle; }
.terms-library-icon:empty { display: none; }
.docket-head { width: min(1280px, calc(100% - 96px)); margin: 0 auto; padding: 18px 0 12px; }
.docket-lintels { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.docket-lintels a { display: flex; gap: 12px; align-items: center; padding: 8px 0 0; border-top: 10px solid var(--terms-ink); text-decoration: none; line-height: 1.25; font-size: 17px; }
.docket-lintels a:nth-child(1) { width: 36%; }
.docket-lintels a:nth-child(2) { width: 29%; }
.docket-lintels a:nth-child(3) { width: 22%; border-color: var(--terms-accent); }
.docket-lintels a:hover, .docket-lintels a:focus-visible { border-color: var(--terms-accent); background: var(--terms-ground); }
.docket-lintels a:nth-child(3):hover, .docket-lintels a:nth-child(3):focus-visible { border-color: var(--terms-ink); }
.docket-wordmark { margin: 6px 0 0 auto; width: max-content; max-width: 100%; font: 26px/1.4 var(--terms-display); white-space: nowrap; }
.docket-wordmark a { text-decoration: none; }
.docket-wordmark a:hover { box-shadow: 0 4px 0 var(--terms-accent); }
.terms-threshold { position: relative; isolation: isolate; overflow: clip; padding-top: 46px; background: var(--terms-support); }
.threshold-frame { display: grid; width: min(1280px, calc(100% - 96px)); margin: 0 auto; grid-template-columns: 340px minmax(0, 1fr); grid-template-areas: 'photo title' 'terms terms'; gap: 36px 70px; }
.threshold-background { position: absolute; z-index: -2; inset: 0; overflow: hidden; }
.threshold-background img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.threshold-statement { grid-area: title; position: relative; align-self: center; isolation: isolate; padding: 28px 32px 36px 38px; background: var(--terms-accent); border-top: 12px solid var(--terms-ink); }
.threshold-statement::before { content: ''; position: absolute; height: 12px; top: -36px; left: 0; width: 28%; background: var(--terms-ink); }
.threshold-statement::after { content: ''; position: absolute; z-index: -1; top: -12px; bottom: 0; left: 100%; width: max(48px, calc((100vw - 1280px) / 2)); background: var(--terms-accent); border-top: 12px solid var(--terms-ink); }
.terms-octagon { grid-area: photo; position: relative; width: 340px; height: 340px; margin: 0; isolation: isolate; }
.terms-octagon::before { content: ''; position: absolute; z-index: -1; width: 62%; height: 62%; bottom: -18px; left: -18px; background: var(--terms-accent); box-shadow: -8px 10px 0 var(--terms-ink); }
.octagon-field { position: absolute; inset: 0; overflow: hidden; clip-path: polygon(23% 0, 77% 0, 100% 23%, 100% 77%, 77% 100%, 23% 100%, 0 77%, 0 23%); background: var(--terms-support); }
.octagon-field img { width: 100%; height: 100%; object-fit: cover; display: block; }
.threshold-terms { grid-area: terms; position: relative; isolation: isolate; padding: 24px 0 30px; }
.threshold-terms::before { content: ''; position: absolute; z-index: -1; inset: 0 calc((100% - 100vw) / 2); background: var(--terms-ground); }
.threshold-lead { font-size: 20px; max-width: 75ch; margin: 0 0 16px; }
.terms-mention { margin: 0; color: var(--terms-ink); font-size: 17px; line-height: 1.5; }
.mention-wide { margin: 0; }
.mention-name { font-weight: 700; }
.mention-address { white-space: nowrap; }
.mention-continuation { position: relative; margin: 10px 80px 0; }
.terms-gates { display: grid; gap: 100px; width: min(1280px, calc(100% - 96px)); margin: 108px auto 92px; }
.terms-gate { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr); border-top: 24px solid var(--terms-accent); }
.terms-gate::after { content: ''; position: absolute; left: 242px; right: 24px; bottom: -20px; height: 10px; background: var(--terms-support); }
.gate-upright { position: relative; min-height: 380px; background: var(--terms-ground); padding: 78px 28px 36px; }
.gate-index { position: absolute; top: -70px; left: 20px; font: 108px/1 var(--terms-display); letter-spacing: -.08em; }
.upright-condition { position: sticky; top: 34px; margin: 0; font: 24px/1.45 var(--terms-display); }
.gate-icon { position: absolute; bottom: 30px; left: 30px; width: 32px; height: 32px; }
.terms-gate:nth-child(2) .gate-upright { background: var(--terms-support); }
.terms-gate:nth-child(3) .gate-upright { background: var(--terms-accent); }
.lintel-consequence { padding: 40px 28px 20px 62px; }
.lintel-consequence h2 { max-width: 23ch; }
.lintel-consequence p { max-width: 72ch; }
.lintel-consequence a { overflow-wrap: anywhere; }
.reading-links { width: min(1280px, calc(100% - 96px)); margin: 0 auto; padding: 0 0 92px; }
.terms-joint { width: 272px; max-width: 100%; height: 28px; }
.reading-links h2 { margin-top: 32px; font-size: 36px; }
.reading-links ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; padding: 0; margin: 36px 0 0; }
.reading-links a { display: flex; gap: 20px; align-items: center; min-height: 88px; padding: 18px 24px; border-top: 8px solid var(--terms-accent); background: var(--terms-ground); text-decoration: none; }
.reading-links a:hover, .reading-links a:focus-visible { background: var(--terms-accent); transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--terms-ink); }
.terms-article { width: min(1160px, calc(100% - 96px)); margin: 0 auto; }
.terms-crumb { display: flex; gap: 24px; padding-top: 28px; margin-bottom: 30px; font-size: 16px; }
.terms-crumb span { border-left: 8px solid var(--terms-accent); padding-left: 20px; }
.article-opening { padding: 0 0 72px; position: relative; }
.article-opening h1 { max-width: 1060px; font-size: clamp(37px, 4vw, 56px); border-top: 14px solid var(--terms-ink); padding-top: 28px; }
.article-lead { max-width: 66ch; font-size: 21px; margin-top: 28px; }
.article-photo { position: relative; height: 260px; width: calc(100% + 28px); max-width: none; margin: 38px 0 0 -28px; isolation: isolate; }
.article-photo::before { content: ''; position: absolute; z-index: -1; left: -12px; width: 40%; height: 70%; bottom: -14px; background: var(--terms-accent); box-shadow: -6px 8px 0 var(--terms-ink); }
.article-photo > div { height: 100%; overflow: hidden; clip-path: polygon(40px 0, calc(100% - 40px) 0, 100% 40px, 100% calc(100% - 40px), calc(100% - 40px) 100%, 40px 100%, 0 calc(100% - 40px), 0 40px); background: var(--terms-support); }
.article-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clause-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 0 52px; border-top: 18px solid var(--terms-accent); margin: 0 0 68px; }
.clause-upright { position: relative; padding: 28px 20px 30px; background: var(--terms-ground); }
.clause-index { display: block; margin-bottom: 22px; font: 65px/1 var(--terms-display); letter-spacing: -.06em; }
.clause-condition { position: sticky; top: 30px; font: 22px/1.45 var(--terms-display); margin: 0; }
.clause-consequence { padding: 28px 0 5px; }
.clause-consequence h2 { font-size: 34px; max-width: 26ch; }
.clause-consequence p { max-width: 69ch; }
.reference-register { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; margin: 0 0 42px; }
.reference-entry { position: relative; margin: 0 0 42px; border-top: 12px solid var(--terms-accent); padding: 22px 8px 0 60px; }
.reference-index { position: absolute; top: 26px; left: 0; font: 28px/1 var(--terms-display); }
.reference-entry h2 { font-size: 24px; margin-bottom: 16px; }
.reference-entry p { font-size: 17px; max-width: 70ch; }
.reference-afterword { margin-left: 60px; max-width: 70ch; padding: 0 0 60px; }
.terms-footer { border-top: 18px solid var(--terms-accent); background: var(--terms-support); padding: 44px max(48px, calc((100vw - 1280px) / 2)) 30px; }
.footer-ground { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 100px; row-gap: 30px; }
.footer-ground p { max-width: 57ch; font-size: 17px; }
.footer-ground nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; align-content: start; font-size: 17px; }
.footer-ground small { grid-column: 1 / -1; font-size: 16px; }
.missing-path { padding: 60px 0 100px; max-width: 800px; }
.missing-path p { margin-top: 30px; }
@media (max-width: 1000px) and (min-width: 601px) {
  .threshold-frame { grid-template-columns: 240px minmax(0, 1fr); gap: 32px 32px; }
  .terms-octagon { width: 240px; height: 240px; align-self: center; }
  .threshold-statement { padding: 22px 20px 28px; }
  .threshold-statement h1 { font-size: 39px; }
  .terms-gate { grid-template-columns: 170px minmax(0, 1fr); }
  .gate-upright { padding-left: 20px; padding-right: 20px; }
  .upright-condition { font-size: 22px; }
  .lintel-consequence { padding: 35px 0 20px 30px; }
  .clause-row { grid-template-columns: 170px minmax(0, 1fr); gap: 30px; }
  .reference-register { column-gap: 32px; }
  .reading-links ul { gap: 24px; }
  .footer-ground { column-gap: 40px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; line-height: 1.6; }
  .docket-head { width: calc(100% - 40px); padding: 12px 0 0; }
  .docket-lintels { gap: 12px; }
  .docket-lintels a, .docket-lintels a:nth-child(n) { width: max-content; flex: 0 0 auto; gap: 6px; font-size: 16px; line-height: 20px; border-top-width: 6px; padding-top: 4px; }
  .docket-lintels .terms-library-icon { width: 16px; height: 16px; flex-basis: 16px; }
  .docket-wordmark { font-size: 24px; line-height: 32px; margin-top: 3px; }
  .terms-threshold { padding-top: 20px; background: var(--terms-ground); }
  .threshold-frame { width: calc(100% - 40px); grid-template-columns: minmax(0, 1fr) 100px; grid-template-areas: 'title title' 'mention mention' 'lead photo'; column-gap: 18px; row-gap: 24px; padding-bottom: 0; }
  .threshold-statement { padding: 17px 18px 24px; border-top-width: 8px; }
  .threshold-statement::before, .threshold-statement::after { display: none; }
  .threshold-statement h1 { font-size: 36px; line-height: 1.16; letter-spacing: -.035em; }
  .threshold-terms { display: contents; }
  .terms-mention { grid-area: mention; font-size: 16px; line-height: 1.45; }
  .mention-continuation { margin: 10px 30px 0; }
  .threshold-lead { grid-area: lead; font-size: 17px; line-height: 1.45; margin: 0; padding: 14px 12px 14px 0; align-self: center; background: var(--terms-ground); }
  .terms-octagon { width: 100px; height: 100px; align-self: center; }
  .terms-octagon::before { display: none; }
  .threshold-background { position: relative; grid-column: 1 / -1; grid-row: 3; min-height: 190px; inset: auto; margin: 0 -20px; }
  .threshold-background img { position: absolute; inset: 0; object-position: 35% 45%; }
  .terms-gates { width: calc(100% - 40px); gap: 74px; margin: 76px auto 66px; }
  .terms-gate { grid-template-columns: 78px minmax(0, 1fr); border-top-width: 16px; }
  .terms-gate::after { left: 96px; right: 0; bottom: -16px; height: 8px; }
  .gate-upright { padding: 45px 10px 28px; min-height: 380px; }
  .gate-index { top: -45px; left: 6px; font-size: 60px; }
  .upright-condition { font: 16px/1.4 var(--terms-body); top: 20px; }
  .gate-icon { width: 24px; height: 24px; left: 12px; bottom: 24px; }
  .lintel-consequence { padding: 23px 0 12px 20px; }
  .lintel-consequence h2 { font-size: 27px; line-height: 1.27; margin-bottom: 22px; }
  .lintel-consequence p { font-size: 16px; line-height: 1.6; }
  .reading-links { width: calc(100% - 40px); padding-bottom: 52px; }
  .terms-joint { width: 220px; height: 24px; }
  .reading-links h2 { font-size: 29px; }
  .reading-links ul { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .reading-links a { min-height: 78px; padding: 14px 18px; gap: 14px; }
  .terms-article { width: calc(100% - 40px); }
  .terms-crumb { gap: 16px; padding-top: 24px; margin-bottom: 24px; font-size: 16px; }
  .terms-crumb span { padding-left: 12px; border-width: 6px; }
  .article-opening { padding-bottom: 45px; }
  .article-opening h1 { font-size: 35px; line-height: 1.2; border-top-width: 10px; padding-top: 20px; }
  .article-lead { font-size: 18px; margin-top: 22px; }
  .article-photo { width: 100%; height: 180px; margin: 30px 0 0; }
  .article-photo::before { display: none; }
  .article-photo > div { clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% calc(100% - 24px), calc(100% - 24px) 100%, 24px 100%, 0 calc(100% - 24px), 0 24px); }
  .clause-row { grid-template-columns: 1fr; gap: 0; border-top-width: 12px; margin-bottom: 40px; }
  .clause-upright { display: flex; gap: 20px; align-items: center; padding: 16px 18px; }
  .clause-index { flex: 0 0 46px; font-size: 40px; margin: 0; }
  .clause-condition { position: static; font: 17px/1.4 var(--terms-body); }
  .clause-consequence { padding: 24px 0 0; }
  .clause-consequence h2 { font-size: 29px; margin-bottom: 22px; }
  .reference-register { grid-template-columns: 1fr; margin-bottom: 22px; }
  .reference-entry { margin-bottom: 32px; padding-left: 48px; }
  .reference-index { font-size: 25px; }
  .reference-entry h2 { font-size: 23px; }
  .reference-afterword { margin-left: 0; padding-bottom: 42px; }
  .terms-footer { padding: 30px 20px 24px; border-top-width: 14px; }
  .footer-ground { grid-template-columns: 1fr; gap: 28px; }
  .footer-ground nav { gap: 14px 22px; font-size: 16px; }
  .footer-ground small { font-size: 16px; }
  .missing-path { padding: 40px 0 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; transition: none; }
}
