:root {
  color-scheme: light;
  --ink: #161718;
  --muted: #666a6a;
  --line: #e9e9e7;
  --canvas-color: #f7f1f3;
  --header-height: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 10px;
  left: 16px;
  padding: 12px 18px;
  background: #fff;
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(28px, 5.2vw, 104px);
  background: var(--canvas-color);
  transition: background-color 1.5s ease;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 39px;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
  text-decoration: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 45px);
}

.primary-nav a,
.primary-nav .nav-disabled {
  padding: 12px 0;
  font-size: clamp(16px, 1.12vw, 20px);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav .nav-disabled { color: #6c7170; cursor: not-allowed; }

.primary-nav a:hover,
.primary-nav a:focus-visible { text-decoration: underline; text-underline-offset: 7px; }

.menu-toggle { display: none; }

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  background: var(--canvas-color);
  border-radius: 0 0 28px 28px;
  transition: background-color 1.5s ease;
}

.hero-inner {
  width: 60%;
  margin: 0 0 0 20%;
  padding: calc(var(--header-height) + 20px) 0 95px;
}

.hero-copy h1,
.hero-copy h2,
.hero-copy h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.072em;
  line-height: 1.06;
  white-space: nowrap;
}

.hero-copy h1 { font-size: clamp(78px, 9vw, 176px); }
.hero-copy h2 { margin-top: 0.12em; font-size: clamp(70px, 7.9vw, 154px); }
.hero-copy h3 { margin-top: 0.14em; font-size: clamp(60px, 6.65vw, 130px); }

.social-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-social {
  position: absolute;
  bottom: 34px;
  left: clamp(28px, 5.2vw, 104px);
}

.social-link {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.social-link svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

a.social-link { text-decoration: none; }
a.social-link:hover { background: rgb(255 255 255 / 55%); border-color: rgb(22 23 24 / 12%); transform: translateY(-2px); }
.social-link.is-disabled { color: #565d5a; cursor: default; }

.scroll-cue {
  position: absolute;
  right: clamp(28px, 5.2vw, 104px);
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.6; }

.content-section {
  min-height: 68svh;
  scroll-margin-top: var(--header-height);
  background: #fff;
}

.section-inner {
  width: min(100% - 12vw, 1040px);
  margin: 0 auto;
}

.about-section { min-height: 100svh; }
.about-inner {
  width: 52%;
  max-width: 1040px;
  padding-top: clamp(95px, 11vh, 150px);
  padding-bottom: 140px;
}

.avatar {
  display: block;
  width: clamp(160px, 12vw, 220px);
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 25px;
  border: 1px solid #e5e3df;
  border-radius: 50%;
  background: #f7f5f1;
}

.section-eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.content-section > .section-inner > h2 {
  margin: 0;
  font-size: clamp(56px, 6vw, 94px);
  font-weight: 570;
  letter-spacing: -0.067em;
  line-height: 1.04;
}

.about-section > .section-inner > h2 {
  font-size: clamp(42px, 3.3vw, 62px);
  font-weight: 700;
  letter-spacing: -0.048em;
}

.markdown-copy {
  max-width: 860px;
  margin-top: 30px;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.035em;
  line-height: 1.4;
}

.markdown-copy p { margin: 0 0 1em; }
.markdown-copy p:last-child { margin-bottom: 0; }
.markdown-copy a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.markdown-copy ul, .markdown-copy ol { padding-left: 1.3em; }
.markdown-copy h3 { font-size: 1.1em; font-weight: 600; }
.markdown-copy h2 { font-size: 1.3em; font-weight: 600; letter-spacing: -0.04em; }

.about-copy {
  max-width: none;
  margin-top: 18px;
  color: #222322;
  font-size: clamp(18px, 1.35vw, 27px);
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.about-copy p { margin-bottom: 0.72em; }
.about-social { gap: 10px; margin-top: 25px; }
.about-social .social-link { width: 48px; height: 48px; }
.about-social .social-link svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
  stroke: none;
}
.about-social a.social-link:hover { background: #f2f3f1; }

.simple-section { border-top: 1px solid var(--line); }
.simple-section .section-inner { padding-top: clamp(130px, 16vh, 200px); padding-bottom: 140px; }
.simple-section .markdown-copy { color: #6a6d6c; }

.education-list {
  display: grid;
  gap: 44px;
  margin-top: 58px;
}

.education-entry {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: start;
  gap: 30px;
}

.education-logo {
  display: flex;
  width: 100px;
  height: 100px;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.education-logo img { width: 84px; height: 84px; object-fit: contain; }
.education-details h3 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.18; }
.education-details p { margin: 8px 0 0; }
.education-degree { color: #8a897f; font-size: clamp(22px, 2vw, 29px); line-height: 1.26; }
.education-date { color: #bd7153; font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: 0.01em; }
.education-date strong { display: inline-block; margin-left: 12px; color: #6e7d72; font-size: 0.74em; font-weight: 600; vertical-align: 0.06em; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(28px, 5.2vw, 104px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 800px) {
  :root { --header-height: 76px; }
  .site-header { padding: 0 24px; }
  .wordmark { font-size: 34px; }
  .menu-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span { width: 23px; height: 2px; background: var(--ink); transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .primary-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    background: var(--canvas-color);
    box-shadow: 0 18px 24px rgb(0 0 0 / 7%);
    transition: background-color 1.5s ease;
  }
  .primary-nav[data-open="true"] { display: flex; }
  .primary-nav a,
  .primary-nav .nav-disabled { padding: 12px 0; font-size: 20px; }
  .hero { border-radius: 0 0 18px 18px; }
  .hero-inner { width: calc(100% - 48px); margin: 0 auto; padding: 100px 0 96px; transform: none; }
  .hero-copy h1 { font-size: clamp(58px, 10.8vw, 86px); }
  .hero-copy h2 { font-size: clamp(51px, 9.4vw, 75px); }
  .hero-copy h3 { font-size: clamp(42px, 7.6vw, 66px); white-space: normal; }
  .hero-social { left: 24px; bottom: 21px; }
  .scroll-cue { right: 24px; bottom: 34px; }
  .section-inner { width: calc(100% - 48px); }
  .about-inner { width: calc(100% - 48px); max-width: 650px; padding-top: 110px; padding-bottom: 120px; }
  .simple-section .section-inner { padding-top: 130px; padding-bottom: 110px; }
}

@media (max-width: 480px) {
  .hero-copy h1 { font-size: clamp(56px, 12.2vw, 68px); }
  .hero-copy h2 { font-size: clamp(48px, 10.6vw, 60px); }
  .hero-copy h3 { font-size: clamp(38px, 9vw, 48px); letter-spacing: -0.065em; }
  .hero-social { bottom: 18px; }
  .social-link { width: 44px; height: 44px; }
  .social-link svg { width: 25px; height: 25px; }
  .avatar { margin-bottom: 28px; }
  .section-eyebrow { margin-bottom: 18px; }
  .content-section > .section-inner > h2 { font-size: 54px; }
  .about-section > .section-inner > h2 { font-size: 43px; }
  .about-copy { font-size: 18px; }
  .about-social .social-link { width: 44px; height: 44px; }
  .about-social .social-link svg { width: 34px; height: 34px; }
  .education-list { gap: 36px; margin-top: 42px; }
  .education-entry { grid-template-columns: 70px minmax(0, 1fr); gap: 18px; }
  .education-logo { width: 70px; height: 70px; }
  .education-logo img { width: 60px; height: 60px; }
  .education-details h3 { font-size: 22px; }
  .education-degree { font-size: 18px; }
  .education-date { font-size: 17px; }
  .site-footer { padding: 30px 24px; }
}

@media (max-width: 360px) {
  .scroll-cue span { display: none; }
}

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