/* ==========================================================================
   geyu.me — personal academic website of Ge Yu
   Design language inspired by the Stockholm School of Economics (hhs.se):
   PT Serif headings, PT Sans body, warm cream surfaces, sage-green panels,
   and the SSE dark green (#004932) as the single accent color.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Self-hosted webfonts (ParaType PT fonts, OFL-licensed)
   -------------------------------------------------------------------------- */
/* latin-ext */
@font-face {
  font-family: "PT Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/PTSans-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "PT Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/PTSans-400-italic-latin.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;
}
/* latin-ext */
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/PTSans-400-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/PTSans-400-normal-latin.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;
}
/* latin-ext */
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PTSans-700-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PTSans-700-normal-latin.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;
}
/* latin-ext */
@font-face {
  font-family: "PT Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/PTSerif-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "PT Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/PTSerif-400-italic-latin.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;
}
/* latin-ext */
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/PTSerif-400-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/PTSerif-400-normal-latin.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;
}
/* latin-ext */
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PTSerif-700-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/PTSerif-700-normal-latin.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;
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  --green: #004932;          /* SSE dark green — the single accent */
  --green-soft: #0b6a4b;     /* hover/active variant */
  --sage: #dae2cb;           /* sage panel background */
  --sage-deep: #c9d6b4;      /* sage border */
  --cream: #fcfbf5;          /* warm page background */
  --cream-deep: #f6f5e8;     /* deeper cream panel */
  --ink: #1a1a1a;            /* primary text */
  --ink-soft: #575757;       /* secondary text */
  --rule: #e6e3d8;           /* hairline dividers */
  --white: #ffffff;
  --serif: "PT Serif", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --sans: "PT Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 71rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

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

/* Everything is sized in rem, so raising the root font size on wide screens
   scales the whole composition proportionally and keeps the page from looking
   lost in the middle of large monitors. */
@media (min-width: 100em) {
  html {
    font-size: 17px; /* ≥1600px viewport → content column ~1207px */
  }
}

@media (min-width: 120em) {
  html {
    font-size: 18px; /* ≥1920px viewport → content column ~1278px */
  }
}

@media (min-width: 150em) {
  html {
    font-size: 20px; /* ≥2400px viewport → content column ~1420px */
  }
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 1rem;
}

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

a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--green-soft);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection {
  background: var(--sage);
  color: var(--ink);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--green);
  color: var(--white);
  padding: 0.6rem 1rem;
  font-family: var(--sans);
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--green);
}

.brand .brand-zh {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-left: 0.45rem;
  letter-spacing: 0.1em;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  line-height: 0;
}

.nav-toggle:hover {
  border-color: var(--green);
}

.nav-toggle .bars {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle .bars::before {
  top: -6px;
}

.nav-toggle .bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.site-nav a {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--green);
}

.site-nav a[aria-current="page"] {
  color: var(--green);
  border-bottom-color: var(--green);
}

@media (max-width: 53.75em) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px rgba(26, 26, 26, 0.07);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--rule);
  }

  .site-nav li:last-child a {
    border-bottom: none;
  }

  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--rule);
    font-weight: 700;
  }
}

/* --------------------------------------------------------------------------
   Hero (home page)
   -------------------------------------------------------------------------- */
.hero {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.hero-eyebrow,
.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.9rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin-bottom: 0.5rem;
}

.hero .hero-zh {
  display: inline-block;
  font-size: 0.5em;
  color: var(--ink-soft);
  letter-spacing: 0.22em;
  vertical-align: 0.35em;
  margin-left: 0.5rem;
}

.hero-affiliation {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
}

.hero-affiliation a {
  color: inherit;
}

.hero-affiliation a:hover {
  color: var(--green);
}

.hero-intro p {
  max-width: 58ch;
}

.hero-intro p:last-child {
  margin-bottom: 0;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.contact-card {
  background: var(--sage);
  border: 1px solid var(--sage-deep);
  border-top: none;
  padding: 1.4rem 1.5rem;
}

.contact-card h2 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.7rem;
}

.contact-card address {
  font-style: normal;
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.contact-card .contact-email a {
  color: var(--ink);
}

.contact-card .contact-email a:hover {
  color: var(--green);
}

/* Social icon row */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  transition: background 0.15s ease, color 0.15s ease;
}

.social-row a:hover {
  background: var(--green);
  color: var(--white);
}

.social-row svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

@media (max-width: 53.75em) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    max-width: 26rem;
  }
}

/* --------------------------------------------------------------------------
   Content sections
   -------------------------------------------------------------------------- */
.section {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-alt {
  background: var(--cream);
}

.section h2.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

/* Papers / works in progress */
.paper-list {
  display: grid;
  gap: 1.25rem;
}

.paper {
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--green);
  padding: clamp(1.25rem, 3vw, 1.9rem);
}

.section-alt .paper {
  background: var(--white);
}

.paper h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  margin-bottom: 0.35rem;
}

.paper .paper-subtitle {
  display: block;
  font-size: 0.82em;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.paper details {
  margin-top: 0.9rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.75rem;
}

/* Action row combining the abstract toggle and draft link */
.paper-foot {
  margin-top: 0.9rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
}

.paper-foot details {
  flex: 1 1 12rem;
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.paper-draft {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.paper-draft:hover {
  color: var(--green-soft);
}

.paper-draft svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: currentColor;
}

.paper summary {
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.paper summary::-webkit-details-marker {
  display: none;
}

.paper summary::before {
  content: "+";
  content: "+" / ""; /* alt-text syntax keeps the marker out of the accessible name */
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
}

.paper details[open] summary::before {
  content: "\2212"; /* minus sign */
  content: "\2212" / "";
}

.paper summary:hover {
  color: var(--green-soft);
}

.paper details p {
  margin: 0.85rem 0 0;
  text-wrap: pretty;
}

/* Education timeline */
.edu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.edu-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--rule);
}

.edu-item:last-child {
  border-bottom: 1px solid var(--rule);
}

.edu-logo {
  width: 3.4rem;
  height: 3.4rem;
  object-fit: contain;
  flex-shrink: 0;
}

.edu-item h3 {
  font-size: 1.1rem;
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.35;
}

.edu-item .edu-school {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
}

.edu-item .edu-school a {
  color: inherit;
}

.edu-item .edu-school a:hover {
  color: var(--green);
}

.edu-dates {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

@media (max-width: 36em) {
  .edu-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .edu-dates {
    grid-column: 2;
    margin-top: -0.4rem;
  }
}

/* --------------------------------------------------------------------------
   Inner pages (CV, teaching, pronounce, chinese)
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}

.page-hero .container {
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  margin-bottom: 0.6rem;
}

.page-hero .page-lede {
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
}

.page-body {
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
}

.page-body .container > *:last-child {
  margin-bottom: 0;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  margin: 2.25rem 0 1rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.6rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--green);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--green);
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--green-soft);
  border-color: var(--green-soft);
  color: var(--white);
}

.btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.btn-ghost {
  background: transparent;
  color: var(--green);
}

.btn-ghost:hover {
  background: var(--green);
  color: var(--white);
}

/* CV page */
.cv-actions {
  margin: 1.4rem 0 0;
}

.cv-section {
  margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
}

.cv-section:last-child {
  margin-bottom: 0;
}

.cv-section h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--green);
  margin-bottom: 1.4rem;
}

.cv-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 2rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--rule);
}

.cv-entry:last-child {
  border-bottom: none;
}

.cv-entry h3 {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}

.cv-entry .cv-place {
  color: var(--ink-soft);
}

.cv-entry .cv-place a {
  color: inherit;
}

.cv-entry .cv-place a:hover {
  color: var(--green);
}

.cv-meta {
  text-align: right;
  font-size: 0.95rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.cv-meta .cv-dates {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 36em) {
  .cv-entry {
    grid-template-columns: 1fr;
  }

  .cv-meta {
    text-align: left;
  }
}

/* Interest tags */
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

.tag-list li {
  background: var(--sage);
  border: 1px solid var(--sage-deep);
  border-radius: 999px;
  padding: 0.32rem 0.95rem;
  font-size: 0.95rem;
}

/* Teaching page */
.course-group {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.course-group:last-child {
  margin-bottom: 0;
}

.course-group h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  margin-bottom: 1.1rem;
}

.course {
  border-left: 3px solid var(--sage-deep);
  padding: 0.15rem 0 0.15rem 1.15rem;
  margin-bottom: 1.15rem;
}

.course:last-child {
  margin-bottom: 0;
}

.course h3 {
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.6rem;
  align-items: baseline;
}

.course .course-term {
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.course p {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
}

/* Pronounce page */
.pronounce-card {
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--green);
  padding: clamp(1.25rem, 3vw, 1.9rem);
  max-width: 46rem;
  margin-bottom: 1.5rem;
}

.pronounce-card p:last-child {
  margin-bottom: 0;
}

/* 404 */
.error-page {
  text-align: center;
  padding-block: clamp(4rem, 12vw, 8rem);
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--green);
}

.error-page p {
  color: var(--ink-soft);
  margin: 1rem 0 2rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--green);
  color: rgba(255, 255, 255, 0.92);
  margin-top: auto;
}

.site-footer .container {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
}

.site-footer h2 {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.site-footer .footer-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.8rem;
}

.site-footer address {
  font-style: normal;
  line-height: 1.6;
}

.site-footer a {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.site-footer :focus-visible {
  outline-color: var(--white);
}

.site-footer a:hover {
  color: var(--sage);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer .social-row a {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.site-footer .social-row a:hover {
  background: var(--white);
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 1.1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 53.75em) {
  .site-footer .container {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Layout helper: sticky footer
   -------------------------------------------------------------------------- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

main {
  flex: 1 0 auto;
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .skip-link,
  .cv-actions {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .page-hero,
  .section-alt {
    background: #fff;
  }

  a {
    color: #000;
  }
}
