:root {
  color-scheme: light;
  --ink: #17191d;
  --paper: #fff;
  --line: #d5d6d8;
  --wash: #f5f5f4;
  --gutter: clamp(18px, 5vw, 70px);
  --body: Optima, 'Avenir Next', 'Trebuchet MS', sans-serif;
  --display: Baskerville, 'Baskerville Old Face', 'Palatino Linotype', Palatino, Georgia, serif;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; }
button, input { color: inherit; font: inherit; }
input::placeholder { color: var(--ink); opacity: 1; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
:where(h1, h2, h3, main):focus { outline: 0; }

.frame {
  max-width: 1190px;
  width: calc(100% - 2 * var(--gutter));
  margin-inline: auto;
}
.skip-link { position: fixed; z-index: 1; left: var(--gutter); top: 12px; transform: translateY(-150%); padding: 8px 13px; background: var(--ink); color: var(--paper); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.site-bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: clamp(5px, 1.6vw, 12px);
}
.brand, .header-contact { display: inline-flex; min-height: 44px; align-items: center; }
.brand { margin-inline-end: auto; }
.brand img { display: block; width: clamp(132px, 24vw, 178px); height: auto; }
.header-contact { text-decoration: none; text-align: right; }
.header-contact:hover { text-decoration: underline; text-underline-offset: .2em; }
.header-contact-mobile { min-width: 44px; justify-content: center; gap: 6px; }
.header-contact-mobile img { border-radius: 50%; object-fit: cover; }
.header-contact-mobile span { font-size: .85rem; white-space: nowrap; }
.header-contact-desktop { display: none; }
.portal-nav {
  position: relative;
  border-top: 1px solid var(--line);
}
.section-track {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.section-track::-webkit-scrollbar { display: none; }
.portal-nav[data-overflow-start]::before,
.portal-nav[data-overflow-end]::after {
  position: absolute;
  z-index: 1;
  inset-block: 0;
  width: 24px;
  pointer-events: none;
  content: "";
}
.portal-nav[data-overflow-start]::before {
  left: 0;
  background: linear-gradient(to right, var(--paper), transparent);
}
.portal-nav[data-overflow-end]::after {
  right: 0;
  background: linear-gradient(to left, var(--paper), transparent);
}
.section-links {
  display: flex;
  width: max-content;
  column-gap: clamp(13px, 3.4vw, 20px);
}
.section-links a {
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 45px;
  width: fit-content;
  border-bottom: 2px solid transparent;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
}
.section-links a:focus-visible { outline-offset: -3px; }
.section-links a:hover { text-decoration: underline; text-underline-offset: .3em; }
.section-links a[aria-current='page'] { border-color: var(--ink); font-weight: 700; text-decoration: none; }
.comparison-flag { display: inline-block; width: 16px; height: 8px; flex: none; }
.section-links .comparison-nav-item a { gap: 6px; line-height: 1.2; }
@media (max-width: 540px) {
  .section-links .comparison-nav-item a { max-width: 151px; white-space: normal; }
}

.reading-layout {
  display: grid;
  max-width: 1060px;
  margin-inline: auto;
  padding-top: clamp(19px, 2.5vw, 34px);
}
.reading-opening, .feature, .supplement, .reading-tail, .reading-rail { min-width: 0; }
.reading-opening { container-type: inline-size; }
.reading-rail { margin-block: 14px 19px; }

h1 {
  font: 400 clamp(2.55rem, 8.8vw, 5rem)/.98 var(--display);
  letter-spacing: -.046em;
  text-wrap: balance;
}
.topic-page > p, .contact p, .retake p { line-height: 1.54; max-width: 54ch; }
.welcome { margin-bottom: 8px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.result {
  display: grid;
  gap: clamp(11px, 2vw, 19px);
  padding-bottom: 4px;
}
.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .065em; line-height: 1.45; text-transform: uppercase; }
.result .eyebrow { font-size: .73rem; letter-spacing: .105em; }
.result h1 {
  max-width: 24ch;
  margin-block: 6px 7px;
  font: 400 clamp(1.95rem, 4.6vw, 3.05rem)/1.015 var(--display);
  letter-spacing: -.036em;
  text-wrap: pretty;
}
.result-reason, .next-step p { line-height: 1.46; max-width: 47ch; font-size: 1rem; }
.next-step { padding-left: 12px; border-left: 1px solid var(--line); }
.next-step h2 { margin-bottom: 4px; font-size: .79rem; letter-spacing: .075em; text-transform: uppercase; }
#result-topic { font-weight: 700; }

.delivery { margin-top: 10px; font-size: .9rem; line-height: 1.5; }
.delivery { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.feedback[data-error], .delivery[data-error] #delivery-status { font-weight: 700; color: var(--ink); }
.feature-heading {
  margin-top: clamp(18px, 2.9vw, 34px);
  padding-top: clamp(15px, 2.4vw, 24px);
  border-top: 1px solid var(--line);
}
.feature-heading .eyebrow { margin-bottom: 6px; letter-spacing: .105em; }
.feature-heading h2 {
  font: 400 clamp(2.85rem, 8vw, 5.4rem)/.96 var(--display);
  letter-spacing: -.048em;
}
.feature-dek { max-width: 42ch; margin-top: 8px; font-size: clamp(1.02rem, 1.85vw, 1.35rem); line-height: 1.35; }
.feature-byline { margin-top: 9px; font-size: .84rem; line-height: 1.35; font-weight: 700; }
.feature {
  width: 100%;
  max-width: 740px;
  container-type: inline-size;
  font-size: clamp(1.075rem, 1.48vw, 1.19rem);
  line-height: 1.67;
}
.feature-intro {
  margin-top: clamp(16px, 2.6vw, 29px);
  max-width: 61ch;
  font-size: clamp(1.1rem, 1.85vw, 1.29rem);
  line-height: 1.54;
}
.feature-intro p:first-child::first-letter {
  float: left;
  margin: .035em .07em 0 0;
  font: 400 3.35em/.82 var(--display);
}
.feature-cover { margin: clamp(12px, 2.6vw, 25px) 0 0; }
.feature-artwork { margin: clamp(16px, 4vw, 31px) 0 0; }
.feature-artwork + p { margin-top: .9em; }
.feature-cover img, .feature-artwork img { display: block; width: 100%; height: auto; }
.feature-cover figcaption, .feature-artwork figcaption { margin-top: 8px; font-size: .79rem; line-height: 1.35; }
.feature-intro p + p, .feature-chapter > p + p, .feature-detail-body p + p { margin-top: .9em; }
.feature-chapter { margin-top: clamp(35px, 6vw, 64px); padding-top: clamp(18px, 3vw, 30px); border-top: 1px solid var(--line); scroll-margin-top: 19px; }
.feature-chapter h2 {
  margin-bottom: 12px;
  font: 400 clamp(2.05rem, 4.7vw, 3.45rem)/1.025 var(--display);
  letter-spacing: -.034em;
  text-wrap: balance;
}
.feature-chapter > p, .feature-detail-body > p { max-width: 64ch; }
.feature-chapter h3 {
  margin: 1.2em 0 .35em;
  font-size: 1.055em;
  line-height: 1.35;
}
.feature-chapter .feature-intro-line { font-size: 1.08em; }
.feature-fact {
  display: grid;
  align-items: center;
  gap: 10px 26px;
  margin: clamp(21px, 4vw, 35px) 0;
  padding-block: clamp(14px, 3vw, 27px) 11px;
  border-block: 1px solid var(--line);
}
.feature-fact-value {
  color: var(--ink);
  font: 400 clamp(3.7rem, 11vw, 6.3rem)/.88 var(--display);
  letter-spacing: -.065em;
  white-space: nowrap;
}
.feature-fact-description {
  max-width: 36ch;
  font-size: clamp(1.045rem, 1.7vw, 1.29rem);
  line-height: 1.38;
  text-wrap: pretty;
}
.feature-fact a { font-size: .86rem; }
.feature-detail {
  margin-block: 1em;
  border-block: 1px solid var(--line);
}
.feature-detail + .feature-detail { margin-top: calc(-1em - 1px); }
.feature-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding-block: 10px;
  list-style: none;
  cursor: pointer;
  font: 400 clamp(1.22rem, 2.55vw, 1.66rem)/1.2 var(--display);
}
.feature-detail summary::-webkit-details-marker { display: none; }
.feature-detail summary:hover { text-decoration: underline; text-underline-offset: .18em; }
.feature-detail-icon {
  position: relative;
  flex: 0 0 20px;
  height: 20px;
}
.feature-detail-icon::before, .feature-detail-icon::after {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 12px;
  border-top: 1px solid currentColor;
  content: "";
}
.feature-detail-icon::after { transform: rotate(90deg); }
.feature-detail[open] .feature-detail-icon::after { display: none; }
.feature-detail-body { padding-block: 2px 16px; font-size: .96em; }
.feature-detail-body .feature-resources { margin-top: 3px; }
.feature-resources { display: flex; flex-wrap: wrap; column-gap: 18px; margin-top: 13px; }
.feature-resources a { min-height: 44px; font-size: .9rem; }
.topic-page .back-link { margin: -8px 0 4px; }
.topic-page h1 { margin-bottom: 12px; }
.topic-page > p { max-width: 58ch; font-size: clamp(1.02rem, 2vw, 1.2rem); }
.podcast-episode {
  display: grid;
  gap: clamp(16px, 2.5vw, 25px);
  margin-top: clamp(14px, 2vw, 22px);
  padding: clamp(18px, 3vw, 28px);
  background: var(--ink);
  color: var(--paper);
  color-scheme: dark;
  scroll-margin-top: 18px;
}
.podcast-heading { min-width: 0; }
.podcast-episode .eyebrow { margin-bottom: 6px; font-size: .72rem; letter-spacing: .095em; }
.podcast-episode h2 { font: 400 clamp(1.9rem, 5.5vw, 2.55rem)/.98 var(--display); letter-spacing: -.037em; }
.podcast-summary { max-width: 49ch; margin-top: 10px; font-size: .94rem; line-height: 1.5; }
.podcast-deck {
  min-width: 0;
  padding: 9px clamp(9px, 1.5vw, 14px);
  border: 1px solid var(--paper);
  border-radius: 8px;
}
.podcast-episode audio { display: block; width: 100%; min-height: 44px; }
.podcast-controls {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 2vw, 17px);
}
.podcast-toggle {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}
.podcast-toggle:hover { background: var(--ink); color: var(--paper); }
.podcast-toggle:focus-visible { outline-color: var(--paper); outline-offset: 3px; }
.podcast-playback-icon {
  display: block;
  width: 19px;
  height: 21px;
  margin-left: 4px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.podcast-toggle[data-playing] .podcast-playback-icon {
  width: 16px;
  height: 19px;
  margin-left: 0;
  border-inline: 5px solid currentColor;
  background: transparent;
  clip-path: none;
}
.podcast-timeline { position: relative; isolation: isolate; }
.podcast-timeline::before, .podcast-timeline::after {
  position: absolute;
  inset: 14px 6px;
  z-index: -1;
  background: repeating-linear-gradient(to right, var(--paper) 0 2px, transparent 2px 6px);
  content: "";
}
.podcast-timeline::before { inset-block: 19px; }
.podcast-timeline::after {
  clip-path: inset(0 calc(100% - var(--elapsed, 0%)) 0 0);
}
.podcast-seek {
  display: block;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}
.podcast-seek:disabled { cursor: default; }
.podcast-seek::-webkit-slider-runnable-track { height: 100%; }
.podcast-seek::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  margin-top: 15.5px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: currentColor;
}
.podcast-seek::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: currentColor;
}
.podcast-time {
  display: flex;
  justify-content: space-between;
  margin-top: -6px;
  padding-inline: 2px;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.podcast-error { margin-top: 7px; font-size: .84rem; line-height: 1.4; }
.topic-page .podcast-episode { max-width: 690px; margin-top: 17px; }
#topic-editorial { container-type: inline-size; }
.topic-group, .topic-resources { margin-top: clamp(25px, 4.8vw, 45px); }
.topic-group h2, .topic-resources > h2 {
  margin-bottom: 9px;
  font: 400 clamp(1.76rem, 4.8vw, 2.35rem)/1.08 var(--display);
  letter-spacing: -.026em;
  text-wrap: balance;
}
.topic-group > p { max-width: 62ch; line-height: 1.55; }
.topic-group > p + p { margin-top: 10px; }
.comparison-topic, .comparison-budgets { border-top: 1px solid var(--line); padding-top: clamp(14px, 3vw, 24px); }
.comparison-sides { display: grid; gap: 13px 25px; margin-top: 13px; }
.comparison-sides h3 {
  margin-bottom: 4px;
  font-size: .88rem;
  line-height: 1.3;
}
.comparison-sides p { max-width: 62ch; line-height: 1.53; }
.comparison-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 15px;
  margin-top: 12px;
  font-size: .83rem;
}
.comparison-sources a { display: inline-flex; align-items: center; min-height: 44px; }
.comparison-insight { margin: 16px 0 0; padding-top: 15px; border-top: 1px solid var(--line); }
.comparison-insight h3 { margin-bottom: 6px; font: 400 clamp(1.24rem, 3.6cqi, 1.63rem)/1.18 var(--display); }
.comparison-insight p { max-width: 66ch; line-height: 1.53; }
.comparison-insight p + p { margin-top: 8px; }
.comparison-insight .comparison-sources { margin-top: 5px; }
.comparison-graphic { margin: 15px 0 21px; }
.comparison-graphic figcaption {
  margin-bottom: 11px;
  font: 400 clamp(1.22rem, 3.6cqi, 1.65rem)/1.18 var(--display);
}
.comparison-graphic-note {
  margin-top: 10px;
  font-size: .8rem;
  line-height: 1.35;
}
.comparison-weather { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.comparison-weather th, .comparison-weather td { padding: 5px 7px; }
.comparison-weather th:first-child { padding-inline-start: 0; text-align: start; }
.comparison-weather thead th { font-size: .81rem; }
.comparison-weather tbody tr { border-top: 1px solid var(--line); }
.comparison-weather tbody th { font-weight: 400; }
.comparison-weather td { text-align: center; font-weight: 700; }
.comparison-sectors { display: grid; gap: 7px; }
.comparison-sectors li { display: grid; grid-template-columns: 1fr auto; gap: 3px 9px; font-size: .86rem; }
.comparison-sectors strong { font-variant-numeric: tabular-nums; }
.comparison-sector-track {
  display: block;
  grid-column: 1 / -1;
  height: 3px;
  background: var(--line);
}
.comparison-sector-track span { display: block; height: 100%; background: var(--ink); }
.comparison-sector-axis { display: flex; justify-content: space-between; font-size: .7rem; }
.comparison-steps { display: grid; gap: 7px 15px; margin: 0; padding: 0; list-style: none; }
.comparison-steps li { padding-top: 7px; border-top: 1px solid var(--line); line-height: 1.35; }
.comparison-steps li > span { display: block; margin-top: 2px; font-size: .82rem; }
.comparison-operation { margin-inline-end: .3em; }
.comparison-operation-label {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.comparison-income-table {
  width: 100%;
  margin-top: 17px;
  border-collapse: collapse;
  text-align: start;
}
.comparison-income-table thead th {
  padding: 5px 8px 9px 0;
  font-size: .81rem;
  text-align: start;
}
.comparison-row > * {
  padding: 12px 9px 13px 0;
  border-top: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}
.comparison-row > :last-child { padding-inline-end: 0; }
.comparison-row th { width: 39%; font-weight: 400; }
.comparison-row td { width: 20%; }
.comparison-row h3 {
  margin-bottom: 3px;
  font: 400 clamp(1.43rem, 3.1cqi, 1.67rem)/1.1 var(--display);
  letter-spacing: -.02em;
}
.comparison-row p { font-size: .86rem; line-height: 1.45; }
.comparison-gross { margin-top: 8px; font-variant-numeric: tabular-nums; }
.comparison-gross-cad { font-size: .92rem; font-weight: 700; }
.comparison-income { font-variant-numeric: tabular-nums; }
.comparison-income-label { display: none; }
.comparison-cad, .comparison-aed { display: block; }
.comparison-cad { font-size: clamp(1.11rem, 2.5cqi, 1.34rem); font-weight: 700; line-height: 1.3; }
.comparison-aed { font-size: .85rem; }
.comparison-advantage { display: grid; gap: 2px; margin-top: 4px; font-size: .75rem; line-height: 1.3; }
.comparison-tax-note { margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); }
.comparison-tax-note h3 { margin-bottom: 5px; }
.comparison-tax-note p { max-width: 66ch; font-size: .88rem; line-height: 1.48; }
.comparison-tax-note p + p { margin-top: 7px; }
.neighbourhood-directory-city { margin-top: 23px; }
.neighbourhood-directory-city h3 { font: 400 clamp(1.48rem, 3.9vw, 1.95rem)/1.1 var(--display); }
.neighbourhood-directory-list { display: grid; gap: 18px clamp(15px, 4vw, 35px); margin-top: 10px; }
.neighbourhood-directory-entry { border-top: 1px solid var(--line); padding-top: 12px; scroll-margin-top: 18px; }
.neighbourhood-directory-entry h4 { margin: 0 0 5px; font-size: 1.07rem; line-height: 1.3; }
.neighbourhood-directory-entry p { line-height: 1.5; }
.neighbourhood-directory-entry a { font-size: .88rem; }
.neighbourhood-photo { margin: 0 0 10px; }
.neighbourhood-photo img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; background: var(--wash); }
.neighbourhood-photo figcaption, .neighbourhood-photo figcaption a {
  font-size: .72rem;
  line-height: 1.4;
}
.neighbourhood-photo figcaption { margin-top: 3px; }
.neighbourhood-directory-entry:target { border-top-color: var(--ink); }
.exchange-note { margin-top: 17px; font-size: .92rem; line-height: 1.5; }
.feature-chapter > .exchange-note { font-size: .92rem; }
@container (min-width: 545px) {
  .comparison-sides, .neighbourhood-directory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-graphic-jobs .comparison-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .comparison-graphic-budget .comparison-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container (max-width: 590px) {
  .comparison-income-table, .comparison-income-table tbody { display: block; }
  .comparison-income-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .comparison-row { display: grid; gap: 8px; padding: 13px 0; border-top: 1px solid var(--line); }
  .comparison-row > * { padding: 0; border: 0; }
  .comparison-row th, .comparison-row td { width: auto; }
  .comparison-row td { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
  .comparison-income-label { display: block; font-size: .81rem; }
  .comparison-income-values { text-align: end; }
}
.reference-links {
  display: grid;
  gap: 0 min(5vw, 36px);
  margin-top: 14px;
}
.reference-card { border-top: 1px solid var(--line); padding: 13px 0 20px; min-width: 0; }
.reference-card h2 { font: 400 clamp(1.68rem, 4.2vw, 2.25rem)/1.05 var(--display); letter-spacing: -.026em; }
.reference-card h2 a { padding-block: 7px; text-decoration-thickness: 1px; }
.reference-card p { line-height: 1.5; margin-top: 3px; max-width: 42ch; }
.reference-card .reference-source { font-size: .875rem; margin-top: 8px; }

.retake {
  margin-top: clamp(28px, 6vw, 62px);
  border-top: 1px solid var(--line);
  padding-top: clamp(19px, 4vw, 32px);
  display: grid;
  align-items: center;
  gap: 14px;
}
.retake h2 { margin-bottom: 8px; font: 400 clamp(1.78rem, 5vw, 2.5rem)/1.04 var(--display); letter-spacing: -.03em; }
.previous { border-left: 2px solid var(--line); padding-left: 12px; }
.previous p:first-child { font-size: .86rem; }
.contact { padding-block: 4px 0; scroll-margin-top: 25px; }
.contact-profile {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}
.contact h2 { margin-bottom: 2px; font: 400 clamp(1.42rem, 2vw, 1.69rem)/1.09 var(--display); letter-spacing: -.021em; }
.contact p { font-size: .91rem; line-height: 1.37; }
.contact-actions { margin-top: 14px; }
.contact-action {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  border-top: 1px solid var(--line);
  font-size: .94rem;
  line-height: 1.35;
  text-decoration: none;
}
.contact-action:last-child { border-bottom: 1px solid var(--line); }
.contact-action-primary { font-weight: 700; }
.contact-action:hover { text-decoration: underline; text-underline-offset: .18em; }
.contact-action:focus-visible { outline-offset: 1px; }
.contact-portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  background: #e8e7e5;
}
.comparison-promo {
  margin-top: 23px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.comparison-promo h2 {
  font: 400 clamp(1.37rem, 2.7vw, 1.61rem)/1.1 var(--display);
  letter-spacing: -.02em;
}
.comparison-promo h2 .comparison-flag { margin-right: 2px; vertical-align: .14em; }
.comparison-promo p { margin-top: 8px; font-size: .91rem; line-height: 1.47; }
.comparison-promo a { gap: 6px; font-size: .92rem; }

.text-link, .text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  text-align: start;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  line-height: 1.35;
}
.text-link:hover, .text-button:hover { text-decoration-thickness: 2px; }
.text-button { padding: 0; border: 0; background: transparent; color: inherit; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 13px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  text-align: start;
  text-decoration: none;
  line-height: 1.25;
}
.button:focus-visible { outline-color: var(--ink); }
.button:hover:not(:disabled), .button:disabled { background: var(--paper); color: var(--ink); }
.button:disabled { border-style: dashed; }
.text-button:disabled { text-decoration-style: dashed; }
.footer { margin-top: clamp(36px, 7vw, 70px); padding-block: 14px 18px; border-top: 1px solid var(--line); font-size: .875rem; }

.state { max-width: 610px; padding-block: clamp(37px, 8vw, 92px); }
.state h1 { margin-bottom: 14px; }
.state > p, #access-feedback { max-width: 52ch; line-height: 1.5; }
.state-actions { display: flex; align-items: center; gap: 0 15px; margin-top: 14px; flex-wrap: wrap; }
#access-form { display: grid; gap: 9px; margin-top: 20px; max-width: 28rem; }
#access-form .button { justify-self: start; }
#access > .text-link { margin-top: 7px; }
:where(#access-form, #name-form) label { font-size: .95rem; font-weight: 700; }
:where(#access-form, #name-form) input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 8px 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
}
.name-panel {
  max-width: 470px;
  margin-inline: auto;
  padding-block: clamp(44px, 10vw, 110px) 40px;
}
.name-panel .eyebrow { margin-bottom: 11px; }
.name-panel h1 { font-size: clamp(2.75rem, 8.1vw, 4.25rem); line-height: .99; }
#name-purpose { line-height: 1.48; margin-top: 13px; }
#name-form { display: grid; gap: 8px; margin-top: 25px; }
#name-form .button { justify-self: start; margin-top: 5px; }
#name-error { font-size: .92rem; }

@media (max-width: 310px) {
  .header-contact-mobile span { display: none; }
}

@media (min-width: 620px) {
  .site-bar { min-height: 70px; }
  .reference-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .retake { grid-template-columns: 1.3fr 1fr; }
}

@media (min-width: 850px) {
  .header-contact-mobile { display: none; }
  .header-contact-desktop { display: inline-flex; }
  .section-track { overflow: visible; }
  .section-links { width: auto; flex-wrap: wrap; column-gap: clamp(11px, 1.7vw, 25px); }
  .section-links a { min-width: 0; }
  .reading-layout {
    grid-template-columns: minmax(0, 1fr) minmax(212px, 24%);
    grid-template-areas: "opening rail" "reading rail" "tail rail";
    column-gap: clamp(30px, 5vw, 82px);
  }
  .reading-opening { grid-area: opening; }
  .reading-rail { grid-area: rail; align-self: start; position: sticky; top: 26px; margin: 0; }
  .feature, .supplement { grid-area: reading; }
  .reading-tail { grid-area: tail; }
  .feature { margin-top: 0; }
}

@container (min-width: 560px) {
  .feature-fact { grid-template-columns: max-content minmax(0, 1fr); }
  .result { grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); align-items: start; gap: clamp(19px, 3vw, 39px); }
  .next-step { padding-left: 18px; }
  .reading-opening > .podcast-episode {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
    align-items: center;
  }
}

@media (forced-colors: active) {
  .section-track { scrollbar-width: auto; }
  .section-track::-webkit-scrollbar { display: block; }
  .contact-action, .next-step, .feature-fact, .feature-detail { border-color: CanvasText; }
  .podcast-episode, .podcast-deck { border: 1px solid CanvasText; }
}
