:root {
  --coral: #ed7570;
  --mint: #74ddd1;
  --cream: #fcefd1;
  --mist: #f8fbfe;
  --slate: #5A7180;
  --ink: #253b4b;
  --ink-soft: #395364;
  --deep-teal: #398184;
  --oxide: #840200;
  --red: #d10300;

  /*--mist: #D9E3E8;*/
  --paper: #FFFDF8;

  /* warm tones */
  --coral-soft: #F89A90;
  --peach: #E76E3C;
  --apricot: #F2A65A;
  --terracotta: #C96A4A;
  --clay: #B85C38;
  --rose: #D97C8A;
  --blush: #F2C6C2;
  
   /* brighter / punchier reds */
  --signal-red: #FF3B30;
  --scarlet: #E53935;
  --vermilion: #E24A34;
  --tomato: #F05A4A;

  /* softer / pinker reds */
  --watermelon: #F26D6D;
  --salmon-red: #F08A7C;
  --rose-red: #D96B78;
  --dusty-rose: #C97A86;
  --blush-red: #E7A3A0;

  /* earthy / muted reds */
  --brick: #B54A3A;
  --terracotta-red: #C65D46;
  --clay-red: #A94E3F;
  --cinnamon-red: #9C4F3D;
  --rust-red: #8F3F2F;

  /* dark reds */
  --crimson: #B11226;
  --cranberry: #9E1B32;
  --garnet: #7D1E2F;
  --oxblood: #5F1F28;
  --mulberry-red: #6E3042;

  /* cool tones */
  --mint-soft: #7EDBD4;
  --aqua: #1FFCFF;
  --seafoam: #98CFBE;
  --sage: #A8C3B0;
  --eucalyptus: #7FAE99;
  --teal-deep: #2F8F89;
  
  --mint-light: #74ddd1;
  --mint-mid: #3FB8AE;
  --mint-deep: #35A39A;

  /* golden / muted accents */
  --butter: #F3D36B;
  --ochre: #C79A2B;
  --sand: #E6D3B3;

  /* dark accents */
  --charcoal: #1D2A33;
  --mulberry: #7C4A5A;
  
  --line: rgba(37, 59, 75, 0.12);
  --shadow: 0 18px 50px rgba(37, 59, 75, 0.10);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(116, 221, 209, 0.25), transparent 28%),
    radial-gradient(circle at top right, rgba(237, 117, 112, 0.18), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, var(--mist) 46%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 59, 75, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 59, 75, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 72%);
  z-index: 0;
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-color: var(--coral);
}

.site-header,
.page-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(248, 251, 254, 0.76);
  border-bottom: 1px solid rgba(37, 59, 75, 0.08);
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--coral) 0%, var(--mint) 52%, var(--ink) 100%);
}

.nav-shell,
.page-shell,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.site-brand {
  position: relative;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.site-brand::before {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.6rem;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--coral), var(--mint));
  vertical-align: -0.08rem;
  box-shadow: 0 0 0 2px rgba(37, 59, 75, 0.10);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.nav-link {
  position: relative;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  font-size: 0.96rem;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(252, 239, 209, 0.7);
  box-shadow: 0 8px 20px rgba(37, 59, 75, 0.08);
  outline: none;
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--deep-teal));
  box-shadow: 0 10px 24px rgba(37, 59, 75, 0.18);
}

.page-shell {
  padding: 2.1rem 0 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(280px, 1fr);
  gap: clamp(1.2rem, 2vw, 2.6rem);
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 3.2rem;
}

.portrait-panel {
  position: relative;
  padding: 0.9rem;
  background: linear-gradient(180deg, rgba(252, 239, 209, 0.92), rgba(248, 251, 254, 0.92));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid rgba(37, 59, 75, 0.08);
  overflow: hidden;
}

.portrait-panel::before,
.portrait-panel::after {
  content: "";
  position: absolute;
  border-radius: 22px;
  z-index: 0;
}

.portrait-panel::before {
  width: 38%;
  height: 26%;
  right: -6%;
  top: -4%;
  background: var(--coral);
  opacity: 0.95;
}

.portrait-panel::after {
  width: 44%;
  height: 34%;
  left: -8%;
  bottom: -7%;
  background: var(--mint);
  opacity: 0.85;
}

.hero-headshot {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 38px rgba(37, 59, 75, 0.14);
}

.hero-copy {
  position: relative;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(37, 59, 75, 0.06);
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 2.6vw, 2.4rem);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--deep-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-subtitle,
.page-intro {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.lead {
  font-size: 1.1rem;
  max-width: 44rem;
}

.micro-note {
  margin-top: 1rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--mint);
  padding-left: 0.85rem;
}


.portrait-panel > p,
.button-row > p,
.chip-row > p,
.micro-note > p,
.callout > p {
  margin: 0;
}

.button-row > p,
.chip-row > p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip-row > p {
  gap: 0.5rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.button,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  /*border: 1px solid transparent;*/
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
  background: var(--bg, var(--ink));
  color: var(--fg, white);
  border: 1px solid var(--bd, transparent);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 59, 75, 0.12);
}

.button:hover,
a.button:hover,
.button:focus-visible,
a.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 59, 75, 0.14);
  outline: none;
}

/* generic color hooks */
.has-bg { background: var(--bg); }
.has-text { color: var(--fg); }
.has-border { border-color: var(--bd); }

/* generic object/button pattern */
.themeable {
  background: var(--bg, transparent);
  color: var(--fg, inherit);
  border: 1px solid var(--bd, transparent);
}

.bg-coral { --bg: var(--coral); }
.bg-mint { --bg: var(--mint); }
.bg-cream { --bg: var(--cream); }
.bg-mist { --bg: var(--mist); }
.bg-paper { --bg: var(--paper); }
.bg-sand { --bg: var(--sand); }
.bg-butter { --bg: var(--butter); }
.bg-ochre { --bg: var(--ochre); }

.bg-mint-light { --bg: var(--mint-light); }
.bg-mint-mid { --bg: var(--mint-mid); }
.bg-mint-deep { --bg: var(--mint-deep); }

.bg-ink { --bg: var(--ink); }
.bg-ink-soft { --bg: var(--ink-soft); }
.bg-slate { --bg: var(--slate); }
.bg-charcoal { --bg: var(--charcoal); }
.bg-deep-teal { --bg: var(--deep-teal); }
.bg-teal-deep { --bg: var(--teal-deep); }
.bg-aqua { --bg: var(--aqua); }
.bg-seafoam { --bg: var(--seafoam); }
.bg-sage { --bg: var(--sage); }
.bg-eucalyptus { --bg: var(--eucalyptus); }

.bg-red { --bg: var(--red); }
.bg-signal-red { --bg: var(--signal-red); }
.bg-scarlet { --bg: var(--scarlet); }
.bg-vermilion { --bg: var(--vermilion); }
.bg-tomato { --bg: var(--tomato); }
.bg-watermelon { --bg: var(--watermelon); }
.bg-salmon-red { --bg: var(--salmon-red); }
.bg-rose-red { --bg: var(--rose-red); }
.bg-dusty-rose { --bg: var(--dusty-rose); }
.bg-blush-red { --bg: var(--blush-red); }

.bg-peach { --bg: var(--peach); }
.bg-apricot { --bg: var(--apricot); }
.bg-terracotta { --bg: var(--terracotta); }
.bg-clay { --bg: var(--clay); }
.bg-brick { --bg: var(--brick); }
.bg-terracotta-red { --bg: var(--terracotta-red); }
.bg-clay-red { --bg: var(--clay-red); }
.bg-cinnamon-red { --bg: var(--cinnamon-red); }
.bg-rust-red { --bg: var(--rust-red); }

.bg-rose { --bg: var(--rose); }
.bg-blush { --bg: var(--blush); }
.bg-crimson { --bg: var(--crimson); }
.bg-cranberry { --bg: var(--cranberry); }
.bg-garnet { --bg: var(--garnet); }
.bg-oxblood { --bg: var(--oxblood); }
.bg-mulberry-red { --bg: var(--mulberry-red); }
.bg-mulberry { --bg: var(--mulberry); }
.bg-oxide { --bg: var(--oxide); }

/* text colors */
.text-ink { --fg: var(--ink); }
.text-paper { --fg: var(--paper); }
.text-white { --fg: white; }
.text-cream { --fg: var(--cream); }
.text-charcoal { --fg: var(--charcoal); }

/* border colors */
.border-coral { --bd: var(--coral); }
.border-mint { --bd: var(--mint); }
.border-ink { --bd: var(--ink); }
.border-red { --bd: var(--red); }
.border-scarlet { --bd: var(--scarlet); }
.border-crimson { --bd: var(--crimson); }
.border-garnet { --bd: var(--garnet); }
.border-sage { --bd: var(--sage); }
.border-aqua { --bd: var(--aqua); }
.border-cream { --bd: var(--cream); }

.button-primary {
  background: linear-gradient(135deg, var(--coral), #ff8c61);
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(37, 59, 75, 0.12);
}

.button-ghost {
  background: rgba(116, 221, 209, 0.16);
  border-color: rgba(57, 129, 132, 0.24);
}

.button-disabled {
  display: inline-flex;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  background: rgba(37, 59, 75, 0.08);
  color: rgba(37, 59, 75, 0.64);
  font-weight: 700;
}

.section-heading,
.page-shell h2 {
  position: relative;
  margin-top: 0;
  margin-bottom: 1rem;
  padding-top: 0.2rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.page-shell h2::after,
.section-heading::after {
  content: "";
  display: block;
  width: 5.5rem;
  height: 0.35rem;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--mint));
}

.page-shell h3 {
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.page-shell p,
.page-shell li {
  font-size: 1.02rem;
}

.page-shell ul,
.page-shell ol {
  padding-left: 1.1rem;
}

.page-shell hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.page-hero {
  margin-bottom: 2rem;
  padding: clamp(1.2rem, 2.3vw, 2rem);
  background: linear-gradient(140deg, rgba(252, 239, 209, 0.88), rgba(255, 255, 255, 0.90));
  border: 1px solid rgba(37, 59, 75, 0.07);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.card-grid,
.three-up,
.two-up,
.stacked-cards {
  display: grid;
  gap: 1rem;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stacked-cards {
  grid-template-columns: 1fr;
}

.feature-card,
.paper-card,
.course-card,
.software-card,
.other-card,
.note-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(37, 59, 75, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.15rem 1.1rem;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover,
.paper-card:hover,
.course-card:hover,
.software-card:hover,
.other-card:hover,
.note-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 129, 132, 0.22);
  box-shadow: 0 20px 50px rgba(37, 59, 75, 0.14);
}

.tone-coral {
  background:
    linear-gradient(180deg, rgba(237, 117, 112, 0.18), rgba(255, 255, 255, 0.92));
}

.tone-mint {
  background:
    linear-gradient(180deg, rgba(116, 221, 209, 0.18), rgba(255, 255, 255, 0.92));
}

.tone-cream {
  background:
    linear-gradient(180deg, rgba(252, 239, 209, 0.72), rgba(255, 255, 255, 0.96));
}

.tone-ink {
  background:
    linear-gradient(180deg, rgba(37, 59, 75, 0.96), rgba(57, 81, 98, 0.95));
  color: #f5f8fb;
}

.tone-ink a,
.tone-ink h3,
.tone-ink p,
.tone-ink li {
  color: #f5f8fb;
}

.kicker {
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--deep-teal);
}

.meta-line {
  display: block;
  margin-top: 0.15rem;
  margin-bottom: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.tone-ink .meta-line {
  color: rgba(245, 248, 251, 0.76);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.chip,
.chip-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(37, 59, 75, 0.08);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.tone-ink .chip,
.tone-ink .chip-link {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
}

.callout {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(116, 221, 209, 0.20), rgba(252, 239, 209, 0.85));
  border: 1px solid rgba(57, 129, 132, 0.14);
}

.cv-list {
  display: grid;
  gap: 1rem;
}

.cv-item {
  padding: 1rem 1.1rem;
  border-left: 5px solid var(--mint);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow);
}

.site-footer {
  padding-bottom: 2.5rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.site-footer p {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .hero-grid,
  .three-up,
  .two-up {
    grid-template-columns: 1fr;
  }

  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page-shell {
    padding-top: 1.4rem;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .page-shell,
  .site-footer {
    width: min(calc(100% - 1.2rem), var(--max-width));
  }

  .hero-copy,
  .page-hero,
  .feature-card,
  .paper-card,
  .course-card,
  .software-card,
  .other-card,
  .note-panel {
    padding: 1rem;
  }

  .nav-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.92rem;
  }
}

.inline-icon-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.inline-icon {
  width: 1.45em;
  height: 1.45em;
  fill: currentColor;
  flex: 0 0 auto;
  vertical-align: middle;
  transform: translateY(0.02em);
}


.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.github-link img {
  display: block;
}

.small-image {
  width: clamp(50px, 40vw, 440px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.soft-bevel {
  --cut: 14px;
  --soft: 6px;

  clip-path: polygon(
    calc(var(--cut) + var(--soft)) 0,
    calc(100% - var(--cut) - var(--soft)) 0,
    calc(100% - var(--soft)) var(--soft),
    100% calc(var(--cut) + var(--soft)),
    100% calc(100% - var(--cut) - var(--soft)),
    calc(100% - var(--soft)) calc(100% - var(--soft)),
    calc(100% - var(--cut) - var(--soft)) 100%,
    calc(var(--cut) + var(--soft)) 100%,
    var(--soft) calc(100% - var(--soft)),
    0 calc(100% - var(--cut) - var(--soft)),
    0 calc(var(--cut) + var(--soft)),
    var(--soft) var(--soft)
  );
}