/* riddell.bc.ca — site styles */
:root {
  --ink: #17212B;
  --paper: #F6F3EC;
  --card: #FFFDF8;
  --rule: #D9D2C3;
  --muted: #55606B;
  --accent: #8A2E24;
  --accent-dark: #6E231B;
  --navy: #1C2A38;
  --navy-rule: #3A4854;
  --on-dark: #D8D2C4;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: 80px;
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -0.02em; }
.h1--md { font-size: clamp(36px, 4.6vw, 66px); line-height: 1.06; }
h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; }
.h2--sm { font-size: clamp(26px, 2.6vw, 36px); }
h3 { font-size: 22px; line-height: 1.25; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.stack > * + * { margin-top: 22px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.accent { color: var(--accent); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.eyebrow--light { color: #E3B7A8; }
.lede { font-size: 20px; color: var(--muted); }
.link-strong { font-weight: 600; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 4px; border: 1px solid transparent; line-height: 1.2; text-align: center; }
.btn--lg { font-size: 17px; padding: 17px 28px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--outline { color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { background: var(--paper); color: var(--accent-dark); }
.btn--block { display: block; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Top bar & header */
.topbar { background: var(--navy); color: #E9E4D8; font-size: 13px; }
.topbar__in { display: flex; gap: 28px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__emerg { margin-left: auto; color: #C9C1B0; }
.topbar__emerg a { font-weight: 600; }

.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { flex: 1 1 auto; min-width: 0; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.brand:hover { color: var(--ink); }
.brand__name { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; }
.brand__role { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.brand__corp { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 12px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-bottom-color: var(--accent); }
.site-nav ul a[aria-current="page"] { font-weight: 600; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--rule); background: var(--card); border-radius: 4px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

/* Hero */
.hero { display: flex; gap: 80px; align-items: center; padding-top: 96px; padding-bottom: 80px; }
.hero__text { flex: 1; }
.hero__text > * + * { margin-top: 26px; }
.portrait { object-fit: cover; object-position: 50% 20%; border-radius: 4px; box-shadow: 0 24px 48px -24px rgba(23,33,43,0.45); flex-shrink: 0; }
.portrait--home { width: 240px; height: 290px; }
.portrait--about { width: 220px; height: 270px; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts .fact { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); border-left: 1px solid var(--rule); padding: 28px 32px; display: flex; flex-direction: column; gap: 6px; }
.facts .fact:last-child { border-right: 1px solid var(--rule); }
.fact__big { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.2; }
.fact__small { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Sections */
.section { padding-top: 112px; padding-bottom: 112px; }
.section--flush-top { padding-top: 0; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; align-items: center; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.section-head__aside { max-width: 420px; font-size: 17px; }

.quote-card { margin: 0; padding: 48px; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; }
.quote-card > * + * { margin-top: 20px; }
.quote-card__label { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.quote-card blockquote { margin: 0; font-family: var(--serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.3; font-style: italic; }
.quote-card figcaption { font-size: 16px; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.card p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.card--static p { font-size: 16px; }
.card__more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); }

.band { background: var(--navy); color: #F1ECE1; padding: 112px 0; }
.band h2 { color: #fff; }
.band p { color: var(--on-dark); }
.rule-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--navy-rule); color: #fff; }
.rule-list li { padding: 15px 0; border-top: 1px solid var(--navy-rule); font-size: 17px; line-height: 1.45; }
.rule-list--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.rule-list--two li { font-size: 16px; }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 960px; margin-left: auto; margin-right: auto; }
.pills span { padding: 10px 18px; border: 1px solid var(--rule); border-radius: 999px; font-size: 15px; background: var(--card); }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 112px; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 0; overflow: hidden; }
.wrap.contact { max-width: calc(var(--max) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.contact__info { padding: 64px; }
.contact dl { margin: 0; font-size: 18px; }
.contact dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 18px; }
.contact dd { margin: 0; }
.contact dd a { font-weight: 600; }
.contact__map { min-height: 460px; background: #E4DDCD; }
.contact__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

/* About */
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 36px; }
.four-col { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.ruled { border-top: 2px solid var(--ink); padding-top: 24px; }
.ruled > * + * { margin-top: 12px; }
.ruled--dark > * + * { margin-top: 18px; }
.timeline-wrap { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 96px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; padding: 24px 0; border-top: 1px solid var(--rule); }
.timeline__year { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--accent); line-height: 1.2; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 40px; background: var(--accent); color: #fff; border-radius: 6px; padding: 56px 64px; margin-bottom: 112px; }
.wrap.cta { max-width: calc(var(--max) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.cta__title { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.2; }
.cta__sub { color: #F6DDD6; font-size: 17px; margin-top: 8px; }
.cta .btn { flex-shrink: 0; }

/* Criminal law */
.crim-hero { padding-top: 96px; padding-bottom: 88px; border-bottom: 1px solid var(--rule); }
.crim-hero > * + * { margin-top: 28px; }
.crim-hero h1 { max-width: 1040px; }
.crim-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 96px; padding-top: 72px; padding-bottom: 112px; align-items: start; }
.toc { position: sticky; top: 140px; }
.toc__label { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; }
.toc ul { list-style: none; margin: 0 0 28px; padding: 0; }
.toc li a { display: block; color: var(--ink); text-decoration: none; font-size: 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.toc li a:hover { color: var(--accent); }
.crim-content { max-width: 820px; }
.pull { margin: 0 0 48px; padding: 40px 44px; background: var(--navy); border-radius: 6px; }
.pull blockquote { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.45; font-style: italic; color: #fff; }
.pull figcaption { margin-top: 18px; font-size: 15px; color: #C9C1B0; }
.area { padding: 48px 0; border-top: 1px solid var(--rule); scroll-margin-top: 140px; }
.area > * + * { margin-top: 20px; }
.area__num { display: block; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.14em; }
.area h2 { font-size: clamp(28px, 2.6vw, 36px); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 56px 0 40px; font-size: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; line-height: 1.7; }
.footer-grid > div > * + * { margin-top: 8px; }
.footer-name { font-family: var(--serif); font-size: 22px; color: #fff; font-weight: 600; }
.footer-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #A79F8E; }
.footer-base { margin-top: 36px; border-top: 1px solid #3A4550; padding-top: 20px; font-size: 13px; color: #A79F8E; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  :root { --gutter: 48px; }
  .hero, .split, .timeline-wrap, .crim-body { gap: 56px; }
  .timeline-wrap { grid-template-columns: 1fr; }
  .four-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav, .site-nav ul { gap: 24px; }
}

@media (max-width: 960px) {
  .topbar__addr { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__in { flex-wrap: wrap; }
  .brand { flex-basis: calc(100% - 68px); }
  .facts .fact:nth-child(2n) { border-right: 1px solid var(--rule); }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding-bottom: 8px; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .split, .two-col, .contact, .crim-body, .three-col { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .toc { position: static; }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  .topbar__mail { display: none; }
  .topbar__emerg { margin-left: 0; }
  .brand__name { font-size: 21px; }
  .brand__corp { font-size: 12px; }
  .hero { flex-direction: column-reverse; align-items: flex-start; padding-top: 40px; padding-bottom: 48px; gap: 32px; }
  .hero--about { flex-direction: column; }
  .lede { font-size: 18px; }
  .btn-row .btn { flex: 1 1 100%; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section--flush-top { padding-top: 0; }
  .band { padding: 64px 0; }
  .card-grid, .four-col, .footer-grid, .rule-list--two { grid-template-columns: 1fr; }
  .facts .fact { padding: 20px; }
  .fact__big { font-size: 24px; }
  .quote-card, .contact__info, .pull { padding: 28px 24px; }
  .cta { padding: 32px 24px; margin-bottom: 64px; }
  .contact { margin-bottom: 64px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .crim-hero { padding-top: 48px; padding-bottom: 48px; }
  .crim-body { padding-top: 40px; padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card { transition: none; }
}

@media print {
  .topbar, .nav-toggle, .site-nav, .contact__map, .toc .btn { display: none !important; }
  .site-header { position: static; }
  body { background: #fff; }
}
