/* ==========================================================================
   Shahaf S. Shperberg: personal site
   Hand-written stylesheet. No framework, no build step.
   Sections: tokens · reset · layout · header · hero · sections · cards
             publications · lists · cv · footer · utilities · responsive
   ========================================================================== */

/* --- tokens --------------------------------------------------------------- */

:root {
  color-scheme: light;

  --bg:            #ffffff;
  --bg-soft:       #f5f7f9;
  --surface:       #ffffff;
  --surface-2:     #fbfcfd;
  --border:        #e2e7ec;
  --border-strong: #cfd7de;

  --text:          #10151c;
  --text-muted:    #5a6672;
  --text-faint:    #6c7885;

  --accent:        #0e6f8c;
  --accent-hover:  #0a566e;
  --accent-tint:   #e7f3f7;
  --accent-ring:   rgba(14, 111, 140, 0.28);

  --gold:          #a1690b;
  --gold-tint:     #fdf4e3;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(16, 21, 28, 0.05);
  --shadow:    0 6px 20px -8px rgba(16, 21, 28, 0.16), 0 2px 6px -2px rgba(16, 21, 28, 0.06);

  --page-max: 1120px;
  --prose:    68ch;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg:            #0d1117;
    --bg-soft:       #11161e;
    --surface:       #151b24;
    --surface-2:     #1a212b;
    --border:        #262e3a;
    --border-strong: #38424f;

    --text:          #e8ecf1;
    --text-muted:    #a2adba;
    --text-faint:    #7c8896;

    --accent:        #56bcd8;
    --accent-hover:  #7fd0e6;
    --accent-tint:   rgba(86, 188, 216, 0.12);
    --accent-ring:   rgba(86, 188, 216, 0.35);

    --gold:          #e0b25f;
    --gold-tint:     rgba(224, 178, 95, 0.12);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow:    0 10px 28px -12px rgba(0, 0, 0, 0.7), 0 2px 8px -4px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:            #0d1117;
  --bg-soft:       #11161e;
  --surface:       #151b24;
  --surface-2:     #1a212b;
  --border:        #262e3a;
  --border-strong: #38424f;

  --text:          #e8ecf1;
  --text-muted:    #a2adba;
  --text-faint:    #7c8896;

  --accent:        #56bcd8;
  --accent-hover:  #7fd0e6;
  --accent-tint:   rgba(86, 188, 216, 0.12);
  --accent-ring:   rgba(86, 188, 216, 0.35);

  --gold:          #e0b25f;
  --gold-tint:     rgba(224, 178, 95, 0.12);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow:    0 10px 28px -12px rgba(0, 0, 0, 0.7), 0 2px 8px -4px rgba(0, 0, 0, 0.5);
}

/* --- reset ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.021em;
  font-weight: 650;
  color: var(--text);
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 38%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: color 0.15s var(--ease);
}
a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

strong { font-weight: 640; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

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

/* --- layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(3rem, 6vw, 4.75rem); }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section--tight { padding-block: clamp(2.25rem, 4vw, 3.25rem); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.9rem;
}
.section-head--spaced { margin-top: 3rem; }

.eyebrow {
  display: block;
  font-size: 0.735rem;
  font-weight: 620;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
}

.h-sm { font-size: 1.45rem; }

.section-head .link-more {
  font-size: 0.9rem;
  font-weight: 550;
  white-space: nowrap;
}

.lede {
  font-size: clamp(1.03rem, 1.35vw, 1.12rem);
  color: var(--text-muted);
  max-width: var(--prose);
}

.prose { max-width: var(--prose); }
.prose h3 { font-size: 1.14rem; margin: 2rem 0 0.6rem; }
.prose h3:first-child { margin-top: 0; }

/* --- skip link ------------------------------------------------------------ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* --- header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 640;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand__mark {
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border-strong);
}
.brand__sub {
  color: var(--text-faint);
  font-weight: 450;
  font-size: 0.85rem;
  padding-left: 0.55rem;
  margin-left: 0.1rem;
  border-left: 1px solid var(--border);
}

.site-nav { display: flex; align-items: center; gap: 0.15rem; }

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 520;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.site-nav a:hover { color: var(--text); background: var(--bg-soft); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-tint); }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-left: 0.35rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--border-strong); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }

/* The icon shows what a click will do: moon in a light theme, sun in a dark one. */
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }

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

:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: none; }

/* --- hero ----------------------------------------------------------------- */

.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.hero__photo {
  width: clamp(9rem, 15vw, 12.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border), 0 0 0 8px var(--accent-tint), var(--shadow);
}

.hero h1 {
  font-size: clamp(2.05rem, 5vw, 3.05rem);
  letter-spacing: -0.032em;
  margin-bottom: 0.7rem;
}

.hero__role {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}
.hero__role strong { color: var(--text); font-weight: 600; }

.hero__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding: 0;
  list-style: none;
}
.hero__topics li {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 530;
  padding: 0.24rem 0.66rem;
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.hero__bio { max-width: 60ch; color: var(--text-muted); }
.hero__bio strong { color: var(--text); }

/* --- buttons / links ------------------------------------------------------ */

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.89rem;
  font-weight: 545;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease),
              color 0.15s var(--ease), background 0.15s var(--ease);
}
.btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.btn svg { width: 1rem; height: 1rem; flex: none; }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
:root[data-theme="dark"] .btn--primary,
:root[data-theme="dark"] .btn--primary:hover { color: #08131a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--primary,
  :root:not([data-theme="light"]) .btn--primary:hover { color: #08131a; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 550;
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform 0.15s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* --- cards ---------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }

.card {
  position: relative;
  padding: 1.35rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              border-color 0.18s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.card h3 {
  font-size: 1.06rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.card p { font-size: 0.935rem; color: var(--text-muted); }
.card__icon {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-tint);
  color: var(--accent);
}
.card__icon svg { width: 1.05rem; height: 1.05rem; }
.card__meta {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* --- news ----------------------------------------------------------------- */

.news { list-style: none; margin: 0; padding: 0; }
.news li {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.72rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  margin: 0;
}
.news li:first-child { border-top: 0; padding-top: 0; }
.news time {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 0.16rem;
}
.news p { color: var(--text-muted); margin: 0; }

/* --- publications --------------------------------------------------------- */

.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}
.pub-filters button {
  font: inherit;
  font-size: 0.855rem;
  font-weight: 530;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.pub-filters button:hover { color: var(--text); border-color: var(--border-strong); }
.pub-filters button[aria-pressed="true"] {
  color: var(--accent);
  background: var(--accent-tint);
  border-color: var(--accent);
}

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

.pub {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0 1.25rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--border);
  margin: 0;
}
.pub:first-child { border-top: 0; }
.pub[hidden] { display: none; }
.pub--flat { grid-template-columns: minmax(0, 1fr); }

.pub__year {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-faint);
  padding-top: 0.2rem;
}

.pub__title {
  font-size: 1.005rem;
  font-weight: 570;
  line-height: 1.42;
  margin-bottom: 0.3rem;
  letter-spacing: -0.012em;
}
.pub__title a { color: var(--text); text-decoration: none; }
.pub__title a:hover { color: var(--accent); }

.pub__authors {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
.pub__authors strong { color: var(--text); font-weight: 620; }

.pub__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.16rem 0.55rem;
  border-radius: 6px;
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  background: var(--accent-tint);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  white-space: nowrap;
}
.badge--muted {
  background: var(--bg-soft);
  color: var(--text-muted);
  border-color: var(--border);
  font-weight: 520;
}
.badge--award {
  background: var(--gold-tint);
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 30%, transparent);
}

.pub__links { display: inline-flex; gap: 0.6rem; }
.pub__links a { font-size: 0.82rem; font-weight: 540; text-decoration: none; }
.pub__links a:hover { text-decoration: underline; }

.pub-empty {
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- research blocks ------------------------------------------------------ */

.research-block {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 1.5rem clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
  padding-top: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
}
.research-block > .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.research-block > h2 {
  grid-column: 1 / -1;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-bottom: 0.35rem;
}

.keypapers {
  padding: 1.15rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.keypapers h3 {
  font-size: 0.76rem;
  font-weight: 640;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.8rem;
}
.keypapers .tight-list li { font-size: 0.895rem; line-height: 1.5; }
.keypapers a { font-weight: 540; text-decoration: none; }
.keypapers a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .research-block { grid-template-columns: 1fr; }
}

/* --- people --------------------------------------------------------------- */

.people { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }

.person {
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.person:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.person__name {
  font-size: 0.985rem;
  font-weight: 600;
  margin-bottom: 0.28rem;
}
.person__topic { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.person__meta { font-size: 0.79rem; color: var(--text-faint); }

.alumni-list { list-style: none; margin: 0; padding: 0; }
.alumni-list li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0 1.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  margin: 0;
  font-size: 0.95rem;
}
.alumni-list li:first-child { border-top: 0; }
.alumni-list .alumni__year {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-faint);
}
.alumni-list .alumni__name { font-weight: 570; }
.alumni-list .alumni__topic { color: var(--text-muted); font-size: 0.9rem; }
.alumni__degree { margin-left: 0.4rem; }

/* --- courses -------------------------------------------------------------- */

.course {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.course h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.course__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}
.course p { font-size: 0.935rem; color: var(--text-muted); }

/* --- cv ------------------------------------------------------------------- */

.cv-section + .cv-section { margin-top: 2.75rem; }
.cv-section > h2 {
  font-size: 1.3rem;
  padding-bottom: 0.6rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}
.cv-section h3 {
  font-size: 0.95rem;
  font-weight: 620;
  margin: 1.6rem 0 0.7rem;
  color: var(--text-muted);
}
.cv-section h3:first-of-type { margin-top: 0; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0 1.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
  margin: 0;
}
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline__when {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 0.14rem;
}
.timeline__what { font-weight: 570; font-size: 1rem; }
.timeline__where { color: var(--text-muted); font-size: 0.93rem; }
.timeline__detail { color: var(--text-faint); font-size: 0.88rem; margin-top: 0.22rem; }

.tight-list { list-style: none; margin: 0; padding: 0; }
.tight-list li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.945rem;
  color: var(--text-muted);
  margin-bottom: 0.42rem;
}
.tight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.chips li { margin: 0; }

/* --- footer --------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding-block: 2.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer strong { color: var(--text); font-weight: 600; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__note { font-size: 0.82rem; color: var(--text-faint); }

/* --- page header ---------------------------------------------------------- */

.page-head {
  padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}
.page-head .lede { font-size: 1.02rem; }
.page-head .actions { margin-top: 1.25rem; }

/* --- contact strip -------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.contact-item {
  font-size: 0.945rem;
}
.contact-item dt {
  font-size: 0.76rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
}
.contact-item dd { margin: 0; color: var(--text-muted); }
.contact-item dd a { text-decoration: none; }
.contact-item dd a:hover { text-decoration: underline; }

/* --- utilities ------------------------------------------------------------ */

.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;
}

.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.note { color: var(--text-muted); font-size: 0.945rem; }

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 1.5rem;
  }
  .hero__photo { order: -1; width: clamp(7.5rem, 30vw, 9.5rem); }
  .brand__sub { display: none; }
}

@media (max-width: 720px) {
  .site-header__inner { min-height: auto; padding-block: 0.6rem; flex-wrap: wrap; }
  .site-nav { width: 100%; overflow-x: auto; padding-bottom: 0.15rem; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .pub { grid-template-columns: 1fr; gap: 0.35rem; }
  .pub__year { padding-top: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 0.3rem; }
  .alumni-list li { grid-template-columns: 1fr; gap: 0.25rem; }
  .news li { grid-template-columns: 1fr; gap: 0.15rem; }
  .news time { padding-top: 0; }
}

@media print {
  .site-header, .site-footer, .pub-filters, .theme-toggle, .actions { display: none !important; }
  body { color: #000; background: #fff; font-size: 10.5pt; }
  a { color: #000; text-decoration: none; }
  .card, .person, .course { box-shadow: none; border-color: #ccc; }
  .section { padding-block: 0.75rem; }
}
