/* =====================================================================
   SITE LAYOUT — how things are arranged (grids, spacing, cards).
   Colours and fonts are NOT here: see assets/css/theme.css.
   You rarely need to edit this file.

   Contents
     1. Base            5. Homepage           9. Conferences
     2. Header & menu   6. Inner pages        10. Footer
     3. Buttons & tags  7. Research           11. Small screens
     4. Map surfaces    8. Teaching           12. Reduced motion & print
   ===================================================================== */

/* 1. BASE ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-size);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
.mono { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.5rem); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--card); color: var(--text); padding: .5rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

/* 2. HEADER & MENU ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink-text);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: var(--ink); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; }
.brand-mark { color: var(--map-contour); display: inline-flex; }
.brand-dot { fill: var(--map-light); }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0; }
.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .45rem .8rem; border-radius: 999px;
  color: var(--ink-muted); text-decoration: none;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--ink-text); background: rgba(255,255,255,.07); }
.site-nav a[aria-current="page"] { color: var(--ink-text); background: rgba(255,255,255,.1); }
.site-nav a.nav-cv { color: var(--ink); background: var(--map-light); }
.site-nav a.nav-cv:hover { background: var(--ink-text); }
.nav-toggle { display: none; }

/* 3. BUTTONS & TAGS ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .7rem 1.15rem; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; line-height: 1.2;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--text); }
.hero .btn-primary { background: var(--map-light); color: var(--ink); }
.hero .btn-primary:hover { background: var(--ink-text); }
.btn-ghost { border-color: rgba(255,255,255,.28); color: var(--ink-text); }
.btn-ghost:hover { border-color: var(--ink-text); background: rgba(255,255,255,.06); }
.btn-small { padding: .45rem .8rem; font-size: .72rem; border-color: var(--rule); color: var(--text); background: var(--card); }
.btn-small:hover { border-color: var(--accent); color: var(--accent); }
.text-link { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.tag {
  display: inline-block; padding: .18rem .55rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; line-height: 1.5;
  background: var(--paper-2); color: var(--muted); border: 1px solid var(--rule);
}
.tag--published { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.tag--working_paper, .tag--upcoming { background: transparent; border-color: var(--accent-2); color: var(--accent-2); }
.tag--work_in_progress { background: transparent; border-style: dashed; }
.tag--current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 4. MAP SURFACES (dark areas with the generated map) ------------------- */
.geo-surface { position: relative; background-color: var(--ink); color: var(--ink-text); overflow: hidden; isolation: isolate; }
.geo-surface.geo-photo { background-size: cover; background-position: center; }
.geo-surface.geo-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,28,37,.92), rgba(15,28,37,.55)); z-index: -1; }
.geo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
/* soft shade behind the text so it always stays readable over the map */
.geo-surface::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 90% at 15% 50%, rgba(15,28,37,.78), rgba(15,28,37,0) 70%);
}
.geo-surface a:not(.btn) { color: var(--map-light); }
.eyebrow { color: var(--map-contour); margin-bottom: 1rem; }

/* 5. HOMEPAGE ------------------------------------------------------------ */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 2rem; min-height: min(88vh, 820px); display: flex; flex-direction: column; justify-content: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-name { font-size: clamp(2.8rem, 1.6rem + 5vw, 5.4rem); font-weight: 400; letter-spacing: -0.025em; margin-bottom: .25em; }
.hero-tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem); line-height: 1.35; max-width: 30ch; color: var(--ink-text); margin-bottom: 1.2rem; }
.hero-dept { color: var(--ink-muted); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.hero-portrait { margin: 0; justify-self: center; width: 100%; max-width: var(--photo-size); }
.portrait-frame { position: relative; padding: 14px; }
/* corner ticks, like the frame of a printed map */
.portrait-frame::before, .portrait-frame::after {
  content: ""; position: absolute; width: 34px; height: 34px; border: 1.5px solid var(--map-light); pointer-events: none;
}
.portrait-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.portrait-frame::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.portrait-frame img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%;
  border-radius: 3px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.7);
}
.map-caption { color: var(--ink-muted); font-size: .68rem; margin: 2.5rem 0 0; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; text-transform: none; letter-spacing: .02em; }
.legend-swatch { display: inline-block; width: 18px; height: 0; border-top: 1.5px solid; }
.legend-contour { border-color: var(--map-contour); }
.legend-road { border-color: var(--map-road); }
.legend-light { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--map-light); box-shadow: 0 0 8px var(--map-light); margin-right: .3rem; }

.home-section { padding-top: clamp(3.5rem, 7vw, 6rem); }
.home-section:last-of-type { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.section-index { color: var(--accent); border-top: 1px solid var(--text); padding-top: .9rem; margin-bottom: 2rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid var(--text); padding-top: .9rem; margin-bottom: 2rem; }
.section-head .section-index { border: 0; padding: 0; margin: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose { font-size: 1.12rem; max-width: 68ch; }
.prose p:first-child::first-line { font-weight: 500; }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem; }
.panel-title { color: var(--accent-2); margin-bottom: 1rem; font-size: .75rem; font-weight: 500; }
.pos-list { list-style: none; margin: 0; padding: 0; }
.pos-list li { display: grid; grid-template-columns: 5.5rem 1fr; column-gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--rule); font-size: .95rem; line-height: 1.4; }
.pos-list li:first-child { border-top: 0; padding-top: 0; }
.pos-period { color: var(--muted); font-size: .7rem; grid-row: span 2; padding-top: .2rem; }
.pos-role { font-weight: 600; }
.pos-org { color: var(--muted); }
.pos-org a { color: inherit; }
.theme-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.theme-list li {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  padding: .55rem 1.1rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--card);
}
.theme-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.featured-grid .paper { grid-template-columns: 1fr; }
.featured-grid .paper-figure { aspect-ratio: 16 / 10; }
.now-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.mini-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.mini-list li { padding: .75rem 0; border-top: 1px solid var(--rule); line-height: 1.45; }
.mini-list li:first-child { border-top: 0; padding-top: 0; }
.mini-list .muted { font-size: .9rem; }
.award-list { padding-left: 1.1rem; margin: 0 0 1.5rem; }
.award-list li { margin-bottom: .6rem; }

/* 6. INNER PAGES ------------------------------------------------------- */
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-title { font-size: clamp(2.6rem, 1.8rem + 4vw, 4.4rem); font-weight: 400; letter-spacing: -0.02em; margin-bottom: .3em; }
.page-lede { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); color: var(--ink-text); max-width: 46ch; margin: 0; line-height: 1.4; }
.page-content { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.page-index { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.page-index a { color: var(--muted); text-decoration: none; }
.page-index a:hover { color: var(--accent); }
.block { padding-top: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: 80px; }
.block-head { display: flex; align-items: baseline; gap: .8rem; border-bottom: 1px solid var(--text); margin-bottom: 1.8rem; }
.block-head h2 { margin-bottom: .35rem; }
.block-count { color: var(--accent); }
.muted-block { color: var(--muted); font-size: .95rem; margin-top: 1.5rem; }

/* 7. RESEARCH ----------------------------------------------------------- */
.paper-list { display: grid; gap: 1.5rem; }
.paper {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .25s, border-color .25s;
}
.paper:hover { border-color: color-mix(in srgb, var(--accent-2) 45%, var(--rule)); box-shadow: 0 18px 40px -28px rgba(15,28,37,.45); }
.paper-list .paper.has-figure { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.paper-figure { margin: 0; background: #fff; border-right: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; padding: .75rem; }
.featured-grid .paper-figure { border-right: 0; border-bottom: 1px solid var(--rule); }
.paper-figure img { width: 100%; height: 100%; max-height: 260px; object-fit: contain; }
.paper-body { padding: 1.4rem 1.6rem 1.5rem; }
.paper-meta { display: flex; align-items: center; gap: .7rem; color: var(--muted); margin-bottom: .7rem; }
.paper-title { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); margin-bottom: .45rem; }
.paper-authors { margin-bottom: .2rem; }
.paper-venue { font-family: var(--font-display); font-style: italic; color: var(--accent-2); font-size: 1.1rem; margin-bottom: .4rem; }
.paper-note { color: var(--muted); font-size: .9rem; }
.paper-excerpt { color: var(--muted); font-size: .95rem; }
.paper-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.abstract { margin-top: .9rem; border-top: 1px dashed var(--rule); padding-top: .6rem; }
.abstract summary { cursor: pointer; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); list-style: none; display: inline-flex; align-items: center; gap: .4rem; }
.abstract summary::-webkit-details-marker { display: none; }
.abstract summary::before { content: "+"; display: inline-block; width: 1em; text-align: center; transition: transform .2s; }
.abstract[open] summary::before { content: "–"; }
.abstract p { margin-top: .7rem; font-size: .97rem; max-width: 75ch; }
.ref-list { list-style: none; margin: 0; padding: 0; }
.ref { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.ref:first-child { border-top: 0; padding-top: 0; }
.ref-year { color: var(--accent); padding-top: .2rem; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline-item { display: grid; grid-template-columns: 13rem 1fr; gap: 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.timeline-item:first-child { border-top: 0; padding-top: 0; }
.timeline-when { color: var(--muted); padding-top: .3rem; }
.timeline-body h3 { font-size: 1.2rem; margin-bottom: .15rem; }
.timeline-role { color: var(--accent-2); font-weight: 500; margin-bottom: .4rem; }
.timeline-body p:last-child { margin-bottom: 0; }
.timeline--compact .timeline-item { grid-template-columns: 7.5rem 1fr; }
.methods-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.methods-grid p { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }

/* 8. TEACHING ----------------------------------------------------------- */
.course-list { display: grid; gap: 1rem; }
.course {
  display: grid; grid-template-columns: 13rem 1fr; gap: 1.5rem;
  background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--rule);
  border-radius: var(--radius); padding: 1.4rem 1.6rem;
}
.course--current { border-left-color: var(--accent); }
.course--upcoming { border-left-color: var(--accent-2); }
.course-when { color: var(--muted); margin-bottom: .6rem; }
.course-title { margin-bottom: .2rem; }
.course-inst { color: var(--accent-2); font-weight: 500; margin-bottom: .3rem; }
.course-prog { color: var(--muted); font-size: .93rem; }
.course-body > :last-child { margin-bottom: 0; }
.topic-list { list-style: none; padding: 0; margin: .4rem 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.topic-list li { font-size: .85rem; padding: .25rem .65rem; background: var(--paper-2); border-radius: 999px; }

/* 9. CONFERENCES ------------------------------------------------------- */
.year-index { display: flex; flex-wrap: wrap; gap: .4rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.year-index a { padding: .3rem .7rem; border: 1px solid var(--rule); border-radius: 999px; color: var(--muted); text-decoration: none; background: var(--card); }
.year-index a:hover { color: var(--accent); border-color: var(--accent); }
.year-group { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding-top: 2.5rem; scroll-margin-top: 80px; }
.year-label { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); font-weight: 400; color: var(--text); position: sticky; top: 84px; align-self: start; margin: 0; }
.year-label .block-count { display: block; font-size: .7rem; margin-top: .3rem; }
.events { list-style: none; margin: 0; padding: 0 0 0 1.6rem; border-left: 1px solid var(--rule); }
.event { position: relative; padding: 0 0 1.8rem; display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; }
.event::before {
  content: ""; position: absolute; left: calc(-1.6rem - 5px); top: .45rem;
  width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent);
}
.event-date { color: var(--muted); padding-top: .25rem; }
.event-name { font-size: 1.2rem; margin-bottom: .2rem; }
.event-name a { color: var(--text); text-decoration-color: var(--rule); }
.event-name a:hover { color: var(--accent); text-decoration-color: currentColor; }
.event-sub { color: var(--muted); font-size: .95rem; margin-bottom: .35rem; }
.event-talk { font-style: italic; margin-bottom: .35rem; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; font-size: .9rem; margin: 0; }
.event-place { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent-2); }

/* 10. FOOTER ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: var(--ink-muted); padding: 3rem 0 2rem; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
.footer-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink-text); margin-bottom: .3rem; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.footer-links li { margin-bottom: .45rem; break-inside: avoid; }
.site-footer a { color: var(--ink-text); text-decoration-color: rgba(255,255,255,.3); }
.site-footer a:hover { color: var(--map-light); }
.footer-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.2rem; margin: 1rem 0 0; font-size: .68rem; }

/* 11. SMALL SCREENS ---------------------------------------------------- */
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-width: min(300px, 75vw); justify-self: start; }
  .about-grid, .now-grid { grid-template-columns: 1fr; }
  .paper-list .paper.has-figure { grid-template-columns: 1fr; }
  .paper-figure { border-right: 0; border-bottom: 1px solid var(--rule); }
  .paper-figure img { max-height: 220px; }
  .course, .timeline-item { grid-template-columns: 1fr; gap: .4rem; }
  .year-group { grid-template-columns: 1fr; gap: .8rem; }
  .year-label { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius);
    background: transparent; color: var(--ink-text); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  html:not(.js) .nav-toggle { display: none; }
  .js .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.08); display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem clamp(1.1rem, 4vw, 2.5rem) 1rem; }
  .site-nav a { padding: .8rem .6rem; border-radius: var(--radius); }
  .site-nav a.nav-cv { margin-top: .4rem; text-align: center; }
  .event { grid-template-columns: 1fr; gap: .2rem; }
  .ref { grid-template-columns: 1fr; gap: .2rem; }
  .footer-links { columns: 1; }
  .footer-meta { flex-direction: column; }
}

/* 12. REDUCED MOTION & PRINT ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .geo-canvas, .hero-actions, .page-index, .year-index { display: none !important; }
  .geo-surface { background: none !important; color: #000; }
  .geo-surface::after { display: none; }
  body { background: #fff; }
}

/* 13. LAYOUT FIXES ---------------------------------------------------- */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.paper, .paper-body, .paper-figure { min-width: 0; }
.featured-grid .paper { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; }
.featured-grid .paper-figure { height: 210px; aspect-ratio: auto; }
.featured-grid .paper-figure img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.paper-title, .paper-authors, .event-name { overflow-wrap: anywhere; }
.pos-org a { text-decoration-color: var(--rule); }

/* 14. WIDE RESEARCH PICTURES (image_layout: wide in _data/research.yml) */
.paper-list .paper.has-figure.paper--wide { grid-template-columns: minmax(0, 1fr); }
.paper--wide .paper-figure { border-right: 0; border-bottom: 1px solid var(--rule); padding: 1rem; }
.paper--wide .paper-figure img { width: 100%; height: auto; max-height: none; object-fit: contain; }

/* 15. HOMEPAGE ADJUSTMENTS (Nov 2026 update) ---------------------------- */
.hero-name { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.3rem); margin-bottom: .45em; }
.hero-dept { font-size: 1.05rem; }
.section-index--welcome {
  font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem);
  font-weight: 400; color: var(--text); text-transform: none; letter-spacing: -0.01em;
}
.education-list { max-width: 820px; }

/* 16. NOV 2026 UPDATE: smaller name, subtle buttons, e-mail button -------- */
.hero-name { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); }
.hero .btn-primary { background: var(--button-bg); color: var(--button-text); }
.hero .btn-primary:hover { background: #ffffff; }
.site-nav a.nav-cv { background: transparent; color: var(--ink-text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.site-nav a.nav-cv:hover { background: var(--button-bg); color: var(--button-text); }
.btn-email { text-transform: none; letter-spacing: .02em; }
.btn-email.is-copied { border-color: var(--map-contour); color: var(--map-contour); }
.home-section:last-of-type { padding-bottom: clamp(3.5rem, 7vw, 6rem); }

/* 17. Sober colour for links on the dark area and the photo corner marks */
.geo-surface a:not(.btn) { color: var(--hero-detail); text-decoration-color: color-mix(in srgb, var(--hero-detail) 55%, transparent); }
.geo-surface a:not(.btn):hover { color: var(--ink-text); }
.portrait-frame::before, .portrait-frame::after { border-color: var(--hero-detail); opacity: .8; }
