/* ==========================================================================
   Ye Jin Kwon — personal academic website
   Bright and friendly: white with sky blue. Colors live in the variables below.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #0f2942;
  --ink-2: #3a5068;
  --muted: #5f7488;
  --line: #e2ecf4;

  /* A family of blues: brights (decoration) + "-ink" versions (text-safe on light backgrounds) */
  --sky: #38bdf8;     --sky-ink: #0369a1;     --sky-soft: #e0f2fe;
  --ocean: #3b82f6;   --ocean-ink: #1d4ed8;   --ocean-soft: #dbeafe;
  --frost: #a5dcfb;   --frost-ink: #075985;   --frost-soft: #f0f9ff;
  --aqua: #22d3ee;    --aqua-ink: #0e7490;    --aqua-soft: #cffafe;
  --peri: #8b9cf7;    --peri-ink: #3f51c8;    --peri-soft: #e6eaff;

  /* Section background tints */
  --tint-sky: #ffffff;
  --tint-frost: #ffffff;
  --tint-aqua: #ffffff;

  --highlight: var(--frost);

  --on-primary: #ffffff;
  --primary: #0277bd;
  --primary-strong: #035f92;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hand: "Nanum Pen Script", "Segoe Print", "Bradley Hand", cursive;

  --max: 1120px;
  --radius: 14px;
  --nav-h: 68px;
  --shadow: 0 1px 2px rgba(15, 41, 66, .05);
  --shadow-lift: 0 10px 30px -14px rgba(15, 41, 66, .25);

  --accent: var(--sky);
  --accent-ink: var(--sky-ink);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--sky-ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { color: var(--ocean-ink); text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--frost); color: #0f2942; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

cite { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -16px rgba(15, 41, 66, .3);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-h);
}

.site-nav__brand {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__brand:hover { color: var(--ink); }

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__links a {
  display: block;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .925rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.site-nav__links a:hover { color: var(--ink); background: var(--frost-soft); }
.site-nav__links a.is-active { color: var(--sky-ink); background: var(--sky-soft); }

.site-nav__links a.site-nav__cv {
  margin-left: 8px;
  padding: 8px 18px;
  background: var(--ink);
  color: var(--bg);
}
.site-nav__links a.site-nav__cv:hover { background: var(--primary); color: var(--on-primary); }

.site-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 900px) {
  /* Without JS the links simply scroll horizontally; with JS they collapse into a menu. */
  .site-nav__links {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .js .site-nav__toggle { display: inline-flex; }

  .js .site-nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: visible;
    display: none;
  }
  .js .site-nav__links.is-open { display: flex; }
  .js .site-nav__links a { padding: 12px 16px; font-size: 1rem; }
  .js .site-nav__links a.site-nav__cv { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 120px;
  background: var(--bg);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 72px;
}

.hero__role {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sky-ink);
}

.hero__name {
  margin-top: 14px;
  font-size: clamp(3rem, 7.2vw, 5.4rem);
  font-weight: 650;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hl {
  position: relative;
  display: inline-block;
  color: var(--sky-ink);
  z-index: 0;
}
.hl::after {
  content: "";
  position: absolute;
  left: -.08em; right: -.1em;
  bottom: .04em;
  height: .32em;
  z-index: -1;
  border-radius: 6px 12px 8px 14px;
  background: var(--highlight);
  transform: rotate(-2deg);
}

.hero__formal {
  margin-top: 12px;
  font-family: var(--hand);
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--muted);
}

.hero__lede {
  margin-top: 22px;
  max-width: 34em;
  font-size: 1.175rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.hero__lede strong { font-weight: 700; color: var(--ink); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover {
  border-color: var(--sky-ink);
  color: var(--sky-ink);
}

.btn--primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.btn--primary:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: var(--on-primary);
}

/* Photo */
.hero__photo {
  position: relative;
  margin: 0;
  width: clamp(240px, 30vw, 350px);
}
.hero__blob {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--frost);
  transform: translate(18px, 14px);
}
.hero__photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 7px solid var(--surface);
  box-shadow: var(--shadow-lift);
}

.hero__note {
  position: absolute;
  left: -34%; top: -4%;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  font-family: var(--hand);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ocean-ink);
  transform: rotate(-8deg);
  white-space: nowrap;
}
.hero__note svg { margin-top: 14px; color: var(--ocean-ink); }

/* Quick facts */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 64px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.fact dt {
  font-size: .875rem;
  font-weight: 600;
  color: var(--sky-ink);
}
.fact dd {
  margin: 4px 0 0;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.hero__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 64px;
}
.hero__wave-back { fill: color-mix(in srgb, var(--sky) 22%, var(--bg)); }
.hero__wave-front { fill: var(--bg); }

@media (max-width: 900px) {
  .hero { padding: 40px 0 96px; }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__photo { order: -1; width: 180px; margin-left: 14px; }
  .hero__note {
    left: calc(100% + 6px); top: 20%;
    flex-direction: row-reverse;
    transform: rotate(-6deg);
  }
  .hero__note svg { transform: scaleX(-1); }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
    margin-top: 48px;
  }
}
@media (max-width: 520px) {
  .hero__photo { width: 160px; }
  .hero__note { left: calc(100% + 2px); font-size: 1.5rem; }
  .hero__note svg { width: 36px; height: 24px; margin-top: 10px; }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: 96px 0;
}
.section + .section { border-top: 1px solid var(--line); }
.section--sky  { background: var(--tint-sky); }
.section--frost  { background: var(--tint-frost); }
.section--aqua { background: var(--tint-aqua); }

.section__head { margin-bottom: 44px; }

.kicker {
  font-family: var(--hand);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--accent-ink);
  transform: rotate(-2deg);
  transform-origin: left;
}

.section__head h2 {
  margin-top: 6px;
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}
.section__head h2::after {
  content: "";
  display: block;
  width: 92px;
  height: 14px;
  margin-top: 12px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 14'%3E%3Cpath d='M3 7c7.5-6 15-6 22.5 0s15 6 22.5 0 15-6 22.5 0 11 4.5 19 1' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 14'%3E%3Cpath d='M3 7c7.5-6 15-6 22.5 0s15 6 22.5 0 15-6 22.5 0 11 4.5 19 1' fill='none' stroke='black' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.section__intro {
  margin-top: 24px;
  max-width: 40em;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.subhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 56px 0 20px;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}
.subhead span {
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
}
.subhead--first { margin-top: 0; }

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: start;
}

.prose p {
  max-width: 38em;
  font-size: 1.075rem;
  color: var(--ink-2);
}
.prose p + p { margin-top: 1.1em; }
.prose .prose__lead {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.glance {
  position: relative;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transform: rotate(.8deg);
}
.glance::before {
  /* a little strip of "tape" */
  content: "";
  position: absolute;
  top: -12px; left: 50%;
  width: 96px; height: 24px;
  transform: translateX(-50%) rotate(-3deg);
  border-radius: 4px;
  background: color-mix(in srgb, var(--frost) 70%, transparent);
}

.glance__title {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
}
.glance__title + ul { margin-top: 14px; }
ul + .glance__title { margin-top: 26px; padding-top: 22px; border-top: 2px dashed var(--line); }

.edu li {
  position: relative;
  padding-left: 22px;
}
.edu li + li { margin-top: 12px; }
.edu li::before {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sky);
}
.edu li:nth-child(2)::before { background: var(--ocean); }
.edu li:nth-child(3)::before { background: var(--aqua); }
.edu strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
}
.edu span {
  display: block;
  font-size: .875rem;
  color: var(--muted);
}

.langs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.langs li + li { margin-top: 10px; }
.langs__name {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
}
.langs__hi {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
}
.langs__level {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .about { grid-template-columns: 1fr; gap: 48px; }
  .glance { max-width: 520px; transform: none; }
}

/* ---------- Research ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  --c: var(--sky); --c-ink: var(--sky-ink); --c-soft: var(--sky-soft);
  display: flex;
  flex-direction: column;
  padding: 26px 28px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--c);
  border-radius: var(--radius);
}
.card--ocean { --c: var(--ocean); --c-ink: var(--ocean-ink); --c-soft: var(--ocean-soft); }
.card p { color: var(--ink-2); }

.card .card__kicker {
  font-size: .875rem;
  font-weight: 700;
  color: var(--c-ink);
}

.card__title {
  margin: 10px 0 14px;
  font-size: 1.6rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}
.tags li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--c-soft);
  color: var(--c-ink);
  font-size: .8rem;
  font-weight: 650;
}

.callout {
  margin-top: 24px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sky);
  border-radius: var(--radius);
  background: var(--frost-soft);
}
.callout__kicker {
  font-size: .85rem;
  font-weight: 700;
  color: var(--frost-ink);
}
.callout__title {
  margin-top: 4px;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
}
.callout__meta {
  margin-top: 6px;
  font-size: .9rem;
  color: var(--ink-2);
}

/* Field notes as postcards */
.postcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.postcard {
  --c: var(--peri); --c-ink: var(--peri-ink); --c-soft: var(--peri-soft);
  position: relative;
  padding: 24px 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 6px solid var(--c);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}
.postcard:nth-child(2) { transform: rotate(1deg); }
.postcard:nth-child(3) { transform: rotate(-.6deg); }
.postcard--ocean { --c: var(--ocean); --c-ink: var(--ocean-ink); --c-soft: var(--ocean-soft); }
.postcard--aqua  { --c: var(--aqua);  --c-ink: var(--aqua-ink);  --c-soft: var(--aqua-soft); }

.postcard__stamp {
  position: absolute;
  top: 18px; right: 18px;
  display: grid;
  place-items: center;
  width: 50px; height: 56px;
  border-radius: 6px;
  background: var(--c-soft);
  color: var(--c-ink);
  outline: 2px dashed color-mix(in srgb, var(--c) 60%, transparent);
  outline-offset: 3px;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .06em;
  text-align: center;
  transform: rotate(6deg);
}
.postcard__date {
  font-family: var(--hand);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--c-ink);
}
.postcard__title {
  margin-top: 10px;
  padding-right: 60px;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}
.postcard__place {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: .85rem;
  font-weight: 650;
  color: var(--c-ink);
}
.postcard__place svg { flex: none; }
.postcard__text {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px dashed var(--line);
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-2);
}

@media (max-width: 1000px) {
  .postcards { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Publications ---------- */

.pubs { display: grid; gap: 16px; }

.pub {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pub__year {
  display: grid;
  place-items: center;
  align-self: start;
  height: 56px;
  border-radius: 10px;
  background: var(--peri-soft);
  color: var(--peri-ink);
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pub:nth-child(2n) .pub__year { background: var(--sky-soft); color: var(--sky-ink); }

.pub__cite {
  max-width: 48em;
  font-size: 1.025rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.pub__me {
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(color-mix(in srgb, var(--frost) 45%, transparent), color-mix(in srgb, var(--frost) 45%, transparent)) no-repeat 0 90% / 100% .4em;
}

.pub__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 12px;
  font-size: .875rem;
}
.doi {
  word-break: break-all;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--peri-soft);
  color: var(--peri-ink);
  font-size: .78rem;
  font-weight: 700;
}
.badge--award {
  background: var(--frost);
  color: #0c3a5a;
}

@media (max-width: 560px) {
  .pub { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .pub__year { justify-self: start; height: auto; padding: 4px 14px; border-radius: 999px; }
}

/* ---------- Talks ---------- */

.talks { display: grid; gap: 14px; }

.talk {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cal {
  --c: var(--ocean); --c-ink: var(--ocean-ink); --c-soft: var(--ocean-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid var(--c);
  background: var(--surface);
  text-align: center;
  line-height: 1;
}
.talk:nth-child(5n+2) .cal { --c: var(--sky);   --c-ink: var(--sky-ink);   --c-soft: var(--sky-soft); }
.talk:nth-child(5n+3) .cal { --c: var(--aqua);  --c-ink: var(--aqua-ink);  --c-soft: var(--aqua-soft); }
.talk:nth-child(5n+4) .cal { --c: var(--peri);  --c-ink: var(--peri-ink);  --c-soft: var(--peri-soft); }
.talk:nth-child(5n+5) .cal { --c: var(--frost); --c-ink: var(--frost-ink); --c-soft: var(--frost-soft); }
.cal__m {
  padding: 6px 0 5px;
  background: var(--c-soft);
  color: var(--c-ink);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cal__y {
  padding: 9px 0 10px;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.talk__title {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: 1.15rem;
  font-weight: 550;
  line-height: 1.4;
}
.talk__meta {
  margin-top: 6px;
  font-size: .925rem;
  color: var(--ink-2);
}
.talk__place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: var(--frost-soft);
  color: var(--frost-ink);
  font-size: .8rem;
  font-weight: 700;
}

.footnote {
  margin-top: 20px;
  font-size: .9rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .talk { grid-template-columns: 60px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .cal__y { font-size: 1rem; }
}

/* ---------- Teaching ---------- */

.award-banner {
  margin-bottom: 48px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--sky-soft);
  color: #0f2942;
}
.award-banner__kicker {
  font-family: var(--hand);
  font-size: 1.5rem;
  line-height: 1;
  color: #075985;
}
.award-banner__title {
  margin-top: 4px;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 650;
  line-height: 1.2;
}
.award-banner__meta {
  margin-top: 2px;
  font-size: .9rem;
  font-weight: 600;
  color: #0c4a6e;
}

.courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.course {
  --c: var(--aqua); --c-ink: var(--aqua-ink); --c-soft: var(--aqua-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.course:nth-child(5n+2) { --c: var(--sky);   --c-ink: var(--sky-ink);   --c-soft: var(--sky-soft); }
.course:nth-child(5n+3) { --c: var(--ocean); --c-ink: var(--ocean-ink); --c-soft: var(--ocean-soft); }
.course:nth-child(5n+4) { --c: var(--peri); --c-ink: var(--peri-ink); --c-soft: var(--peri-soft); }
.course:nth-child(5n+5) { --c: var(--frost);   --c-ink: var(--frost-ink);   --c-soft: var(--frost-soft); }

.course__code {
  align-self: flex-start;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--c-soft);
  color: var(--c-ink);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
}
.course__name {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}
.course__term {
  margin-top: auto;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 560px) {
  .award-banner { padding: 20px; }
}

/* ---------- Honors & Experience ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.awards li {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  line-height: 1.5;
}
.awards li + li { border-top: 1px dashed var(--line); }
.awards__year {
  align-self: start;
  justify-self: start;
  margin-top: 1px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--ocean-soft);
  color: var(--ocean-ink);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.awards li:nth-child(4n+2) .awards__year { background: var(--sky-soft);   color: var(--sky-ink); }
.awards li:nth-child(4n+3) .awards__year { background: var(--aqua-soft);  color: var(--aqua-ink); }
.awards li:nth-child(4n+4) .awards__year { background: var(--peri-soft); color: var(--peri-ink); }
.awards small { color: var(--muted); font-size: .85em; }

.exp li {
  position: relative;
  padding: 0 0 22px 28px;
}
.exp li:last-child { padding-bottom: 0; }
.exp li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--ocean);
}
.exp li::after {
  content: "";
  position: absolute;
  left: 6px; top: 24px; bottom: 2px;
  width: 2px;
  background: repeating-linear-gradient(var(--line) 0 4px, transparent 4px 8px);
}
.exp li:last-child::after { display: none; }
.exp li:nth-child(4n+2)::before { border-color: var(--sky); }
.exp li:nth-child(4n+3)::before { border-color: var(--aqua); }
.exp li:nth-child(4n+4)::before { border-color: var(--peri); }
.exp__role { font-weight: 700; }
.exp__org { margin-top: 2px; color: var(--ink-2); line-height: 1.5; }
.exp__date { margin-top: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }

@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .panel { padding: 22px 18px; }
}

/* ---------- Contact ---------- */

.contact { padding-top: 72px; }

.contact__panel {
  position: relative;
  overflow: hidden;
  padding: 64px 56px;
  border-radius: 20px;
  background: #0273b2;
  color: #fff;
}
.contact__body { position: relative; }

.contact__waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 120px;
  color: rgba(255, 255, 255, .14);
  pointer-events: none;
}

.kicker--light { color: #bae6fd; }

.contact h2 {
  margin-top: 6px;
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  font-weight: 650;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -0.02em;
  color: #fff;
}

.contact__lead {
  margin-top: 16px;
  max-width: 34em;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .9);
}

.contact__email {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.4rem, 3.6vw, 2.3rem);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #7dd3fc;
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
  word-break: break-word;
}
.contact__email:hover { color: #e0f2fe; text-decoration-color: #ffffff; }
.contact__email:focus-visible { outline-color: #bae6fd; }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: 40px;
  margin-top: 48px;
}
.contact__label {
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #ffffff;
}
address { font-style: normal; color: rgba(255, 255, 255, .9); }
.contact__links li + li { margin-top: 6px; }
.contact__links a {
  color: #fff;
  font-weight: 600;
  text-decoration-color: rgba(255, 255, 255, .45);
}
.contact__links a:hover { color: #e0f2fe; text-decoration-color: #e0f2fe; }
.contact__links a:focus-visible { outline-color: #bae6fd; }


@media (max-width: 700px) {
  .contact__panel { padding: 44px 24px 56px; border-radius: 16px; }
  .contact__grid { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 32px 0 40px;
  font-size: .9rem;
  color: var(--muted);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}
.site-footer a { color: var(--muted); font-weight: 600; text-decoration: none; }
.site-footer a:hover { color: var(--ocean-ink); }

/* ---------- Motion & print ---------- */

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

@media print {
  :root {
    --bg: #fff; --surface: #fff;
    --ink: #000; --ink-2: #222; --muted: #555; --line: #ccc;
  }
  .site-nav, .skip-link, .hero__actions, .hero__wave, .hero__note, .hero__blob,
  .contact__waves, .site-footer { display: none !important; }
  .hero, .section, .section--sky, .section--frost, .section--aqua { background: none; }
  .section, .hero { padding: 24px 0; }
  .card, .glance, .callout, .pub, .talk, .course, .panel, .postcard { box-shadow: none; transform: none; break-inside: avoid; }
  .contact__panel { background: none; color: #000; box-shadow: none; padding: 0; }
  .contact h2, .contact__email, .contact__links a, address, .contact__lead { color: #000; }
  a { color: inherit; text-decoration: none; }
}
