@font-face {
  font-family: Inter;
  src: url("assets/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --page: #f2f5f5;
  --white: #fff;
  --ink: #172729;
  --muted: #485c5f;
  --accent: #075e58;
  --accent-dark: #063d39;
  --tint: #dbece8;
  --line: #cddbd9;
  --radius: 1.25rem;
  --shadow: 0 12px 34px #1d48420c;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1rem/1.6 Inter, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; width: 1.4rem; height: 1.4rem; }
h1, h2, h3, p, figure { margin: 0; }
.shell { width: min(calc(100% - 5rem), 74rem); margin-inline: auto; }

:focus-visible { outline: 3px solid #008778; outline-offset: 4px; }
.skip-link {
  position: fixed;
  z-index: 5;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 2; top: 0; background: var(--page); border-bottom: 1px solid var(--line); }
.header-content, .brand, .nav, .site-footer .shell { display: flex; align-items: center; }
.header-content { min-height: 4.75rem; justify-content: space-between; gap: 1rem; }
.brand { flex: none; gap: .65rem; font-weight: 700; }
.monogram {
  display: grid;
  place-items: center;
  width: 2.4rem;
  aspect-ratio: 1;
  border-radius: .62rem;
  background: var(--accent-dark);
  color: var(--white);
  font-size: .9rem;
  letter-spacing: -.035em;
}
.nav { gap: clamp(.5rem, 2vw, 1.6rem); }
.nav a { display: grid; align-items: center; min-height: 2.75rem; font-size: .875rem; font-weight: 600; }
.nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .3em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.kicker, .work-kicker { color: var(--accent); font-size: .875rem; font-weight: 700; }
h1 { margin-top: .4rem; font-size: clamp(3.2rem, 6.35vw, 6.1rem); line-height: .98; letter-spacing: -.075em; }
h1 span { display: block; color: var(--accent); }
.role { max-width: 24ch; margin-top: 1rem; font-size: clamp(1.22rem, 2.7vw, 2rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.18; }
.bio { max-width: 34rem; margin-top: .9rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  font-size: .9375rem;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
  transition: color .16s, background .16s, border-color .16s;
}
.button-primary { background: var(--accent); color: var(--white); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary, .work-button-light { border-color: #96bbb4; color: var(--accent-dark); background: var(--white); }
.button-secondary:hover, .work-button-light:hover { background: var(--tint); border-color: var(--accent); }

.portrait { width: min(100%, 27rem); justify-self: end; }
.portrait-stage { position: relative; display: grid; align-items: end; justify-items: center; isolation: isolate; }
.portrait-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 22% 0 0;
  border: 1px solid #c8ded9;
  border-radius: 2rem 2rem .9rem .9rem;
  background: radial-gradient(ellipse at 30% 25%, #f2fbf8, #c7e2dc);
  box-shadow: var(--shadow);
}
.portrait img { width: 100%; border-radius: 0 0 .9rem .9rem; }

.section { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5.8vw, 4.65rem); }
.section[id], .legacy-anchor { scroll-margin-top: 5.25rem; }
.legacy-anchor { display: block; }
.section-heading { margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 5vw, 3.65rem); line-height: 1.05; letter-spacing: -.061em; }
.section-heading p { margin-top: .625rem; color: var(--muted); }
.project-grid, .service-grid, .resume-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.work-feature, .work-card, .service-card, .resume-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.work-feature, .work-card { overflow: hidden; }
.work-feature-photo, .work-card-photo { aspect-ratio: 2.12; background: var(--tint); overflow: hidden; }
.work-feature-photo img, .work-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.work-feature-photo img { object-position: center 49%; }
.work-feature-body, .work-card-body, .service-card, .resume-card { padding: clamp(1.15rem, 2.65vw, 1.75rem); }
h3 { font-size: clamp(1.2rem, 2.35vw, 1.55rem); letter-spacing: -.035em; line-height: 1.17; }
.work-kicker + h3 { margin-top: .2rem; }
.work-feature-body h3 + p, .work-card-body h3 + p { margin-top: .5rem; color: var(--muted); }
.work-metrics { display: flex; gap: 1.25rem; margin: .85rem 0 0; }
.work-metrics div { display: flex; align-items: baseline; flex-direction: row-reverse; gap: .35rem; color: var(--muted); font-size: .875rem; }
.work-metrics dd { margin: 0; color: var(--accent); font-weight: 700; font-size: 1rem; }

.service-card { display: flex; flex-direction: column; align-items: flex-start; }
.service-icon, .link-icon { display: grid; place-items: center; flex: none; width: 2.55rem; height: 2.55rem; border-radius: .6rem; background: var(--tint); color: var(--accent-dark); }
.service-icon { margin-bottom: .875rem; }
.service-card ul { padding-left: 1.1rem; margin: .65rem 0 1.1rem; color: var(--muted); }
.service-card li + li { margin-top: .2rem; }
.service-card .button { margin-top: auto; }
.resume-card ul, .link-grid { padding: 0; margin: 0; list-style: none; }
.resume-card li { display: grid; padding-block: .65rem; }
.resume-card li + li { border-top: 1px solid var(--line); }
.resume-card li span { color: var(--muted); }

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.25rem, 4vw, 3rem);
  background: var(--accent-dark);
  color: var(--white);
  border-radius: var(--radius);
}
.contact-panel p { max-width: 33ch; margin-top: .625rem; color: #e1efec; }
.button-contact { margin-top: 1.15rem; background: #d7f3ed; color: var(--accent-dark); }
.button-contact:hover { background: var(--white); }
.contact-panel :focus-visible { outline-color: #a6f6e6; }
.link-grid { display: grid; gap: .55rem; }
.link-card { display: flex; align-items: center; gap: .65rem; min-height: 3.6rem; padding: .425rem .55rem; border: 1px solid #ffffff55; border-radius: .7rem; }
.link-card:hover { background: #ffffff1a; }
.link-copy { min-width: 0; line-height: 1.33; }
.link-copy strong, .link-copy > span { display: block; }
.link-copy > span { color: #e1efec; font-size: .875rem; overflow-wrap: anywhere; }

.site-footer { padding-block: 1rem 1.5rem; color: var(--muted); font-size: .875rem; }
.site-footer .shell { justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.site-footer a { display: grid; align-items: center; min-height: 2.75rem; }

@media (max-width: 49rem) {
  .shell { width: calc(100% - 2rem); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); }
}

@media (max-width: 38rem) {
  .header-content { flex-wrap: wrap; justify-content: flex-start; gap: .125rem; padding-top: .5rem; }
  .nav { width: 100%; justify-content: space-between; gap: .25rem; }
  .section[id], .legacy-anchor { scroll-margin-top: 6rem; }
  .hero { grid-template-columns: minmax(0, 1fr) clamp(5.25rem, 27vw, 9.75rem); gap: .7rem .875rem; }
  .intro { display: contents; }
  .hero .kicker, .hero h1, .hero .role { grid-column: 1; }
  .hero h1 { margin: 0; font-size: clamp(2.35rem, 9vw, 3.6rem); }
  .hero .role { margin: 0; }
  .hero .bio, .hero .actions { grid-column: 1 / -1; }
  .hero .bio { margin-top: .25rem; }
  .hero .actions { margin-top: .4rem; }
  .hero .actions .button { flex: 1 1 auto; padding-inline: .6rem; }
  .portrait { grid-area: 1 / 2 / 4; width: 100%; align-self: center; }
  .portrait-stage::before { border-radius: .85rem .85rem .4rem .4rem; }
  .portrait img { border-radius: 0 0 .4rem .4rem; }
  .project-grid, .service-grid, .resume-grid, .contact-panel { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
