/* ============================================================
   Jiezheng Wei — Academic Portfolio
   Cold Linen · scholarly chill with a whisper of brass
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  /* Cold paper palette */
  --paper:        #f4f5f7;     /* cool off-white, tinted blue */
  --paper-deep:   #eceef2;     /* subtle section tint */
  --card:         #ffffff;
  --ink:          #0b1118;     /* near-black with blue undertone */
  --ink-soft:     #2a3342;     /* secondary text */
  --ink-muted:    #636e7d;     /* tertiary / captions */
  --rule:         #d9dde3;     /* hairline */
  --rule-strong:  #b9c0c9;     /* visible hairline */
  --frost:        #e7eaef;     /* hover wash */

  /* The one warm note — aged brass (used sparingly for "fancy") */
  --brass:        #9a8158;
  --brass-deep:   #6f5a3a;
  --brass-pale:   #c9b48a;

  /* Typography */
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  --max-w: 1120px;
  --col-w:  860px;
  --ease:  0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* subtle paper grain */
  background-image:
    radial-gradient(rgba(11,17,24,0.018) 1px, transparent 1px),
    radial-gradient(rgba(11,17,24,0.012) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 1px;
}

a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--brass), var(--brass));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  transition: background-size var(--ease), color var(--ease);
}
a:hover { color: var(--brass-deep); background-size: 100% 2px; }

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

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

/* ---------- Navigation ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(244, 245, 247, 0.78);
  border-bottom: 1px solid var(--rule);
}

nav .nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

nav .nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: none;
}
nav .nav-logo .cn {
  font-family: 'Songti SC', 'STSong', 'Noto Serif SC', 'Source Han Serif SC', serif;
  font-size: 0.85em;
  font-weight: 400;
  color: var(--ink);
  margin-left: 0.35em;
  letter-spacing: 0.05em;
}

nav .nav-links {
  display: flex; gap: 2.25rem;
  list-style: none;
}

nav .nav-links a {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: none;
  position: relative;
  padding-bottom: 3px;
}
nav .nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width var(--ease);
}
nav .nav-links a:hover,
nav .nav-links a.current { color: var(--ink); }
nav .nav-links a:hover::after,
nav .nav-links a.current::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  width: 22px; height: 1px;
  background: var(--ink);
  transition: var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 96px 2rem 5rem;
  position: relative;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 4.5rem;
  align-items: center;
}

.hero-content { min-width: 0; }

.hero-text { animation: fadeUp 0.9s cubic-bezier(.22,.61,.36,1) both; }

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-kicker::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--brass);
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6.4vw, 5.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.1em;
}

.hero-hairline {
  width: 72px; height: 1px;
  background: linear-gradient(90deg, var(--brass), transparent);
  margin: 1.5rem 0 1.8rem;
}

/* ---------- Job-market notice ---------- */
.job-market {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.55;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem 0.7rem 1rem;
  margin: 0 0 2rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  position: relative;
}
.job-market::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--brass);
}
.job-market .pin {
  display: inline-block;
  width: 9px; height: 9px;
  background: var(--brass);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(154, 129, 88, 0.18);
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}
.job-market strong {
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(154, 129, 88, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(154, 129, 88, 0.06); }
}

.hero-subtitle {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 440px;
  margin-bottom: 2.4rem;
}

.hero-meta {
  display: flex; flex-wrap: wrap;
  gap: 2.2rem 2.8rem;
}

.hero-meta-item {
  display: flex; flex-direction: column; gap: 0.25rem;
  font-size: 0.88rem;
  color: var(--ink);
}
.hero-meta-item .label {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--brass);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-meta-item a { font-weight: 400; }

.intro-copy {
  max-width: 680px;
  margin-top: 1.5rem;
  padding-left: 0;
  animation: fadeIn 1.1s ease-out 0.18s both;
}

.intro-copy p {
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

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

.intro-copy a {
  color: var(--ink);
  font-weight: 500;
}

.intro-copy .intro-market {
  font-family: var(--serif);
  font-size: 1.16rem;
  color: var(--ink);
  line-height: 1.55;
}

.intro-copy .intro-contact {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

/* Profile logos from Simple Icons (CC0). */
.profile-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.8rem;
  margin-top: 1.75rem;
  list-style: none;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  background: none;
  border-radius: 2px;
}

.profile-links svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

.profile-links a:hover,
.profile-links a:focus-visible { color: var(--brass-deep); }

.profile-links a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 5px;
}

/* photo */
.hero-photo {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 360px;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  position: relative; z-index: 2;
}

.hero-photo::before {
  /* hairline frame, offset */
  content: '';
  position: absolute;
  inset: -14px -14px 14px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  z-index: 1;
}
.hero-photo::after {
  /* brass corner tick */
  content: '';
  position: absolute;
  top: -14px; right: -14px;
  width: 22px; height: 22px;
  border-top: 1px solid var(--brass);
  border-right: 1px solid var(--brass);
  z-index: 3;
}

.hero-caption {
  position: absolute;
  left: 6px; bottom: -32px;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ink-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Hero Plate (frontispiece in lieu of photo) ---------- */
.hero-plate {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(180deg, #fdfdfc 0%, #f7f8fa 100%);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 18px 50px -30px rgba(11, 17, 24, 0.2);
  animation: fadeIn 1.1s ease-out 0.25s both;
  overflow: hidden;
}

/* inner hairline frame */
.hero-plate::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--rule);
  pointer-events: none;
}

/* brass corner tick (top-right) */
.hero-plate::after {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 26px; height: 26px;
  border-top: 1px solid var(--brass);
  border-right: 1px solid var(--brass);
}

.hero-plate .plate-top,
.hero-plate .plate-foot {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  position: relative; z-index: 1;
}
.hero-plate .plate-foot {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--ink-muted);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  gap: 0.8rem;
}
.hero-plate .plate-foot .plate-year { color: var(--brass); }

.hero-plate .plate-mono {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 9vw, 6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  position: relative; z-index: 1;
  margin-top: 1rem;
}
.hero-plate .plate-mono .amp {
  font-style: italic;
  color: var(--brass);
  font-size: 0.55em;
  margin: 0 0.06em;
  vertical-align: 0.32em;
  font-weight: 400;
}

.hero-plate .plate-rule {
  width: 56px; height: 1px;
  background: var(--brass);
  margin: 0.25rem 0 0.1rem;
  position: relative; z-index: 1;
}

.hero-plate .plate-epigraph {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.96rem;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 240px;
  position: relative; z-index: 1;
}
.hero-plate .plate-epigraph em {
  color: var(--brass-deep);
  font-style: italic;
}

/* ---------- Painting banner (museum-label style) ---------- */
.painting-banner {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding: 0 2rem;
  animation: fadeIn 1.2s ease-out 0.45s both;
}
.painting-banner figure {
  margin: 0;
  background: var(--card);
  padding: 1.5rem 1.5rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: 0 20px 60px -30px rgba(11, 17, 24, 0.18);
  position: relative;
}
.painting-banner figure::before {
  content: '§';
  position: absolute;
  top: 0.8rem; right: 1.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--brass);
}
.painting-banner img {
  width: 100%;
  border-radius: 1px;
  filter: grayscale(55%) contrast(1.02);
  transition: filter 1.2s var(--ease);
}
.painting-banner figure:hover img { filter: grayscale(0%); }
.painting-banner figcaption {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-family: var(--sans);
  letter-spacing: 0.03em;
}
.painting-banner figcaption em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.painting-banner .plate {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 2rem 2rem;
  position: relative;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--brass);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section-label::before {
  content: '✦';
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--brass);
  letter-spacing: 0;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: -0.005em;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}

.divider {
  width: 58px; height: 1px;
  background: var(--rule-strong);
  margin-bottom: 2.2rem;
}

.prose {
  max-width: 680px;
  font-size: 0.96rem;
  color: var(--ink-soft);
  line-height: 1.85;
}
.prose a { color: var(--ink); }

/* Drop cap */
.prose.dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 4.2rem;
  line-height: 0.88;
  float: left;
  padding: 0.12em 0.12em 0 0;
  color: var(--brass-deep);
}

/* ---------- Research interests grid ---------- */
.interests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 1rem;
}
.interests .cell {
  background: var(--card);
  padding: 1.6rem 1.4rem;
  transition: background var(--ease);
}
.interests .cell:hover { background: var(--frost); }
.interests .cell .no {
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--brass);
  letter-spacing: 0.2em;
  margin-bottom: 0.6rem;
  display: block;
}
.interests .cell h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}
.interests .cell h3 em { font-style: italic; color: var(--ink-soft); }
.interests .cell p {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ---------- Info / contact cards ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.info-grid.info-grid--single {
  grid-template-columns: minmax(280px, 420px);
}
.info-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1.6rem 1.5rem;
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--brass);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--ease);
}
.info-card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -20px rgba(11, 17, 24, 0.18);
}
.info-card:hover::before { transform: scaleY(1); transform-origin: top; }

.info-card .card-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--brass);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.55rem;
}
.info-card .card-value {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.info-card .card-value a { background: none; }
.info-card .card-value a:hover { color: var(--brass-deep); }

/* ---------- Academic pages ---------- */
.academic-page {
  width: calc(100% - 4rem);
  max-width: var(--col-w);
  margin: 0 auto;
  padding: 9rem 0 6rem;
}

.academic-page-title {
  margin: 0 0 3.5rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}

.academic-section + .academic-section { margin-top: 4.5rem; }

.academic-section-title {
  margin: 0 0 1.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

.paper-list {
  margin: 0;
  padding-left: 2rem;
}

.paper-item {
  margin-bottom: 2rem;
  padding: 0 0 2rem 0.35rem;
  border-bottom: 1px solid var(--rule);
}

.paper-item:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.paper-item::marker {
  color: var(--brass-deep);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.paper-title,
.note-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

.note-title { margin: 0; }

.paper-heading {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.5;
}

.paper-authors {
  color: var(--ink-soft);
  font-size: 1.15rem;
  font-weight: 400;
}

.paper-badge {
  display: inline-block;
  margin-left: 0.55rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.8;
  white-space: nowrap;
}

.paper-abstract {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.abstract-label {
  color: var(--ink);
  font-weight: 600;
}

.note-item p {
  margin: 0.45rem 0;
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  letter-spacing: 0;
}

.document-link {
  color: var(--brass-deep);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
}

.teaching-group + .teaching-group { margin-top: 2.5rem; }

.teaching-group h3 {
  margin: 0 0 0.8rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

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

.course-item {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: 0;
}

.course-item:first-child { border-top: 0; }
.course-term { color: var(--ink-muted); }

.course-code {
  margin-right: 0.45rem;
  color: var(--brass-deep);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
}

.notes-list {
  display: grid;
  gap: 2rem;
}

.note-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.note-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* ---------- Resources ---------- */
.resources-page .academic-section-title {
  margin-bottom: 0.8rem;
  padding-bottom: 0;
  border-bottom: 0;
}

.resources-page .academic-section + .academic-section {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}

.resource-intro {
  margin-bottom: 1.5rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.resource-list {
  margin: 1.25rem 0 0;
  padding-left: 1.4rem;
  list-style: disc;
}

.resource-list .note-item {
  margin-bottom: 1.25rem;
  padding: 0 0 0 0.25rem;
  border: 0;
}

.resource-list .note-item:last-child { margin-bottom: 0; }
.resource-list .note-item::marker { color: var(--brass-deep); }

.resource-list .note-item p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 3rem 2rem 2.2rem;
  margin-top: 4rem;
  background: var(--paper-deep);
}
footer .footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
footer .monogram {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
footer .monogram em { color: var(--brass); font-style: normal; }
footer a { color: var(--ink-muted); background: none; }
footer a:hover { color: var(--brass-deep); }
footer .ornament {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-photo,
  .hero-plate { justify-self: start; max-width: 320px; }
  .hero::before { font-size: 22rem; right: -2rem; opacity: 0.025; }
  .intro-copy {
    max-width: 760px;
  }
}

@media (max-width: 768px) {
  nav .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(244, 245, 247, 0.97);
    backdrop-filter: blur(14px);
    padding: 1.6rem 2rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--rule);
  }
  nav .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero { padding: 90px 1.4rem 3rem; }
  .section { padding: 4rem 1.4rem 1.5rem; }
  .academic-page {
    width: calc(100% - 2.8rem);
    padding: 7rem 0 4rem;
  }
  .academic-page-title {
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
  }
  .academic-section + .academic-section { margin-top: 3.5rem; }
  .course-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .painting-banner { padding: 0 1.4rem; }
  .job-market {
    align-items: flex-start;
    font-size: 1.05rem;
  }
  .intro-copy p { font-size: 0.95rem; }

  .hero-photo::before { inset: -8px -8px 8px 8px; }
  .painting-banner figcaption { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
}

@media (max-width: 480px) {
  nav .nav-inner { padding: 0 1.2rem; }
  .profile-links { column-gap: 1.2rem; }
  .profile-links a { font-size: 0.8rem; }
  .profile-links svg { width: 20px; height: 20px; }
  .hero-name { font-size: 3rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .prose.dropcap::first-letter { font-size: 3.2rem; }
}
