@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --paper: #fbf5da;
  --ink: #16274d;
  --muted: #5a6478;
  --sky: #8fbee6;
  --line: #ece2ba;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", -apple-system, system-ui, sans-serif;
  --text-hero: clamp(3rem, 12vw, 6rem);
  --text-heading: clamp(1.8rem, 6vw, 2.6rem);
  --text-tagline: clamp(1.1rem, 3.5vw, 1.4rem);
  --wrap-max: 720px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration-color: var(--sky); text-decoration-thickness: 3px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; }

/* layout */
.wrap { max-width: var(--wrap-max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; border-top: 1px solid var(--line); }
.section.hero { padding: 7rem 0 5rem; border-top: none; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,245,218,0.88);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--wrap-max); margin: 0 auto; padding: 0 1.5rem; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-family: var(--display); font-weight: 500; font-size: 1.1rem; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; padding-bottom: 2px; }
.nav-brand.active { border-bottom-color: var(--sky); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-link { font-family: var(--body); font-weight: 500; font-size: 0.95rem; color: var(--ink); text-decoration: none; padding-bottom: 2px; border-bottom: 3px solid transparent; transition: border-color 0.15s ease; }
.nav-link:hover { border-bottom-color: var(--ink); }
.nav-link.active { border-bottom-color: var(--sky); }

/* type */
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.25rem; }
.hero-name { font-family: var(--display); font-weight: 500; font-size: var(--text-hero); line-height: 0.98; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.case-title { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1.02; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.h-section { font-family: var(--display); font-weight: 500; font-size: var(--text-heading); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.tagline { font-size: var(--text-tagline); color: var(--muted); max-width: 40ch; margin: 1.5rem 0 0; }
.lede { font-size: 1.15rem; margin: 0; }
.lede + .lede { margin-top: 1.25rem; }

/* underline links */
.ulink { color: var(--ink); text-decoration: none; font-weight: 500; padding-bottom: 2px; border-bottom: 3px solid var(--sky); transition: border-color 0.15s ease; }
.ulink:hover { border-bottom-color: var(--ink); }
.link-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.25rem; }

/* cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.card { border-top: 3px solid var(--sky); padding-top: 1rem; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; margin: 0 0 0.4rem; color: var(--ink); }
.card p { color: var(--muted); margin: 0; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.project-card { display: block; text-decoration: none; color: var(--ink); padding-top: 1.1rem; border-top: 3px solid var(--sky); transition: transform 0.15s ease; }
.project-card:hover { transform: translateY(-3px); }
.project-card .kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.project-card h3 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; margin: 0 0 0.5rem; line-height: 1.15; }
.project-card h3 span { border-bottom: 3px solid transparent; transition: border-color 0.15s ease; padding-bottom: 2px; }
.project-card:hover h3 span { border-bottom-color: var(--sky); }
.project-card p { color: var(--muted); margin: 0 0 0.9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { font-size: 0.78rem; color: var(--muted); padding: 0.25rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; }

/* experience */
.exp-list { display: flex; flex-direction: column; gap: 2.5rem; }
.exp-item { display: grid; gap: 0.5rem; padding-top: 1.25rem; border-top: 3px solid var(--sky); }
.exp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.exp-role { font-family: var(--display); font-weight: 500; font-size: 1.4rem; margin: 0; color: var(--ink); }
.exp-dates { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.exp-org { font-size: 1rem; color: var(--ink); font-weight: 500; }
.exp-org .loc { color: var(--muted); font-weight: 400; }
.exp-org .current { margin-left: 0.6rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--sky); }
.exp-item p { color: var(--muted); margin-top: 0.25rem; }

/* skills */
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill-tag { display: inline-block; font-size: 0.82rem; font-weight: 500; color: var(--ink); padding: 0.3rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; }

/* metrics */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; }
.metric-value { font-family: var(--display); font-weight: 500; font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.metric-label { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.35; }

/* case body */
.case-body { display: flex; flex-direction: column; gap: 2.75rem; }
.case-body ul { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.case-body li { margin-bottom: 0.4rem; }
blockquote.pull { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.3; letter-spacing: -0.01em; }
.quote-attr { color: var(--muted); margin-top: 1rem; }

/* gallery */
.gallery { display: flex; flex-direction: column; gap: 2.5rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; display: block; border: 1px solid var(--line); background: #fff; }
.gallery figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }

/* hero avatar */
.hero-head { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.avatar { width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--sky); background-color: #fff; background-image: url("assets/headshot.png"); background-repeat: no-repeat; background-position: 50% 30%; background-size: 72%; }

/* footer */
.site-footer { padding: 2.5rem 0 3.5rem; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--wrap-max); margin: 0 auto; padding: 0 1.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }

@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* entrance animation */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .section { animation: rise 0.7s ease both; }
  .section:nth-of-type(2) { animation-delay: 0.08s; }
  .section:nth-of-type(3) { animation-delay: 0.16s; }
  .section:nth-of-type(4) { animation-delay: 0.24s; }
  .section:nth-of-type(5) { animation-delay: 0.32s; }
  .section:nth-of-type(6) { animation-delay: 0.40s; }
}
