/* ==========================================================================
   jitbose.ca — design system
   One stylesheet for every page. Tokens first, then layout, then components.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Type */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Scale */
  --step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1:  clamp(1.20rem, 1.13rem + 0.34vw, 1.42rem);
  --step-2:  clamp(1.48rem, 1.34rem + 0.68vw, 1.92rem);
  --step-3:  clamp(1.85rem, 1.58rem + 1.32vw, 2.70rem);
  --step-4:  clamp(2.30rem, 1.83rem + 2.32vw, 3.70rem);

  /* Rhythm */
  --gap-xs: 0.4rem;
  --gap-s:  0.75rem;
  --gap-m:  1.25rem;
  --gap-l:  2.25rem;
  --gap-xl: 4rem;
  --gap-2xl: 6rem;

  --measure: 34rem;      /* comfortable reading width */
  --shell:   72rem;      /* outer page width */
  --gutter:  clamp(1.25rem, 5vw, 3.5rem);

  --radius: 3px;
  --hair: 1px;

  /* Colour — light */
  --paper:      #fbfaf7;
  --paper-2:    #f3f1eb;
  --card:       #ffffff;
  --ink:        #1a1a19;
  --ink-2:      #47463f;
  --ink-3:      #78766c;
  --rule:       #dedbd1;
  --rule-soft:  #eceae3;
  --accent:     #9a1c26;
  --accent-ink: #7d151e;
  --accent-bg:  #f6e9e9;
  --focus:      #1f5fa8;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #14141a;
    --paper-2:    #1b1b22;
    --card:       #1d1d25;
    --ink:        #eceaea;
    --ink-2:      #b8b5b0;
    --ink-3:      #8c8983;
    --rule:       #32323c;
    --rule-soft:  #26262e;
    --accent:     #e08a90;
    --accent-ink: #f0a9ad;
    --accent-bg:  #2a1b1f;
    --focus:      #7fb2ee;
  }
}

:root[data-theme="dark"] {
  --paper:      #14141a;
  --paper-2:    #1b1b22;
  --card:       #1d1d25;
  --ink:        #eceaea;
  --ink-2:      #b8b5b0;
  --ink-3:      #8c8983;
  --rule:       #32323c;
  --rule-soft:  #26262e;
  --accent:     #e08a90;
  --accent-ink: #f0a9ad;
  --accent-bg:  #2a1b1f;
  --focus:      #7fb2ee;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 var(--gap-m); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

hr {
  border: 0;
  border-top: var(--hair) solid var(--rule);
  margin: var(--gap-l) 0;
}

/* --- Shell -------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* --- Masthead ----------------------------------------------------------- */
.masthead {
  border-bottom: var(--hair) solid var(--rule);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(10px);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-m);
  min-height: 4.25rem;
  flex-wrap: wrap;
  padding-block: 0.7rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--ink-3); font-weight: 400; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.4vw, 1.9rem);
  flex-wrap: wrap;
}

.nav a {
  font-size: var(--step--1);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.theme-toggle {
  font: inherit;
  font-size: var(--step--1);
  background: none;
  border: var(--hair) solid var(--rule);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  cursor: pointer;
  line-height: 1.4;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }

/* Narrow screens: stop the nav wrapping into a tall block. It becomes one
   scrollable row, and neither bar stays pinned (too much of a short screen). */
@media (max-width: 48rem) {
  .masthead { position: static; }
  .masthead__inner {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.55rem;
    min-height: 0;
  }
  .nav {
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    gap: 1.1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .theme-toggle { margin-left: auto; flex: none; }
}

/* --- Page header -------------------------------------------------------- */
.page-head {
  padding-block: clamp(2.5rem, 7vw, 5rem) var(--gap-l);
  border-bottom: var(--hair) solid var(--rule-soft);
}

.eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--gap-s);
  font-weight: 600;
}

.page-head h1 { font-size: var(--step-3); }

.page-head .lede {
  margin-top: var(--gap-m);
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 40rem;
  line-height: 1.5;
}

/* --- Hero (home) -------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem); }

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 62rem) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: var(--step-4);
  margin-bottom: var(--gap-m);
}

.hero__roles {
  list-style: none;
  margin: 0 0 var(--gap-l);
  padding: 0;
  display: grid;
  gap: var(--gap-s);
  max-width: 34rem;
}

.hero__roles li {
  display: grid;
  gap: 0.1rem;
  border-left: 2px solid var(--accent);
  padding-left: var(--gap-s);
}

.hero__roles strong {
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.hero__roles span {
  font-size: var(--step--1);
  color: var(--ink-3);
  line-height: 1.45;
}

.hero__roles a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.hero__roles a:hover { color: var(--accent-ink); border-bottom-color: currentColor; }

.hero__intro { color: var(--ink-2); }

/* Portrait */
.portrait {
  margin: 0 0 var(--gap-m);
  border: var(--hair) solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  line-height: 0;
}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Contact card */
.card {
  background: var(--card);
  border: var(--hair) solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.card h2 {
  font-size: var(--step--1);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--gap-m);
}

.contact { display: grid; gap: var(--gap-m); }

.contact__row { display: grid; gap: 0.15rem; }

.contact__label {
  font-size: var(--step--1);
  color: var(--ink-3);
  letter-spacing: 0.03em;
}

.contact__value { color: var(--ink); line-height: 1.45; }
.contact__value a { color: var(--accent-ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
.contact__value a:hover { text-decoration-color: currentColor; }

/* --- Link list (home sections) ------------------------------------------ */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section + .section { border-top: var(--hair) solid var(--rule-soft); }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap-m);
  flex-wrap: wrap;
  margin-bottom: var(--gap-l);
}

.section__head h2 { font-size: var(--step-2); }

.section__note {
  font-size: var(--step--1);
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.linklist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--hair) solid var(--rule);
}

.linklist li { border-bottom: var(--hair) solid var(--rule); }

.linklist a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--gap-m);
  padding: clamp(1rem, 2.2vw, 1.4rem) 0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.linklist a:hover { color: var(--accent-ink); }

.linklist__title {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.linklist__desc {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
  margin-top: 0.2rem;
  max-width: 44rem;
}

.linklist__arrow {
  color: var(--ink-3);
  font-size: var(--step-0);
  transition: transform 0.15s ease, color 0.15s ease;
}
.linklist a:hover .linklist__arrow { transform: translateX(3px); color: var(--accent); }

@media (max-width: 34rem) {
  .linklist a { grid-template-columns: 1fr; }
  .linklist__arrow { display: none; }
}

/* --- Stat strip --------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--gap-m);
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats > div {
  border-left: 2px solid var(--accent);
  padding-left: var(--gap-m);
}

.stats dt {
  font-size: var(--step--1);
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats dd {
  margin: 0.1rem 0 0;
  font-family: var(--font-serif);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* --- Research themes ---------------------------------------------------- */
.themes { display: grid; gap: var(--gap-m); list-style: none; margin: 0; padding: 0; }

.theme {
  background: var(--card);
  border: var(--hair) solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.9rem) clamp(1.1rem, 3vw, 1.75rem);
  display: grid;
  gap: var(--gap-s);
}

.theme__name {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.theme__desc { color: var(--ink-2); margin: 0; max-width: 46rem; }

.theme__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
  margin-top: 0.2rem;
}

.theme__tags span {
  font-size: var(--step--1);
  color: var(--ink-3);
  border: var(--hair) solid var(--rule);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  line-height: 1.5;
}

/* --- Topic grid (research) ---------------------------------------------- */
.topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: var(--gap-m);
  list-style: none;
  margin: 0;
  padding: 0;
}

.topic {
  background: var(--card);
  border: var(--hair) solid var(--rule);
  border-radius: var(--radius);
  padding: var(--gap-m);
  display: grid;
  gap: 0.3rem;
  align-content: start;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.topic:hover { border-color: var(--ink-3); transform: translateY(-2px); }

.topic__name {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.topic__theme {
  font-size: var(--step--1);
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* --- Course list -------------------------------------------------------- */
.courses { display: grid; gap: var(--gap-m); }

.course {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2rem);
  align-items: start;
  background: var(--card);
  border: var(--hair) solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.9rem) clamp(1.1rem, 3vw, 1.75rem);
}

/* A course with no calendar code yet — the title carries the card instead. */
.course--nocode { grid-template-columns: minmax(0, 1fr); }

.course__codes { display: grid; gap: 0.1rem; }

.course__code {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.course__alt {
  font-family: var(--font-mono);
  font-size: var(--step-0);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  white-space: nowrap;
}

.course__body { display: grid; gap: var(--gap-s); min-width: 0; }

.course__name {
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.course__desc { color: var(--ink-2); margin: 0; max-width: 44rem; }
.course__desc + .course__desc { margin-top: var(--gap-s); }

.course__meta code,
.course__desc code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--paper-2);
  border-radius: 2px;
  padding: 0.05em 0.3em;
}

.course__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--gap-s) var(--gap-m);
  margin: var(--gap-s) 0 0;
  padding-top: var(--gap-m);
  border-top: var(--hair) solid var(--rule-soft);
}

.course__meta dt {
  font-size: var(--step--1);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}

.course__meta dd {
  margin: 0.1rem 0 0;
  font-size: var(--step--1);
  color: var(--ink-2);
  line-height: 1.5;
}

.course__meta a,
.course__desc a { color: var(--accent-ink); text-underline-offset: 3px; }

.course__note {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-3);
  max-width: none;
}

@media (max-width: 34rem) {
  .course { grid-template-columns: 1fr; gap: var(--gap-s); }
  .course__codes { grid-auto-flow: column; justify-content: start; gap: var(--gap-s); align-items: baseline; }
}

/* --- Callout ------------------------------------------------------------ */
.callout {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--gap-m) var(--gap-m);
  font-size: var(--step--1);
  color: var(--ink-2);
}
.callout p { max-width: none; }
.callout a { color: var(--accent-ink); }

/* --- Publications ------------------------------------------------------- */
.pub-controls {
  display: grid;
  gap: var(--gap-m);
  position: sticky;
  top: 4.25rem;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  padding-block: var(--gap-m);
  padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  border-bottom: var(--hair) solid var(--rule);
  margin-bottom: var(--gap-l);
}

.pub-search {
  display: flex;
  gap: var(--gap-s);
  align-items: center;
  flex-wrap: wrap;
}

.pub-search input {
  flex: 1 1 18rem;
  min-width: 0;
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--card);
  border: var(--hair) solid var(--rule);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
}
.pub-search input::placeholder { color: var(--ink-3); }

.pub-count {
  font-size: var(--step--1);
  color: var(--ink-3);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.chips { display: flex; gap: var(--gap-xs); flex-wrap: wrap; }

.chip {
  font: inherit;
  font-size: var(--step--1);
  background: none;
  color: var(--ink-2);
  border: var(--hair) solid var(--rule);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  cursor: pointer;
  line-height: 1.5;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

@media (max-width: 48rem) {
  .pub-controls { position: static; }
}

.pub-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap-m);
  font-family: var(--font-serif);
  font-size: var(--step-3);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: var(--gap-2xl) 0 0;
  padding-bottom: var(--gap-s);
  border-bottom: 2px solid var(--accent);
}
.pub-section:first-child { margin-top: 0; }

.pub-section__count {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.pub-year {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-3);
  padding-top: var(--gap-l);
  padding-bottom: 0.3rem;
  border-bottom: var(--hair) solid var(--rule);
  margin-bottom: var(--gap-s);
}
.pub-year:first-child { padding-top: 0; }
.pub-section + .pub-year { padding-top: var(--gap-m); }

.pub-list { list-style: none; margin: 0; padding: 0; }

.pub {
  padding: var(--gap-m) 0;
  border-bottom: var(--hair) solid var(--rule-soft);
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0 var(--gap-s);
  align-items: baseline;
}

.pub__body { display: grid; gap: 0.28rem; min-width: 0; }

/* Numbers run oldest = 1 within each section, so they never shift when a
   new paper is added. Tabular figures keep the column straight. */
.pub__num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  text-align: right;
  padding-top: 0.18rem;
  user-select: none;
}

@media (max-width: 34rem) {
  .pub { grid-template-columns: 1fr; gap: 0.28rem; }
  .pub__num { text-align: left; padding-top: 0; }
}

.pub__title {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.28;
  max-width: 46rem;
}

.pub__authors {
  color: var(--ink-2);
  font-size: var(--step--1);
  max-width: 46rem;
}
.pub__authors .me { color: var(--ink); font-weight: 600; }

.pub__meta {
  font-size: var(--step--1);
  color: var(--ink-3);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.pub__venue { font-style: italic; color: var(--ink-2); }

.tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border: var(--hair) solid var(--rule);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  color: var(--ink-3);
}
.tag--journal { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.tag--review { color: var(--focus); border-color: color-mix(in srgb, var(--focus) 40%, transparent); }

.pub__links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pub__links a {
  font-size: var(--step--1);
  color: var(--accent-ink);
  text-underline-offset: 3px;
}

.empty {
  padding: var(--gap-xl) 0;
  text-align: center;
  color: var(--ink-3);
}

/* --- Footer ------------------------------------------------------------- */
.foot {
  margin-top: var(--gap-2xl);
  border-top: var(--hair) solid var(--rule);
  padding-block: var(--gap-l) var(--gap-xl);
  font-size: var(--step--1);
  color: var(--ink-3);
}

.foot__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--gap-l);
}

/* Carleton lockup: the official vector, in its light and dark variants.
   Both are in the markup and CSS shows one, so the manual theme toggle
   swaps them as well as the system setting. */
.foot__logo {
  display: inline-block;
  margin-bottom: var(--gap-m);
  line-height: 0;
}
.foot__logo img { width: 104px; height: auto; }
.foot__logo:hover { opacity: 0.85; }

.foot__logo--light { display: block; }
.foot__logo--dark  { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .foot__logo--light { display: none; }
  :root:not([data-theme="light"]) .foot__logo--dark  { display: block; }
}

:root[data-theme="dark"] .foot__logo--light { display: none; }
:root[data-theme="dark"] .foot__logo--dark  { display: block; }
:root[data-theme="light"] .foot__logo--light { display: block; }
:root[data-theme="light"] .foot__logo--dark  { display: none; }

.foot h3 {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: var(--gap-s);
}

.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

.foot__base {
  margin-top: var(--gap-l);
  padding-top: var(--gap-m);
  border-top: var(--hair) solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  gap: var(--gap-m);
  flex-wrap: wrap;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
