:root {
  --bay-rose: #f4dbe0;
  --bay-ink: #3e2d31;
  --bay-cyan: #087e84;
  --bay-ivory: #fffdf7;
  --bay-paper: #fae9ec;
  --bay-display: 'Dosis', 'Trebuchet MS', sans-serif;
  --bay-text: 'Libre Baskerville', Georgia, serif;
  color-scheme: light;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 36px; }
body { margin: 0; background: var(--bay-rose); color: var(--bay-ink); font: 18px/1.85 var(--bay-text); }
img { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--bay-cyan); text-decoration-thickness: 2px; text-underline-offset: .23em; transition: text-decoration-color 160ms, text-underline-offset 160ms; }
a:hover { text-decoration-thickness: 3px; text-underline-offset: .38em; }
a:focus-visible { outline: 3px solid var(--bay-cyan); outline-offset: 6px; border-radius: 3px; background-color: var(--bay-paper); }
::selection { color: var(--bay-ink); background: #bfe7e7; }
h1, h2, h3, .bay-wordmark, .bay-nav-read, .bay-chapter-name, .bay-onward, .bay-breadcrumb { font-family: var(--bay-display); }
h1, h2, h3 { font-weight: 600; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(54px, 6.1vw, 88px); margin: 0; }
h2 { font-size: clamp(36px, 3.6vw, 52px); margin: 0 0 28px; }
h3 { font-size: 38px; margin: 0 0 26px; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
.bay-icon { font-size: 22px; line-height: 1; color: var(--bay-cyan); }
h2 > .bay-icon { display: block; width: fit-content; margin-bottom: 20px; }
h2 > span { display: block; }
.bay-skip { position: absolute; z-index: 20; left: 20px; top: -120px; padding: 10px 18px; background: var(--bay-paper); }
.bay-skip:focus { top: 16px; }

/* The photograph owns the opening; words sit directly in its upper centre. */
.bay-perimeter { position: absolute; z-index: 4; inset: 0 0 auto; height: 78svh; pointer-events: none; }
.bay-wordmark { font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; pointer-events: auto; }
.bay-wordmark:hover { text-decoration: underline; text-decoration-color: var(--bay-cyan); }
.bay-perimeter .bay-wordmark { position: absolute; top: 34px; left: 44px; }
.bay-perimeter nav { display: contents; }
.bay-nav-read { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 22px; font-weight: 600; line-height: 1.2; pointer-events: auto; }
.bay-nav-read .bay-icon { font-size: 17px; flex: 0 0 20px; }
.bay-perimeter .bay-nav-read { position: absolute; padding: 9px 0; }
.bay-perimeter .bay-nav-read:nth-child(1) { top: 27px; right: 284px; }
.bay-perimeter .bay-nav-read:nth-child(2) { top: 27px; right: 44px; }
.bay-perimeter .bay-nav-read:nth-child(3) { bottom: 28px; left: 44px; }
.bay-perimeter .bay-nav-read:nth-child(4) { bottom: 28px; right: 44px; }
.bay-perimeter .bay-nav-read::before, .bay-perimeter .bay-wordmark::before {
  content: ''; position: absolute; z-index: -1; inset: -12px -20px;
  background: linear-gradient(90deg, #ffffff00, #fffffff7 18px, #fffffff7 calc(100% - 18px), #ffffff00);
  mask-image: linear-gradient(transparent, #000 10px, #000 calc(100% - 10px), transparent);
  pointer-events: none;
}
.bay-opening { position: relative; height: 78svh; isolation: isolate; background: #f4e5dc; }
.bay-opening-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0%; border-radius: 0; font-size: 0; }
.bay-opening-words { position: absolute; top: 82px; left: 50%; transform: translateX(-50%); width: min(930px, 80%); text-align: center; }
.bay-opening-words::before {
  content: ''; position: absolute; z-index: -1; inset: -18px -28px 22px;
  background: linear-gradient(90deg, #ffffff00, #fffffff7 24px, #fffffff7 calc(100% - 24px), #ffffff00);
  mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 14px), transparent);
  pointer-events: none;
}
.bay-opening h1 { line-height: 1.04; letter-spacing: -.014em; }
.bay-h1-clause { display: block; font-size: clamp(38px, 3.8vw, 55px); font-weight: 500; }
.bay-h1-imperative { display: block; font-size: clamp(52px, 4.8vw, 70px); font-weight: 600; }
.bay-opening-words > p { position: relative; isolation: isolate; width: fit-content; margin: 10px auto 0; transform: translateX(-65px); font: 600 20px/1.3 var(--bay-display); }
.bay-opening-words > p::before { content: ''; position: absolute; z-index: -1; inset: -7px -18px; background: linear-gradient(90deg, #ffffff00, #fffffff7 14px, #fffffff7 calc(100% - 14px), #ffffff00); mask-image: linear-gradient(transparent, #000 6px, #000 calc(100% - 6px), transparent); pointer-events: none; }

/* Three open pathways share one rose ground and one continuous return line. */
.bay-path-land { width: min(1232px, calc(100% - 112px)); margin: 0 auto; padding: 88px 0 106px; }
.bay-section-opening { display: grid; grid-template-columns: 1.03fr .97fr; gap: 118px; align-items: end; margin-bottom: 55px; }
.bay-section-opening h2 { margin: 0; max-width: 490px; font-size: clamp(48px, 4.7vw, 68px); }
.bay-section-opening p { max-width: 510px; padding-bottom: 4px; }
.bay-three-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 58px; }
.bay-path-intro { position: relative; border-radius: 14px; padding: 32px 4px 0; }
.bay-path-intro:nth-child(2) { margin-top: 68px; }
.bay-path-intro:nth-child(3) { margin-top: 136px; }
.bay-path-count { display: block; margin: 0 0 0 -7px; font: 500 126px/.95 var(--bay-display); color: var(--bay-cyan); }
.bay-path-intro h3 { padding-top: 24px; border-top: 2px solid var(--bay-cyan); }
.bay-onward { display: inline; font-weight: 600; line-height: 1.4; font-size: 24px; text-decoration: underline; text-decoration-color: var(--bay-cyan); }
.bay-onward .fa-solid { display: inline-block; font-size: .72em; margin-left: .45em; vertical-align: .03em; transition: transform 160ms; }
.bay-onward:hover .fa-solid, .bay-onward:focus-visible .fa-solid { transform: translateX(5px); }
.bay-path-intro > .bay-onward { display: inline-block; margin-top: 9px; }
.bay-return-line { height: 40px; margin: 60px 3px 0; position: relative; }
.bay-return-line::after { content: ''; position: absolute; inset: 0; border-bottom: 4px solid var(--bay-cyan); border-left: 4px solid var(--bay-cyan); border-right: 4px solid var(--bay-cyan); border-radius: 0 0 28px 28px; transform-origin: center; animation: bay-line-return 850ms ease-out both; }
@keyframes bay-line-return { from { transform: scaleX(.96); } to { transform: scaleX(1); } }
.bay-common-ground { margin: 55px 0 0; padding-left: 40%; position: relative; }
.bay-common-ground h2 { position: absolute; left: 0; top: 0; width: 34%; font-size: 46px; }
.bay-common-ground p { max-width: 700px; }
.bay-approval-chapter { width: min(1232px, calc(100% - 112px)); margin: 14px auto 100px; padding: 45px 0 0; border-top: 3px solid var(--bay-cyan); display: grid; grid-template-columns: 1fr 1fr; gap: 118px; }
.bay-approval-chapter h2 { max-width: 500px; font-size: 57px; }
.bay-approval-chapter > div { padding-top: 42px; }
.bay-coverage-chapter { background: var(--bay-ivory); padding: 82px max(56px, calc((100vw - 1232px) / 2)) 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 118px; border-top: 8px solid var(--bay-cyan); }
.bay-coverage-heading { align-self: start; position: sticky; top: 36px; margin-top: -113px; padding-top: 31px; background: var(--bay-ivory); }
.bay-chapter-name { font-size: 24px; display: block; margin: 0 0 28px; padding-top: 18px; }
.bay-coverage-heading h2 { font-size: clamp(48px, 4.7vw, 68px); max-width: 480px; }
.bay-coverage-prose { padding-top: 10px; }
.bay-chapter-links { display: flex; flex-direction: column; align-items: flex-start; gap: 27px; margin-top: 38px; }

/* A generous outer margin carries the reading markers and section headings. */
.bay-inside-header { display: flex; align-items: center; gap: 48px; justify-content: space-between; padding: 30px 44px 28px; border-bottom: 1px solid #c5a5ad; }
.bay-inside-header nav { display: flex; align-items: center; gap: 30px; }
.bay-inside-header .bay-nav-read { font-size: 20px; }
.bay-nav-read[aria-current='page'] { text-decoration-thickness: 4px; }
.bay-inner { width: min(1140px, calc(100% - 112px)); margin: 0 auto; }
.bay-breadcrumb { font-size: 19px; margin: 32px 0 57px; display: flex; gap: 13px; flex-wrap: wrap; }
.bay-page-opening { max-width: 940px; margin: 0 0 60px 164px; }
.bay-page-opening h1 { max-width: 850px; }
.bay-deck { margin-top: 25px; max-width: 710px; font-size: 19px; }
.bay-reading-page { max-width: 760px; margin: 0 0 0 auto; padding-bottom: 105px; }
.bay-lead { font-size: 20px; line-height: 1.75; padding: 0 0 25px 30px; margin-left: -30px; border-left: 4px solid var(--bay-cyan); }
.bay-reading-page > section { display: grid; grid-template-columns: 250px minmax(0, 760px); column-gap: 70px; margin: 75px 0 0 -320px; }
.bay-reading-page > section > h2 { font-size: 36px; align-self: start; position: sticky; top: 36px; }
.bay-section-copy { min-width: 0; }
.bay-reading-page > .bay-picture-chapter > h2 { position: static; }
.bay-picture-chapter .bay-section-copy { display: flex; flex-direction: column; }
.bay-section-copy > p { flex: 0 0 auto; }
.bay-photo-band { position: relative; width: calc(100% + 50px); margin: 0 -50px 47px 0; order: -1; }
.bay-photo-band img { display: block; width: 100%; height: 410px; object-fit: cover; border-radius: 14px; background: #f2d8cf; }
.bay-photo-band figcaption { position: relative; width: 78%; margin: -42px 0 0 -36px; padding: 19px 24px 20px; border-left: 5px solid var(--bay-cyan); background: var(--bay-rose); border-radius: 0 14px 14px 0; font: 600 21px/1.4 var(--bay-display); box-shadow: 0 14px 24px -20px #3e2d3159; }
.bay-photo-considering img { object-position: 45% 42%; }
.bay-photo-conversation img { object-position: 50% 46%; }
.bay-photo-about img { object-position: 50% 55%; }
.bay-reading-page > .bay-bill-passage { position: relative; padding: 36px 30px 30px; margin-right: -30px; background: var(--bay-ivory); border-radius: 14px; }
.bay-bill-passage .bay-photo-band { width: 100%; margin-right: 0; }
.bay-bill-passage .bay-photo-band figcaption { background: var(--bay-ivory); }
.bay-safety-passage > .bay-section-copy { padding-left: 25px; border-left: 4px solid var(--bay-cyan); }
.bay-return-note { margin: 65px 0 0 -90px; padding: 37px 35px 0; border-left: 4px solid var(--bay-cyan); border-top: 4px solid var(--bay-cyan); border-radius: 28px 0 0; }
.bay-return-note p { font: 500 34px/1.3 var(--bay-display); max-width: 650px; margin-bottom: 23px; }
.bay-question-papers { display: grid; gap: 18px; margin: 35px -30px 38px -20px; }
.bay-question-papers p { border-radius: 14px; padding: 25px 28px; margin: 0; background: var(--bay-paper); border-left: 5px solid var(--bay-cyan); box-shadow: 0 18px 25px -25px #3e2d3180; }
.bay-question-papers strong { display: inline-block; margin-bottom: 6px; font: 600 27px/1.2 var(--bay-display); }
.bay-question-papers p:nth-child(2) { margin-left: 22px; margin-right: -10px; }
.bay-question-papers p:nth-child(3) { margin-left: 44px; margin-right: -20px; }
.bay-route-references .bay-reading-page { max-width: none; }
.bay-route-references .bay-reading-page > p { max-width: 760px; margin-left: auto; }
.bay-source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px 74px; margin: 65px 0 50px; }
.bay-source-list section { border-top: 2px solid var(--bay-cyan); padding-top: 25px; }
.bay-source-list h2 { font-size: 30px; margin-bottom: 20px; }
.bay-source-list h2 > .bay-icon { font-size: 19px; margin-bottom: 16px; }
.bay-source-list p { font-size: 18px; }
.bay-footer { padding: 45px max(56px, calc((100vw - 1232px) / 2)) 33px; border-top: 2px solid var(--bay-cyan); }
.bay-footer-first { display: flex; justify-content: space-between; gap: 70px; }
.bay-footer-first p { max-width: 590px; font-size: 18px; }
.bay-footer nav { display: flex; gap: 30px; align-items: flex-start; font: 600 22px/1.4 var(--bay-display); }
.bay-copyright { font: 500 18px/1.4 var(--bay-display); margin-top: 32px; }
.bay-lost { min-height: 65svh; padding: 85px 0 85px 90px; margin: 70px 0 80px; max-width: 850px; border-left: 5px solid var(--bay-cyan); border-bottom: 5px solid var(--bay-cyan); border-radius: 0 0 0 80px; }
.bay-lost h1 { margin-bottom: 35px; }
.bay-lost p { max-width: 650px; }

@media (min-width: 1600px) {
  .bay-opening-words { top: 8%; }
}
@media (max-width: 1200px) and (min-width: 701px) {
  .bay-inside-header { flex-wrap: wrap; gap: 22px; }
  .bay-inside-header nav { width: 100%; justify-content: space-between; gap: 20px; }
  .bay-nav-read { font-size: 20px; }
  .bay-perimeter .bay-nav-read:nth-child(1) { right: 255px; }
  .bay-opening-words { top: 100px; width: 85%; }
  .bay-opening h1 { letter-spacing: -.02em; }
  .bay-h1-clause { font-size: 4.6vw; }
  .bay-h1-imperative { font-size: 6.2vw; }
  .bay-three-ways { gap: 30px; }
  .bay-path-count { font-size: 105px; }
  .bay-path-intro h3 { font-size: 33px; }
  .bay-section-opening, .bay-approval-chapter, .bay-coverage-chapter { gap: 55px; }
  .bay-common-ground { padding-left: 43%; }
  .bay-common-ground h2 { font-size: 38px; width: 36%; }
  .bay-inner { width: calc(100% - 88px); }
  .bay-page-opening { margin-left: 120px; }
  .bay-reading-page { max-width: calc(100% - 210px); }
  .bay-reading-page > section { grid-template-columns: 170px minmax(0, 1fr); column-gap: 40px; margin-left: -210px; }
  .bay-reading-page > section > h2 { font-size: 31px; }
  .bay-photo-band { width: 100%; margin-right: 0; }
  .bay-photo-band img { height: 330px; }
  .bay-photo-band figcaption { width: 90%; margin-left: -15px; }
  .bay-question-papers { margin-left: 0; margin-right: 0; }
  .bay-question-papers p:nth-child(2), .bay-question-papers p:nth-child(3) { margin-right: 0; }
  .bay-reading-page > .bay-bill-passage { padding: 27px 20px; margin-right: -20px; }
}

@media (max-width: 700px) {
  body { font-size: 18px; line-height: 1.8; }
  h1 { font-size: 51px; }
  h2 { font-size: 38px; }
  .bay-perimeter, .bay-inside-header { position: relative; inset: auto; height: auto; min-height: 0; padding: 18px 18px 15px; display: grid; grid-template-columns: 60px 60px repeat(4, minmax(0, 1fr)); gap: 16px 10px; background: var(--bay-paper); }
  .bay-perimeter .bay-wordmark, .bay-inside-header .bay-wordmark { position: static; width: fit-content; font-size: 30px; grid-column: 1 / 3; grid-row: 1; align-self: center; }
  .bay-perimeter nav, .bay-inside-header nav { display: contents; }
  .bay-perimeter .bay-nav-read, .bay-inside-header .bay-nav-read { position: static; padding: 0; font-size: 18px; line-height: 1.22; overflow-wrap: anywhere; min-height: 44px; }
  .bay-nav-read { gap: 7px; }
  .bay-nav-read .bay-icon { font-size: 14px; flex-basis: 15px; }
  .bay-perimeter .bay-nav-read:nth-child(1), .bay-inside-header .bay-nav-read:nth-child(1) { grid-column: 3 / 5; grid-row: 1; }
  .bay-perimeter .bay-nav-read:nth-child(2), .bay-inside-header .bay-nav-read:nth-child(2) { grid-column: 5 / 7; grid-row: 1; }
  .bay-perimeter .bay-nav-read:nth-child(3), .bay-inside-header .bay-nav-read:nth-child(3) { grid-column: 1 / 4; grid-row: 2; }
  .bay-perimeter .bay-nav-read:nth-child(4), .bay-inside-header .bay-nav-read:nth-child(4) { grid-column: 4 / 7; grid-row: 2; }
  .bay-perimeter .bay-wordmark::before, .bay-perimeter .bay-nav-read::before { content: none; }
  .bay-opening { height: 66svh; }
  .bay-opening-photo { object-position: 50% 0%; }
  .bay-opening-words { top: 21px; width: calc(100% - 32px); }
  .bay-h1-clause { font-size: clamp(23px, 6.6vw, 29px); line-height: 1.1; }
  .bay-h1-imperative { font-size: clamp(31px, 9vw, 40px); line-height: 1.08; margin-top: 1px; }
  .bay-opening-words > p { font-size: 17px; line-height: 1.3; margin-top: 8px; transform: none; }
  .bay-opening-words::before { inset: -10px -12px; background: linear-gradient(90deg, #ffffff00, #fffffff7 10px, #fffffff7 calc(100% - 10px), #ffffff00); mask-image: linear-gradient(transparent, #000 8px, #000 calc(100% - 8px), transparent); }
  .bay-path-land { width: calc(100% - 42px); padding: 58px 0 66px; }
  .bay-section-opening { display: block; margin-bottom: 40px; }
  .bay-section-opening h2 { font-size: 47px; max-width: 340px; margin-bottom: 25px; }
  .bay-section-opening p { padding: 0; }
  .bay-three-ways { grid-template-columns: 1fr; gap: 45px; }
  .bay-path-intro, .bay-path-intro:nth-child(2), .bay-path-intro:nth-child(3) { margin: 0; padding: 0 0 0 18px; border-left: 3px solid var(--bay-cyan); }
  .bay-path-count { font-size: 81px; margin: 0 0 14px; }
  .bay-path-intro h3 { font-size: 37px; border: 0; padding: 0; margin-bottom: 23px; }
  .bay-onward { font-size: 24px; }
  .bay-return-line { margin: 39px 0 0; height: 30px; }
  .bay-common-ground { margin-top: 36px; padding: 0; }
  .bay-common-ground h2 { position: static; width: auto; font-size: 40px; }
  .bay-approval-chapter { width: calc(100% - 42px); margin: 0 auto 66px; padding-top: 30px; display: block; }
  .bay-approval-chapter h2 { font-size: 44px; }
  .bay-approval-chapter > div { padding: 0; }
  .bay-coverage-chapter { display: block; padding: 43px 22px 61px; }
  .bay-coverage-heading { position: static; margin: -69px 0 25px; padding-top: 21px; }
  .bay-chapter-name { margin-bottom: 28px; font-size: 22px; }
  .bay-coverage-heading h2 { font-size: 49px; margin-bottom: 30px; }
  .bay-coverage-prose { padding: 0; }
  .bay-inner { width: calc(100% - 42px); }
  .bay-breadcrumb { margin: 27px 0 38px; font-size: 18px; gap: 11px; }
  .bay-page-opening { margin: 0 0 37px; }
  .bay-page-opening h1 { font-size: 51px; }
  .bay-deck { margin-top: 22px; font-size: 18px; }
  .bay-reading-page { max-width: none; margin: 0; padding-bottom: 65px; }
  .bay-lead { font-size: 20px; padding-left: 17px; margin-left: 0; }
  .bay-reading-page > section { display: block; margin: 48px 0 0; }
  .bay-reading-page > section > h2 { position: static; font-size: 38px; }
  h2 > .bay-icon { margin-bottom: 17px; }
  .bay-photo-band { width: calc(100% + 21px); margin: 0 -21px 33px 0; }
  .bay-photo-band img { height: 270px; border-radius: 14px 0 0 14px; }
  .bay-photo-band figcaption { width: calc(100% - 24px); margin: -27px 0 0 -9px; padding: 16px 17px; font-size: 20px; }
  .bay-reading-page > .bay-bill-passage { padding: 28px 17px 23px; margin-left: -9px; margin-right: -9px; }
  .bay-bill-passage .bay-photo-band { width: calc(100% + 17px); margin-right: -17px; }
  .bay-bill-passage .bay-photo-band img { height: 240px; }
  .bay-safety-passage > .bay-section-copy { padding-left: 18px; }
  .bay-return-note { padding: 26px 0 0 19px; margin: 47px 0 0; border-width: 3px; }
  .bay-return-note p { font-size: 29px; }
  .bay-question-papers { margin: 28px 0 31px; gap: 16px; }
  .bay-question-papers p { padding: 21px 16px; }
  .bay-question-papers strong { font-size: 26px; }
  .bay-question-papers p:nth-child(2) { margin-left: 10px; margin-right: -4px; }
  .bay-question-papers p:nth-child(3) { margin-left: 20px; margin-right: -8px; }
  .bay-source-list { grid-template-columns: 1fr; gap: 27px; margin: 40px 0 38px; }
  .bay-source-list h2 { font-size: 30px; }
  .bay-footer { padding: 33px 22px; }
  .bay-footer-first { display: block; }
  .bay-footer nav { margin-top: 28px; gap: 24px; font-size: 22px; }
  .bay-copyright { margin-top: 28px; }
  .bay-lost { padding: 25px 0 35px 22px; margin: 45px 0 55px; border-radius: 0 0 0 42px; }
  .bay-lost h1 { font-size: 51px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
