:root {
  --bg: #edf5e3;
  --bg-soft: #e0edcf;
  --card: #f8fcf2;
  --ink: #24331d;
  --ink-soft: #54684a;
  --green: #3a6e2f;
  --sage: #79a557;
  --amber: #c98a2e;
  --amber-soft: #e8b458;
  --line: #cfe0b8;
  --shadow: 0 2px 14px rgba(54, 84, 40, 0.09);
  --glow: radial-gradient(
    circle at 50% 0%,
    rgba(232, 180, 88, 0.2),
    transparent 60%
  );
}
[data-theme="dark"] {
  --bg: #161022;
  --bg-soft: #1c142c;
  --card: #231a38;
  --ink: #ebe5f7;
  --ink-soft: #a79dc6;
  --green: #bda6ec;
  --sage: #8f7cc0;
  --amber: #e8b458;
  --amber-soft: #c98a2e;
  --line: #332750;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
  --glow: radial-gradient(
    circle at 50% 0%,
    rgba(184, 160, 232, 0.12),
    transparent 60%
  );
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  transition:
    background 0.35s,
    color 0.35s;
}
h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  line-height: 1.2;
}
a {
  color: var(--green);
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* nav */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1060px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.logo svg {
  width: 22px;
  height: 22px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--green);
}
#theme-btn {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 99px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--amber);
  transition: transform 0.2s;
  font-size: 1rem;
}
#theme-btn:hover {
  transform: rotate(20deg);
}

/* hero */
header {
  position: relative;
  background: var(--glow);
}
.hero {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 88px 24px 72px;
  max-width: 1060px;
  margin: 0 auto;
}
.hero-text {
  flex: 1.4;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--amber);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  margin-bottom: 10px;
}
.hero .role {
  font-size: 1.25rem;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 18px;
}
.hero p.bio {
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 28px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 99px;
  font-weight: 500;
  font-size: 0.95rem;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.btn-solid {
  background: var(--green);
  color: var(--bg);
}
.btn-outline {
  border: 1.5px solid var(--green);
  color: var(--green);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
}
.portrait {
  width: min(300px, 70vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 47% 53% 52% 48% / 50% 46% 54% 50%;
  border: 4px solid var(--card);
  box-shadow:
    0 0 0 2px var(--sage),
    0 14px 34px rgba(61, 74, 42, 0.18);
}
.socials {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  transition:
    color 0.2s,
    transform 0.2s;
}
.socials a:hover {
  color: var(--green);
  transform: translateY(-2px);
}
.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* section shells */
section {
  padding: 72px 0;
}
section:nth-of-type(even) {
  background: var(--bg-soft);
}
.sec-head {
  margin-bottom: 40px;
}
.sec-head h2 {
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sec-head h2 svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.sec-head p {
  color: var(--ink-soft);
  margin-top: 6px;
}

/* skills */
.skill-groups {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.skill-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.skill-card h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--green);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.chip {
  font-size: 0.85rem;
  padding: 5px 13px;
  border-radius: 99px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.chip:hover {
  border-color: var(--sage);
  color: var(--green);
}

/* experience timeline */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1.5px;
  background: var(--line);
}
.t-item {
  position: relative;
  padding-bottom: 38px;
}
.t-item:last-child {
  padding-bottom: 0;
}
.t-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--amber-soft);
  border: 2.5px solid var(--bg);
  box-shadow: 0 0 0 1.5px var(--amber);
}
.t-date {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}
.t-item h3 {
  font-size: 1.2rem;
  margin: 4px 0 2px;
}
.t-org {
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 10px;
}
.t-item ul {
  list-style: none;
  color: var(--ink-soft);
}
.t-item li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}
.t-item li::before {
  content: "❧";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-size: 0.85rem;
}

/* projects */
.proj-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.proj {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.proj:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(61, 74, 42, 0.14);
}
.proj-img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.proj-ph {
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg-soft), var(--bg));
  font-size: 2.6rem;
}
.proj-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.proj h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.proj .stack {
  font-size: 0.8rem;
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.proj p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  flex: 1;
}

/* leadership */
.lead-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.lead-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.lead-card .t-date {
  display: block;
  margin-bottom: 4px;
}
.lead-card h3 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.lead-card .t-org {
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.lead-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 60px 24px 40px;
  text-align: center;
  background: var(--glow);
}
footer h2 {
  font-family: "Fraunces", serif;
  font-size: 1.9rem;
  margin-bottom: 10px;
}
footer p {
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 auto 24px;
}
.foot-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 44px;
  opacity: 0.75;
}
.foot-note span {
  color: var(--amber);
}

@media (max-width: 760px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 56px;
    gap: 34px;
  }
  .hero-cta,
  .socials,
  .kicker {
    justify-content: center;
  }
  .kicker::before {
    display: none;
  }
  .nav-links a:not(:last-child) {
    display: none;
  }
  .nav-links {
    gap: 12px;
  }
}
