:root {
  --mist: #eef2f1;
  --mist-2: #f6f8f7;
  --fjord: #3e6a7a;
  --fjord-dark: #2f5462;
  --moss: #7c9a6b;
  --moss-dark: #5f7d50;
  --sand: #e8d9c0;
  --text: #22313a;
  --body: #43545e;
  --muted: #6a7a82;
  --card: #ffffff;
  --line: #dbe4e0;

  --serif: "Young Serif", Georgia, serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --shadow: 0 1px 2px rgb(34 49 58 / .05), 0 14px 30px -18px rgb(34 49 58 / .35);

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mist-2);
  color: var(--body);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3, h4 { color: var(--text); }

:focus-visible { outline: 2px solid var(--fjord); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 28px; }

.skip {
  position: absolute; left: 16px; top: -52px; z-index: 20;
  padding: 8px 14px; border-radius: 12px;
  background: var(--fjord); color: #fff; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* top bar */

.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--mist) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { color: var(--text); font: 400 22px var(--serif); text-decoration: none; white-space: nowrap; }
nav { display: flex; gap: 4px; }
nav a {
  padding: 6px 12px; border-radius: 12px;
  color: var(--fjord); font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background .2s;
}
nav a:hover { background: #fff; }

/* hero */

.hero { position: relative; background: var(--mist); overflow: hidden; }
.hero-inner { position: relative; z-index: 1; padding-block: 96px 190px; }
.hello { margin: 0 0 4px; color: var(--fjord); font-weight: 700; font-size: 18px; }
h1 {
  margin: 0 0 20px;
  font: 400 clamp(3.4rem, 9vw, 6.5rem)/1 var(--serif);
  letter-spacing: -.01em;
}
.lede { max-width: 34em; margin: 0; font-size: 1.2rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center;
  padding: 12px 22px; border-radius: 14px;
  background: var(--moss); color: #fff;
  font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 20px -12px rgb(95 125 80 / .8);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--moss-dark); transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--fjord); box-shadow: var(--shadow); }
.btn.ghost:hover { background: #fff; color: var(--fjord-dark); }

.hills { position: absolute; left: 0; bottom: -1px; width: 100%; height: 180px; }

/* sections */

.section { padding-block: 64px; }
.section h2 { margin: 0 0 24px; font: 400 clamp(2rem, 4vw, 2.6rem)/1.1 var(--serif); }

.intro { max-width: 40em; margin: 0 0 32px; font-size: 1.1rem; }

.focus {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  margin: 0; padding: 0; list-style: none;
}
.focus li { padding: 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.focus .dot { display: block; width: 14px; height: 14px; margin-bottom: 14px; border-radius: 50%; background: var(--moss); }
.focus li:nth-child(2) .dot { background: var(--fjord); }
.focus li:nth-child(3) .dot { background: var(--sand); }
.focus h3 { margin: 0 0 6px; font: 700 18px/1.35 var(--sans); }
.focus p { margin: 0; font-size: 16px; }

/* experience timeline */

.timeline { margin: 0; padding: 0 0 0 28px; list-style: none; border-left: 2px solid var(--line); }
.org { position: relative; margin-bottom: 22px; padding: 24px 26px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.org:last-child { margin-bottom: 0; }
.org::before {
  content: ""; position: absolute; left: -39px; top: 30px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--moss); border: 4px solid var(--mist-2);
}
.org-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 6px; }
.org-head h3 { margin: 0; font: 400 24px/1.25 var(--serif); }
.place { color: var(--muted); font-size: 15px; }

.role { padding: 14px 0 4px; border-top: 1px solid var(--line); margin-top: 12px; }
.org-head + .role { border-top: 0; margin-top: 0; padding-top: 6px; }
.when {
  display: inline-block; margin-bottom: 6px; padding: 2px 12px; border-radius: 999px;
  background: var(--sand); color: #5c4a2c; font-size: 13px; font-weight: 700;
}
.role h4 { margin: 0 0 4px; font: 700 18px/1.35 var(--sans); }
.role p { margin: 0; font-size: 16px; }

/* education */

.edu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { padding: 26px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.card h3 { margin: 4px 0 6px; font: 400 24px/1.25 var(--serif); }
.degree { margin: 0 0 12px; }
.grade { display: inline-block; margin: 0; color: var(--moss-dark); font-weight: 700; }

/* contact */

.contact { padding-bottom: 96px; }
.contact-card {
  padding: 48px 40px; border-radius: 28px;
  background: var(--fjord); color: #e4eef0; text-align: center;
  box-shadow: 0 24px 50px -28px rgb(47 84 98 / .8);
}
.contact-card h2 { color: #fff; margin-bottom: 8px; }
.contact-card p { margin: 0 0 22px; }
.linkedin {
  display: inline-block; padding: 12px 26px; border-radius: 16px;
  background: #fff; color: var(--fjord-dark);
  font: 400 clamp(1.15rem, 3vw, 1.5rem) var(--serif); text-decoration: none;
  transition: transform .2s;
}
.linkedin:hover { transform: translateY(-2px); }

.footer { padding-block: 0 40px; color: var(--muted); font-size: 14px; text-align: center; }

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

@media (max-width: 820px) {
  .focus { grid-template-columns: minmax(0, 1fr); }
  .edu { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  body { font-size: 16px; }
  nav { gap: 0; }
  nav a { padding: 6px 7px; font-size: 14px; }
  nav a[href="#education"] { display: none; }
  .brand { font-size: 19px; }
  .hero-inner { padding-block: 64px 150px; text-align: center; }
  .lede { margin-inline: auto; }
  .cta { justify-content: center; }
  .hills { height: 130px; }
  .section { padding-block: 48px; }
  .timeline { padding-left: 20px; }
  .org { padding: 20px; }
  .org::before { left: -31px; }
  .contact-card { padding: 36px 20px; }
}

