/* ==========================================================================
   Will Hedgecock · CV
   Tokens → base → layout → profile & navigation → sections → components
   → responsive → print
   ========================================================================== */

/* ---------- Tokens ---------- */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --text: #1c1b19;
  --text-2: #4c4842;
  --text-3: #6d6860;
  --border: #e6e2da;
  --border-strong: #d4cfc5;
  --accent: #8c1d18;
  --accent-strong: #6b130e;
  --accent-soft: #f6e8e5;
  --accent-on-soft: #7a1712;
  --good: #1d6b40;
  --good-soft: #e2f0e7;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --sidebar-w: 18.5rem;
  --year-col: 6.25rem;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121214;
    --surface: #1a1a1d;
    --surface-2: #232327;
    --text: #ecebe7;
    --text-2: #bdb9b1;
    --text-3: #938f88;
    --border: #2b2b30;
    --border-strong: #3b3b41;
    --accent: #f0958c;
    --accent-strong: #f7bab3;
    --accent-soft: rgba(240, 149, 140, 0.13);
    --accent-on-soft: #f5a9a1;
    --good: #86d4a6;
    --good-soft: rgba(134, 212, 166, 0.13);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #121214;
  --surface: #1a1a1d;
  --surface-2: #232327;
  --text: #ecebe7;
  --text-2: #bdb9b1;
  --text-3: #938f88;
  --border: #2b2b30;
  --border-strong: #3b3b41;
  --accent: #f0958c;
  --accent-strong: #f7bab3;
  --accent-soft: rgba(240, 149, 140, 0.13);
  --accent-on-soft: #f5a9a1;
  --good: #86d4a6;
  --good-soft: rgba(134, 212, 166, 0.13);
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: color 0.15s, text-decoration-color 0.15s, background-color 0.15s, border-color 0.15s;
}
a:hover { color: var(--accent-strong); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 0.55rem 0.95rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

.print-only { display: none; }
.muted { color: var(--text-3); font-weight: 400; }

/* ---------- Layout ---------- */

.page {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  column-gap: clamp(2.5rem, 5vw, 5rem);
  max-width: 77rem;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  padding: 3.5rem 0 4rem;
}

main {
  min-width: 0;
  max-width: 47rem;
  padding: 3.5rem 0 4rem;
}

/* ---------- Profile ---------- */

.avatar {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border);
}

.profile-text { margin-top: 1.5rem; }

.name {
  font-family: var(--font-serif);
  font-size: 2.125rem;
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.role {
  margin-top: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
}
.role span { display: block; }

.affiliation {
  margin-top: 0.3rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.contact {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.contact li,
.contact a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: var(--text-2);
}
.contact a { text-decoration: none; }
.contact a:hover { color: var(--accent); }
.contact span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact .icon { font-size: 1.05rem; color: var(--text-3); }
.contact a:hover .icon { color: currentColor; }

.actions { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 500 0.8125rem/1 var(--font-sans);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn .icon { font-size: 1rem; }
.btn-icon { width: 2.25rem; padding: 0; }

.icon-sun { display: none; }
[data-theme-toggle][aria-pressed="true"] .icon-sun { display: block; }
[data-theme-toggle][aria-pressed="true"] .icon-moon { display: none; }

/* ---------- Section navigation ---------- */

.toc { position: sticky; top: 2.5rem; }

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--border);
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 0.32rem 0 0.32rem 1rem;
  border-left: 2px solid transparent;
  color: var(--text-3);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.toc a:hover { color: var(--text); }
.toc a.is-active { border-left-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */

.section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { margin-bottom: 0; border-bottom: 0; }

.section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.count {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-3);
  font: 600 0.75rem/1 var(--font-sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.count:empty { display: none; }

.subsection-title {
  margin: 2.25rem 0 1rem;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.section-title + .subsection-title { margin-top: 0; }

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  text-wrap: pretty;
}
.lead + .subsection-title { margin-top: 2rem; }

.section-intro {
  margin: -0.75rem 0 1.75rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.section-intro + .subsection-title { margin-top: 0; }

.section-note {
  margin-top: 1.5rem;
  color: var(--text-3);
  font-size: 0.8125rem;
}

/* ---------- Tags ---------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
}
.tags-sm { gap: 0.375rem; }
.tags-sm li {
  padding: 0.28rem 0.6rem;
  border-color: transparent;
  border-radius: 0.4rem;
  background: var(--surface-2);
  font-size: 0.78rem;
}

/* ---------- Timeline (experience, education) ---------- */

.timeline { padding: 0; list-style: none; }

.entry {
  position: relative;
  padding: 0 0 2.25rem 1.75rem;
}
.entry:last-child { padding-bottom: 0; }

/* Rail connecting each node to the next */
.entry::before {
  content: "";
  position: absolute;
  top: 1.3rem;
  bottom: -0.2rem;
  left: calc(0.325rem - 0.5px);
  width: 1px;
  background: var(--border-strong);
}
.entry:last-child::before { display: none; }

/* Node */
.entry::after {
  content: "";
  position: absolute;
  top: 0.42rem;
  left: 0;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg);
}
.entry.is-current::after {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.1rem 1.25rem;
}

.entry-title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.006em;
}

.entry-subtitle {
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
}

.entry-date {
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.present { color: var(--accent); }

.entry-org {
  margin-top: 0.15rem;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
}
.entry-loc { color: var(--text-3); font-weight: 400; white-space: nowrap; }
.entry-units { margin-top: 0.1rem; color: var(--text-3); font-size: 0.875rem; }
.entry-loc::before { content: "·"; margin: 0 0.5rem; }

.entry-body {
  margin-top: 0.75rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.entry-body p { text-wrap: pretty; }

.bullets {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.6rem;
  padding-left: 1.1rem;
}
.bullets li { padding-left: 0.2rem; }
.bullets li::marker { color: var(--text-3); }

.facts {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.6rem;
  font-size: 0.9rem;
}
.facts > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
}
.facts dt { color: var(--text-3); font-weight: 500; }
.facts dd { color: var(--text-2); }

/* ---------- Year lists (awards, patents, service, ...) ---------- */

.ylist {
  display: grid;
  gap: 1.15rem;
  padding: 0;
  list-style: none;
}
.ylist > li {
  display: grid;
  grid-template-columns: var(--year-col) minmax(0, 1fr);
  align-items: baseline;
  gap: 1.25rem;
}

.y {
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.t { font-weight: 600; line-height: 1.45; text-wrap: pretty; }
.s {
  margin-top: 0.1rem;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.s:first-child { margin-top: 0; font-size: 0.9375rem; }
.s-sub {
  margin-top: 0.1rem;
  color: var(--text-3);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.s code {
  padding: 0.05rem 0.3rem;
  border-radius: 0.25rem;
  background: var(--surface-2);
  font-size: 0.85em;
}

.amount {
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ext {
  display: inline-flex;
  margin-left: 0.15rem;
  color: var(--text-3);
  vertical-align: -0.08em;
}
.ext:hover { color: var(--accent); }
.ext .icon { font-size: 0.85em; }

/* ---------- Publications & talks ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: -0.5rem 0 1.75rem;
}
.filters[hidden] { display: none; }

.chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2rem;
  padding: 0 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font: 500 0.8125rem/1 var(--font-sans);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.chip:hover { border-color: var(--text-3); color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }
.chip .n { opacity: 0.6; font-variant-numeric: tabular-nums; }

.groups { display: grid; gap: 1.9rem; }

.year-group {
  display: grid;
  grid-template-columns: var(--year-col) minmax(0, 1fr);
  align-items: baseline;
  gap: 1.25rem;
}

.year {
  color: var(--text-3);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.pubs {
  display: grid;
  gap: 1.4rem;
  padding: 0;
  list-style: none;
}

.pub-title { font-weight: 600; line-height: 1.45; text-wrap: pretty; }
.pub-authors,
.pub-venue {
  margin-top: 0.15rem;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.5;
}
.me { color: var(--text); font-weight: 600; }

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.badge,
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 1.5rem;
  padding: 0 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.badge {
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-award {
  background: var(--accent-soft);
  color: var(--accent-on-soft);
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
}
.badge-granted { background: var(--good-soft); color: var(--good); }
.badge-role { background: var(--accent-soft); color: var(--accent-on-soft); }

.link {
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
}
.link:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.link .icon { font-size: 0.95em; }

@media screen {
  .is-filtered { display: none !important; }
}

/* ---------- Skills ---------- */

.skills { display: grid; gap: 1rem; }
.skills > div {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  align-items: baseline;
  gap: 1.25rem;
}
.skills dt { font-size: 0.875rem; font-weight: 600; }

.lang {
  display: grid;
  gap: 0.35rem;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.lang strong { color: var(--text); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.8125rem;
}

/* ---------- Responsive ---------- */

@media screen and (min-width: 901px) {
  /* Keep the year visible while scrolling through a long group */
  .year { position: sticky; top: 1.5rem; }
}

@media screen and (max-width: 1100px) {
  :root { --sidebar-w: 16rem; }
  .page { padding: 0 2rem; }
}

@media screen and (max-width: 900px) {
  html { scroll-padding-top: 4.25rem; }

  .page { display: block; padding: 0 1.25rem; }

  /* Let the nav stick to the viewport instead of to the sidebar */
  .sidebar { display: contents; }
  .toc { top: 0; }

  .profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 1.25rem;
    padding: 2rem 0 1.5rem;
  }
  .avatar { width: 5.5rem; height: 5.5rem; }
  .profile-text { margin-top: 0; }
  .name { font-size: 1.75rem; }
  .role { margin-top: 0.4rem; font-size: 0.9375rem; }
  .affiliation { font-size: 0.875rem; }
  .contact, .actions { grid-column: 1 / -1; }
  .contact {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    column-gap: 1.25rem;
    margin-top: 1.4rem;
  }
  .actions { margin-top: 1.25rem; }

  .toc {
    z-index: 20;
    margin: 0 -1.25rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
  }
  .toc ul {
    position: relative;
    display: flex;
    gap: 0.2rem;
    padding: 0.55rem 1.25rem;
    border-left: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .toc ul::-webkit-scrollbar { display: none; }
  .toc a {
    margin: 0;
    padding: 0.4rem 0.75rem;
    border: 0;
    border-radius: 999px;
    white-space: nowrap;
  }
  .toc a.is-active { background: var(--accent-soft); color: var(--accent-on-soft); }

  main { max-width: none; padding: 2.25rem 0 3rem; }
  .section { margin-bottom: 2.5rem; padding-bottom: 2.5rem; }
  .section-title { margin-bottom: 1.4rem; font-size: 1.55rem; }
}

@media screen and (max-width: 560px) {
  .lead { font-size: 1.0625rem; }
  .entry-head { flex-direction: column; }
  .entry-loc { display: block; }
  .entry-loc::before { content: none; }
  .year-group,
  .ylist > li,
  .skills > div { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .ylist { gap: 1.25rem; }
  .facts > div { grid-template-columns: 5.75rem minmax(0, 1fr); gap: 0.75rem; }
}

/* ---------- Print ---------- */

@media print {
  :root,
  :root[data-theme] {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f2f0eb;
    --text: #141413;
    --text-2: #3d3a35;
    --text-3: #67625a;
    --border: #dedad2;
    --border-strong: #c9c4ba;
    --accent: #8c1d18;
    --accent-strong: #8c1d18;
    --accent-soft: #f6e8e5;
    --accent-on-soft: #7a1712;
    --good: #1d6b40;
    --good-soft: #e2f0e7;
    color-scheme: light;
  }

  @page {
    size: letter;
    margin: 0.55in 0.6in 0.6in;
    @bottom-right {
      content: "Page " counter(page) " of " counter(pages);
      color: #67625a;
      font: 7.5pt "Inter", sans-serif;
    }
  }

  html { font-size: 9pt; scroll-behavior: auto; }
  body {
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .toc, .actions, .filters, .skip-link, .ext { display: none !important; }
  .print-only { display: inline; }

  .page { display: block; max-width: none; padding: 0; }

  .sidebar {
    display: block;
    margin-bottom: 1.6rem;
    padding: 0 0 1.25rem;
    border-bottom: 1.5px solid var(--accent);
  }

  .profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1.4rem;
  }
  .avatar { width: 0.95in; height: 0.95in; box-shadow: none; }
  .profile-text { margin-top: 0; }
  .name { font-size: 23pt; }
  .role { margin-top: 0.35rem; }
  .role span { display: inline; }
  .role span + span::before { content: "· "; }
  .contact { gap: 0.25rem; margin-top: 0; font-size: 8.5pt; }

  main { display: flex; flex-direction: column; max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }

  .section { margin-bottom: 1.1rem; padding-bottom: 1.1rem; }
  .section-title { margin-bottom: 0.9rem; font-size: 14pt; break-after: avoid; }
  .subsection-title { margin: 1.1rem 0 0.55rem; break-after: avoid; }
  .lead { font-size: 10.5pt; }

  .entry { padding-bottom: 1rem; }
  .entry-body { margin-top: 0.5rem; }
  .bullets { gap: 0.2rem; margin-top: 0.4rem; }
  .ylist { gap: 0.75rem; }
  .entry.is-current::after { box-shadow: none; }
  .entry-head, .entry-org { break-inside: avoid; break-after: avoid; }
  .entry-body p, .bullets li { orphans: 2; widows: 2; }

  /* Chrome does not honor break-inside: avoid for items nested in grid
     layouts, so lists switch to flex/block for pagination. */
  .groups, .pubs { display: block; }
  .year-group + .year-group { margin-top: 0.9rem; }
  .pub + .pub { margin-top: 0.65rem; }
  .year-group { display: flex; align-items: baseline; gap: 1.25rem; }
  .year { flex: 0 0 var(--year-col); }
  .year-group > .pubs { flex: 1; min-width: 0; }
  .pub, .ylist > li, .facts, .skills > div { break-inside: avoid; page-break-inside: avoid; }
  .ylist > li { display: flex; gap: 1.25rem; }
  .ylist > li > .y { flex: 0 0 var(--year-col); }
  .ylist > li > div { flex: 1; min-width: 0; }
  .pub-meta { margin-top: 0.3rem; }

  .badge, .link { height: auto; padding: 0.12rem 0.4rem; }
  .link:not(.doi):not(.print-url) { display: none !important; }
  .doi, .print-url { display: inline-flex; padding: 0; border: 0; color: var(--text-3); font-weight: 400; }
  .doi .icon, .doi span, .print-url .icon, .print-url span { display: none; }
  .doi::after, .print-url::after { content: attr(href); }

  /* "Last updated" moves up under the letterhead so it never strands on a page of its own */
  .site-footer {
    order: -1;
    margin: -1.2rem 0 1.1rem;
    padding: 0;
    border: 0;
    font-size: 7.5pt;
    text-align: right;
  }
}
