/* Fonts (SIL Open Font License), served from this site */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/spectral-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/spectral-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Spectral";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/spectral-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #ffffff;
  --mist: #f1f5f4;
  --ink: #1c2428;
  --ink-soft: #4a565c;
  --blue: #24418d;
  --blue-dark: #182d64;
  --teal: #12738a;
  --teal-bright: #1a8ca6;
  --rule: #c8d2d5;
  --grad: linear-gradient(90deg, #24418d 0%, #1a8ca6 55%, #6fb43f 100%);
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --measure: 66ch;
  --wrap: min(1120px, 100% - 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: 0.6rem 1rem; background: var(--blue); color: #fff; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { margin: 0 0 0.6em; font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--blue); }
h1 { font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.1rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 2rem; font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.8rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.35rem; }
.lede { max-width: 36ch; font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); line-height: 1.5; }
.updated { color: var(--ink-soft); font-size: 0.95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; font-family: var(--serif); line-height: 1.05; }
.brand-line1 { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.brand-line2 { font-size: 1.35rem; font-weight: 600; color: var(--blue); }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-block; padding: 0.45rem 0; color: var(--ink); font-weight: 500; text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.grad-rule { height: 3px; background: var(--grad); }
@media (max-width: 760px) {
  .site-header { position: static; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0.35rem; padding-block: 0.75rem 0.5rem; }
  .nav { gap: 0 1.2rem; }
}

/* Hero */
.hero { padding-block: clamp(2.75rem, 6vw, 5.5rem); background-color: #fff; background-image: linear-gradient(rgba(36, 65, 141, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 65, 141, 0.05) 1px, transparent 1px); background-size: 32px 32px; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.3fr 0.7fr; gap: 4rem; } }
.hero-note { color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.7rem 1.3rem; border: 2px solid var(--blue); border-radius: 4px; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; }
.btn:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.btn-quiet { background: #fff; color: var(--blue); }
.btn-quiet:hover { background: var(--mist); color: var(--blue-dark); }
.portrait { justify-self: center; width: 100%; max-width: 340px; margin: 0; }
.portrait img { width: 100%; padding: 8px; border: 1px solid var(--rule); background: #fff; }
.portrait figcaption { margin-top: 0.6rem; font-family: var(--serif); font-size: 1.1rem; color: var(--ink-soft); }

/* Sections */
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-mist { background: var(--mist); }
.section-tight { padding-top: 1.5rem; }
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: start; } }

/* Title block */
.title-block { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1.5px solid var(--ink); background: #fff; }
.title-block > div { padding: 0.8rem 1rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.title-block > div:nth-child(2n) { border-right: 0; }
.title-block > .wide { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.title-block dt { font-size: 0.85rem; font-weight: 600; color: var(--teal); }
.title-block dd { margin: 0.15rem 0 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; }

/* Roll of honour */
.dimension { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9rem; margin: 0.5rem 0 2.25rem; }
.dim-end { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--blue); font-variant-numeric: lining-nums tabular-nums; }
.dim-line { position: relative; border-top: 1.5px solid var(--ink); }
.dim-line::before, .dim-line::after { content: ""; position: absolute; top: -5.75px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.dim-line::before { left: 0; border-right: 13px solid var(--ink); }
.dim-line::after { right: 0; border-left: 13px solid var(--ink); }
.dim-label { position: absolute; left: 50%; top: -0.75px; transform: translate(-50%, -50%); padding: 0 0.75rem; background: #fff; font-weight: 600; white-space: nowrap; }
.roll { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: 2rem; margin: 0; padding: 0; list-style: none; }
.roll li { display: flex; align-items: baseline; gap: 1rem; padding: 0.95rem 0; border-top: 1px solid var(--rule); }
.roll-year { min-width: 3.1rem; color: var(--teal); font-weight: 600; font-variant-numeric: tabular-nums; }
.roll-name { font-family: var(--serif); font-size: 1.25rem; }
.more-link { margin-top: 1.75rem; font-weight: 600; }

/* Quotes */
.quotes { display: grid; gap: 2rem; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.quote { margin: 0; padding-top: 1.25rem; border-top: 1.5px solid var(--ink); }
.quote blockquote { margin: 0; }
.quote p { margin: 0; font-family: var(--serif); font-size: 1.2rem; font-style: italic; line-height: 1.55; }
.quote figcaption { margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.95rem; font-weight: 600; }

/* Dan */
.dan-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .dan-grid { grid-template-columns: 0.55fr 1.45fr; gap: 4rem; } }
.dan-words { max-width: var(--measure); }
.dan-words p { font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem); line-height: 1.6; }
.placeholder { color: var(--ink-soft); font-style: italic; }

/* Contact */
.contact-line { font-size: 1.2rem; }
.contact-line a { font-weight: 600; white-space: nowrap; }

/* Sub-page header */
.page-head { padding-block: clamp(2.5rem, 5vw, 4rem) 1rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; color: var(--ink-soft); font-size: 0.95rem; }
.breadcrumb li + li::before { content: "\203A"; margin-right: 0.5rem; }

/* Recipients table */
.roll-table { width: 100%; border-collapse: collapse; border: 1.5px solid var(--ink); background: #fff; }
.roll-table th, .roll-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--rule); text-align: left; }
.roll-table thead th { border-bottom: 1.5px solid var(--ink); color: var(--teal); font-size: 0.9rem; }
.roll-table tbody tr:last-child td { border-bottom: 0; }
.roll-table .year { width: 6rem; color: var(--teal); font-weight: 600; font-variant-numeric: tabular-nums; }
.roll-table .name { font-family: var(--serif); font-size: 1.2rem; }

/* Footer */
.site-footer { padding-block: 3rem; background: var(--blue-dark); color: #e3e9f3; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 700px) { .footer-inner { grid-template-columns: auto 1fr; gap: 2.5rem; } }
.footer-logo { width: 140px; height: 140px; padding: 6px; border-radius: 6px; background: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.footer-small { margin: 0; color: #c2cde0; font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a[href^="tel:"] { white-space: nowrap; }
