@font-face {
  font-family: 'Instrument Serif'; /* ds-allow-hardcode: declarations must name the font family */
  src: url('/fonts/instrument-serif-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #142342;
  --muted: #4c5972;
  --paper: #f6f5f0;
  --white: #fffdf9;
  --blue: #23498e;
  --navy: #10203c;
  --navy-dark: #0a1429;
  --focus: #a92240;
  --accent: #a92240;
  --accent-hover: #861a33;
  --accent-light: #ffd1d8;
  --line: #dedfdc;
  --line-strong: #adb8c9;
  --control-border: #626f85;
  --mist: #edf1f8;
  --body-text: #39475f;
  --inverse-muted: #e2e8f4;
  --layout-wide: 80rem;
  --layout-guide: 70rem;
  --measure: 50rem;
  --rule-emphasis: .1875rem;
  --focus-offset: .25rem;
  --radius-pill: 100rem;
  --card-shadow: 0 .875rem 2.25rem #10203c14;
  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: var(--rule-emphasis) solid var(--focus); outline-offset: var(--focus-offset); }
::selection { color: var(--white); background: var(--blue); }
.skip-link { position: absolute; z-index: 20; top: -4rem; left: 1rem; padding: .8rem 1rem; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 1rem; }

.site-header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; width: min(100% - 4rem, var(--layout-wide)); min-height: 5.25rem; margin: auto; padding: .8rem 0; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-size: 1rem; font-weight: 720; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand em { color: var(--muted); font-style: normal; font-weight: 450; }
.brand-mark { display: grid; width: 2.4rem; height: 2.4rem; flex-shrink: 0; place-items: center; border-radius: .65rem; background: var(--navy); color: var(--white); font-family: var(--display); font-size: 1.8rem; font-weight: 400; }
.site-header nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .2rem; color: var(--body-text); font-size: .89rem; font-weight: 580; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .55rem .8rem; border-radius: .4rem; text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible, .site-header nav a[aria-current='page'] { background: var(--mist); color: var(--navy-dark); }
.menu-toggle { display: none; }
main { min-height: 65vh; }

.eyebrow { margin: 0; color: var(--blue); font-size: .69rem; font-weight: 760; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
.hero { position: relative; isolation: isolate; background: var(--navy); color: var(--white); }
.landing-hero { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1fr); align-items: stretch; width: min(100% - 4rem, var(--layout-wide)); margin: auto; }
.hero-inner { align-self: center; min-width: 0; padding: clamp(2.6rem, 5.4vw, 5.75rem) clamp(1.5rem, 4vw, 4.5rem); }
.hero .eyebrow { color: var(--accent-light); }
.hero h1 { max-width: 16ch; margin: .8rem 0 1.15rem; font-family: var(--display); font-size: clamp(3.65rem, 6.4vw, 6.6rem); font-weight: 400; letter-spacing: -.032em; line-height: .97; text-wrap: balance; }
.hero-lede { max-width: 35rem; margin: 0; color: var(--inverse-muted); font-size: clamp(1rem, 1.35vw, 1.13rem); line-height: 1.68; }
.hero-art { min-height: 30rem; background: var(--blue) url('/images/toronto-waterfront.webp') center / cover no-repeat; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem 1.4rem; margin-top: 1.65rem; }
.button { display: inline-flex; min-height: 3.1rem; align-items: center; justify-content: center; gap: .8rem; padding: .8rem 1.15rem; border: 1px solid transparent; border-radius: var(--radius-pill); font-size: .9rem; font-weight: 700; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-0.125rem); }
.button-light { background: var(--accent); color: var(--white); }
.button-light:hover { background: var(--accent-hover); color: var(--white); }
.text-link { font-size: .9rem; font-weight: 650; text-decoration: none; }
.text-link-light { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .4rem; color: var(--white); }
.text-link-light:hover { color: var(--accent-light); }
.hero a:focus-visible { outline-color: var(--accent-light); }

.landing-intro { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: .85rem 2.5rem; width: min(100% - 4rem, var(--layout-guide)); margin: clamp(2.4rem, 6vw, 5rem) auto 2rem; padding: clamp(1.5rem, 3.2vw, 2.75rem); border: 1px solid var(--line); border-top: var(--rule-emphasis) solid var(--accent); background: var(--white); }
.landing-intro > h2 { grid-row: span 3; margin: 0; font: 400 clamp(2.65rem, 4.7vw, 4.15rem)/.99 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.landing-intro p { grid-column: 2; margin: 0; color: var(--body-text); font-size: 1rem; line-height: 1.72; }
.landing-intro a { color: var(--blue); font-weight: 650; }
.landing-intro strong { color: var(--ink); }
.guide-index { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .85rem 2rem; width: min(100% - 4rem, var(--layout-guide)); margin: 0 auto 4rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.guide-index-label { color: var(--blue); font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.guide-index-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.guide-index-links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--white); color: var(--navy-dark); font-size: .85rem; text-decoration: none; }
.guide-index-links a:hover { border-color: var(--blue); background: var(--mist); }

.landing-copy { max-width: 100%; }
.landing-copy > h2, .landing-copy > h3, .landing-copy > p, .landing-copy > ul, .landing-copy > ol { width: min(100% - 4rem, var(--measure)); margin-right: auto; margin-left: auto; }
.landing-copy > h2 { margin-top: 4.3rem; margin-bottom: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-family: var(--display); font-size: clamp(2.55rem, 4.4vw, 4rem); font-weight: 400; letter-spacing: -.015em; line-height: 1.02; text-wrap: balance; }
.landing-copy > h3 { margin-top: 2rem; margin-bottom: .65rem; font-size: 1.12rem; font-weight: 730; letter-spacing: -.015em; }
.landing-copy > p, .landing-copy > ul, .landing-copy > ol { margin-top: 0; margin-bottom: 1.3rem; color: var(--body-text); font-family: var(--serif); font-size: 1.1rem; line-height: 1.85; }
.landing-copy > ul, .landing-copy > ol { padding-left: 1.45rem; }
.landing-copy li { margin: .55rem 0; padding-left: .2rem; }
.landing-copy > p a { color: var(--blue); font-family: var(--sans); font-size: .97em; font-weight: 650; }
.landing-copy > p a:hover { color: var(--accent); }
.landing-copy > h2:first-of-type { margin-top: 1rem; }

.breadcrumbs { max-width: 73.75rem; margin: auto; padding: 1.25rem 2rem 0; color: var(--muted); font-size: .77rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { margin-right: .45rem; color: var(--line-strong); content: '/'; }
.breadcrumbs a { text-decoration: none; }
.archive-notice { max-width: 56.25rem; margin: 1.5rem auto; padding: 1rem 1.2rem; border-left: var(--rule-emphasis) solid var(--focus); background: var(--mist); color: var(--muted); font-size: .9rem; line-height: 1.6; }
.archive-notice strong { display: block; margin-bottom: .3rem; color: var(--ink); font-family: var(--sans); font-size: .92rem; }
.archive-notice p { margin: 0; }
.prose .archive-notice { font-family: var(--sans); font-size: .91rem; line-height: 1.65; }
.guide-shell { display: grid; grid-template-columns: minmax(0, 47.5rem) minmax(12.5rem, 15.625rem); justify-content: center; gap: clamp(2.5rem, 6vw, 6rem); max-width: 77.5rem; margin: auto; padding: 2rem 2rem 5rem; }
.guide-copy { min-width: 0; }
.content-update { width: min(100% - 2.4rem, 76rem); margin: 1.5rem auto; color: var(--muted); font-size: .85rem; }
.archive-details { padding: .8rem 1rem; border-inline-start: 0.125rem solid var(--line-strong); }
.archive-details div { margin-block: .4rem; }
.archive-details dt { font-weight: 650; }
.archive-details dd { margin-inline-start: 0; overflow-wrap: anywhere; }
.guide-kicker { margin-bottom: 1rem; }
.prose { color: var(--body-text); font-family: var(--serif); font-size: 1.12rem; line-height: 1.82; }
.prose h1 { max-width: 47.5rem; margin: 0 0 1.35rem; color: var(--ink); font-family: var(--display); font-size: clamp(3rem, 6vw, 5.7rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.02; }
.prose h2 { margin: 3rem 0 .85rem; color: var(--ink); font-family: var(--display); font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 400; letter-spacing: -.015em; line-height: 1.06; }
.prose h3 { margin: 2rem 0 .55rem; color: var(--ink); font-family: var(--sans); font-size: 1.08rem; font-weight: 730; letter-spacing: -.02em; }
.prose p { margin: 0 0 1.35rem; }
.prose ul, .prose ol { margin: .5rem 0 1.5rem; padding-left: 1.5rem; }
.prose li { margin: .45rem 0; padding-left: .15rem; }
.prose a { color: var(--blue); font-family: var(--sans); font-size: .96em; font-weight: 640; }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--ink); font-family: var(--sans); font-size: .93em; }
.article-aside { align-self: start; position: sticky; top: 1.5rem; margin-top: 4.5rem; padding: 1.3rem; border-top: 0.125rem solid var(--focus); background: var(--mist); color: var(--muted); font-size: .84rem; line-height: 1.65; }
.aside-icon { display: grid; width: 1.85rem; height: 1.85rem; place-items: center; margin-bottom: .95rem; border-radius: 50%; background: var(--mist); color: var(--blue); font-size: 1rem; }
.article-aside strong { display: block; margin-bottom: .4rem; color: var(--ink); font-size: .92rem; }
.article-aside p { margin: 0 0 .85rem; }
.article-aside a { color: var(--blue); font-weight: 700; }
.reviewed-date { padding-top: .8rem; border-top: 1px solid var(--line); font-size: .76rem; }

.sources-section { border-top: 1px solid var(--line); background: var(--mist); }
.sources-inner, .related-inner { width: min(100% - 4rem, var(--layout-guide)); margin: auto; padding: 3.5rem 0; }
.sources-inner h2, .related-inner h2 { margin: .55rem 0 1.3rem; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 400; letter-spacing: -.04em; }
.source-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.source-list a { display: flex; min-height: 3rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .85rem; border: 1px solid var(--line); background: var(--white); color: var(--navy-dark); font-size: .86rem; text-decoration: none; }
.source-list a:hover { border-color: var(--blue); }
.related-section { border-top: 1px solid var(--line); }
.related-inner { padding-top: 3rem; padding-bottom: 3.5rem; }
.related-links { display: flex; flex-wrap: wrap; gap: .65rem; }
.related-links a { display: inline-flex; min-height: 2.75rem; align-items: center; padding: .6rem .95rem; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--white); color: var(--blue); font-size: .84rem; font-weight: 650; text-decoration: none; }
.related-links a:hover { border-color: var(--blue); background: var(--mist); }

.section { width: min(100% - 4rem, var(--layout-wide)); margin: auto; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading h2 { margin: .4rem 0 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; letter-spacing: -.04em; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { display: flex; min-height: 13.75rem; flex-direction: column; justify-content: space-between; padding: 1.5rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-0.1875rem); border-color: var(--line-strong); box-shadow: var(--card-shadow); color: var(--ink); }
.card-number { color: var(--accent); font-size: .72rem; font-weight: 750; letter-spacing: .12em; }
.card h3 { margin: 2rem 0 .45rem; font-family: var(--serif); font-size: 1.75rem; font-weight: 400; letter-spacing: -.03em; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }

.site-footer { display: grid; grid-template-columns: 1.1fr 1.5fr .8fr; gap: 2.5rem; width: min(100% - 4rem, var(--layout-wide)); margin: 3.5rem auto 0; padding: 3rem clamp(1.2rem, 4vw, 3.5rem); background: var(--navy); color: var(--inverse-muted); font-size: .85rem; }
.footer-intro p { max-width: 15rem; line-height: 1.6; }
.brand-footer, .brand-footer:hover { color: var(--white); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: .65rem 1.2rem; }
.footer-links a, .footer-note > a { color: var(--inverse-muted); text-decoration: none; }
.footer-links a:hover, .footer-note > a:hover { text-decoration: underline; }
.footer-label { grid-column: 1 / -1; margin: 0 0 .2rem; color: var(--white); font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.footer-note > a { display: inline-flex; min-height: 1.75rem; align-items: center; margin-inline-end: .8rem; }
.footer-note p { line-height: 1.65; }
.site-footer a:focus-visible { outline-color: var(--accent-light); }

@media (max-width: 920px) {
  .guide-shell { grid-template-columns: minmax(0, 47.5rem); }
  .article-aside { position: static; grid-row: 1; margin-top: 1rem; }
  .site-footer { grid-template-columns: 1fr 1.4fr; }
  .footer-note { grid-column: 1 / -1; max-width: 28.125rem; }
}
@media (max-width: 760px) {
  .site-header { width: calc(100% - 2.4rem); min-height: 4.3rem; flex-wrap: wrap; gap: .6rem; }
  .site-header nav { flex: 1 0 100%; justify-content: flex-start; }
  .site-header[data-menu-open] .menu-toggle { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .5rem .75rem; border: 1px solid var(--control-border); border-radius: .4rem; background: var(--white); color: var(--ink); font: inherit; font-size: .85rem; font-weight: 680; cursor: pointer; }
  .menu-icon { position: relative; width: .9rem; height: .7rem; border-block: 1px solid currentColor; }
  .menu-icon::before { position: absolute; top: 50%; inset-inline: 0; border-top: 1px solid currentColor; content: ''; }
  .site-header[data-menu-open='false'] nav { display: none; }
  .site-header[data-menu-open='true'] nav { display: grid; gap: .2rem; padding: .5rem 0 .7rem; border-top: 1px solid var(--line); }
  .site-header nav a { min-height: 2.75rem; padding-inline: .7rem; }
  .landing-hero { width: calc(100% - 2.4rem); grid-template-columns: 1fr; }
  .hero-inner { padding: clamp(1.6rem, 6vw, 3.2rem); }
  .hero h1 { max-width: 17ch; font-size: clamp(3rem, 10.1vw, 4.9rem); }
  .hero-art { min-height: 0; aspect-ratio: 1.8; }
  .landing-intro { width: calc(100% - 2.4rem); grid-template-columns: 1fr; gap: .9rem; }
  .landing-intro > h2 { grid-row: auto; }
  .landing-intro p { grid-column: 1; }
  .guide-index { grid-template-columns: 1fr; width: calc(100% - 2.4rem); margin-bottom: 2.5rem; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: .75rem; }
  .hero-actions { gap: .45rem .95rem; }
  .button { min-height: 3rem; }
  .guide-index-links { gap: .45rem; }
  .guide-index-links a { font-size: .78rem; }
  .landing-copy > h2, .landing-copy > h3, .landing-copy > p, .landing-copy > ul, .landing-copy > ol { width: calc(100% - 2.4rem); }
  .landing-copy > h2 { margin-top: 3.1rem; font-size: 2.2rem; }
  .landing-copy > p, .landing-copy > ul, .landing-copy > ol { font-size: 1.04rem; line-height: 1.78; }
  .breadcrumbs { padding: 1rem 1.2rem 0; }
  .guide-shell { gap: 1.5rem; padding: 1.6rem 1.2rem 3.5rem; }
  .prose { font-size: 1.06rem; line-height: 1.78; }
  .prose h1 { font-size: clamp(2.7rem, 10.4vw, 4.2rem); }
  .prose h2 { margin-top: 2.4rem; font-size: 2rem; }
  .sources-inner, .related-inner { width: calc(100% - 2.4rem); padding: 2.6rem 0; }
  .source-list { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 10.3125rem; }
  .section { width: calc(100% - 2.4rem); padding: 3rem 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .site-footer { width: calc(100% - 2.4rem); grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1.2rem; }
  .footer-note { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.utility-page, .archive-directory {
  width: min(100% - 2rem, 52rem);
  margin: 3rem auto;
  overflow-wrap: anywhere;
}
.archive-directory details {
  margin-block: .75rem;
  padding: .8rem 1rem;
  border: 1px solid var(--control-border);
  border-radius: .6rem;
}
.archive-directory summary {
  cursor: pointer;
  min-height: 2rem;
  font-weight: 700;
}
.archive-directory li { padding-block: .2rem; }
.search-controls { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: .45rem 1.25rem; }
.search-controls input { flex: 1 1 14rem; min-width: 0; }
.search-controls input, .search-controls button {
  min-height: 2.75rem;
  padding: .55rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: .35rem;
  font: inherit;
}
.search-controls button { background: var(--navy); color: white; cursor: pointer; }
.utility-page :focus-visible, .archive-directory :focus-visible {
  outline: var(--rule-emphasis) solid var(--focus);
  outline-offset: 0.1875rem;
}
.guide-copy { overflow-wrap: anywhere; }
.guide-copy table { display: block; max-width: 100%; overflow-x: auto; }
@media print {
  .site-header, .site-footer, .skip-link, .article-aside, .related-section, .guide-print { display: none; }
  .guide-shell { display: block; width: auto; }
  main, .guide-copy { max-width: none; color: black; background: white; }
  .guide-copy h2, .guide-copy h3 { break-after: avoid; }
}
