@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 500;
  font-display: block;
  src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 500;
  font-display: block;
  src: url("/fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fbfbfb;
  --ink: #252524;
  --muted: #62625f;
  --line: #d7d7d1;
  --rule-section: var(--ink);
  --rule-divider: var(--line);
  --max: 1240px;
  --sans: "Source Sans 3", sans-serif;
  --fs-label: 0.75rem;
  --fs-body: 1rem;
  --fs-lede: clamp(1.1rem, 1.6vw, 1.25rem);
  --fs-display: clamp(2rem, 3.5vw, 3rem);
  /* Vertical spacing scale, in rem, so it scales with the type scale (fs-*)
     instead of drifting out of proportion when the root font size changes. */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px, = fs-body */
  --space-5: 1.5rem;   /* 24px */
  --space-6: 2rem;     /* 32px */
  --space-7: 3rem;     /* 48px */
  --space-8: 4rem;     /* 64px */
  --space-9: 6rem;     /* 96px */
  --space-10: 8rem;    /* 128px */
  --gutter: clamp(20px, 3vw, 36px);
  --section-top: clamp(var(--space-7), 6vw, var(--space-8));
  --section-bottom: clamp(var(--space-9), 10vw, var(--space-10));
  --layout-gap: clamp(var(--space-6), 4vw, var(--space-7));
}

* { box-sizing: border-box; }
html { visibility: visible; scroll-behavior: smooth; font-size: 110%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
img { max-width: 100%; display: block; }
p { text-wrap: pretty; orphans: 2; widows: 2; }
a { color: inherit; text-underline-offset: .25em; }
@keyframes page-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
main > section, .root-footer {
  animation: page-reveal .5s ease-out both;
}
main > section { scroll-margin-top: calc(var(--header-h, 96px) - 1px); }
main > section:nth-child(1) { animation-delay: .3s; }
main > section:nth-child(2) { animation-delay: .6s; }
main > section:nth-child(3) { animation-delay: .9s; }
.root-footer { animation-delay: 1.2s; }
.root-header, .root-footer {
  max-width: var(--max); margin: auto; padding: var(--space-5) var(--gutter); display: flex;
  justify-content: space-between; align-items: center; position: relative;
}
.root-header {
  padding-bottom: calc((var(--space-8) + var(--space-2)) / 2);
  position: sticky; top: 0; z-index: 10; background: var(--paper);
}
.root-header::after, .root-footer::before {
  content: ""; position: absolute; right: var(--gutter); left: var(--gutter); height: 2px;
}
.root-header::after { bottom: -2px; background: var(--rule-section); }
.root-footer::before { top: 0; background: var(--rule-divider); }
.root-header nav, .root-footer nav { display: flex; gap: var(--space-5); }
.root-header nav a, .root-footer a, .project-actions a {
  font-size: var(--fs-label); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
}
.root-header nav a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .4em; text-decoration-color: transparent; transition: text-decoration-color .15s ease; }
.root-header nav a.is-active { text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .root-header nav a:hover { text-decoration-color: currentColor; }
}
.project-actions a { font-size: var(--fs-body); }
.root-brand { display: flex; flex-direction: column; gap: var(--space-2); }
.root-wordmark { font-size: 1.44rem; font-weight: 500; letter-spacing: .01em; text-decoration: none; text-transform: capitalize; }
.root-brand p { max-width: 32ch; margin: 0; color: var(--muted); font-size: .875rem; font-weight: 400; line-height: 1.45; letter-spacing: 0; }
.root-brand p span { display: block; white-space: nowrap; }
.root-hero { max-width: var(--max); margin: auto; padding: var(--section-bottom) var(--gutter); }
.root-eyebrow {
  margin: 0 0 var(--space-5); color: var(--muted); font-size: var(--fs-label); font-weight: 400; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase;
}
.root-lede { max-width: 560px; margin: 0; color: var(--muted); font-size: var(--fs-lede); line-height: 1.65; }
.projects { max-width: var(--max); margin: auto; padding: 0 var(--gutter) var(--section-bottom); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; padding: var(--space-4) 0; border-top: 2px solid var(--rule-section); }
.root-about .section-heading { border-top: 0; }
.section-heading .root-eyebrow { margin: 0; }
.section-heading p { margin: 0; font-size: var(--fs-label); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.section-heading p { color: var(--muted); }
.project { display: grid; grid-template-columns: minmax(280px, 1.4fr) minmax(220px, .6fr); gap: clamp(var(--space-7), 7vw, var(--space-9)); padding: var(--space-5) 0 var(--space-8); align-items: start; }
.project + .project { border-top: 2px solid var(--rule-divider); }
.project-copy h3 { margin: 0 0 var(--space-5); font-size: clamp(1.667rem, 2.917vw, 2.5rem); font-weight: 400; line-height: 1; letter-spacing: -.04em; text-transform: capitalize; }
.project-copy h3 a { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; transition: text-decoration-color .15s ease; }
.project-copy h3 a:hover { text-decoration-color: currentColor; }
.project-copy > p:not(.project-tags) { max-width: 570px; margin: 0; color: var(--muted); font-size: var(--fs-body); line-height: 1.7; }
.project-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-6) 0 0; }
.project-tags span {
  color: var(--muted); font-size: .8rem; line-height: 1.4; letter-spacing: .02em;
}
.project-tags span:not(:last-child)::after { content: "·"; margin-left: var(--space-2); }
.project-meta { display: flex; flex-direction: column; gap: var(--space-5); }
.project-thumb { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 3px; }
.project-thumb a { display: block; width: 100%; height: 100%; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-actions { display: flex; flex-direction: column; align-items: center; width: max-content; max-width: 100%; margin-inline: auto; gap: var(--space-3); }
.project-actions a { display: inline-flex; align-items: center; gap: calc(var(--space-2) - 2px); border-bottom: 2px solid transparent; }
.project-meta:has(.project-thumb a:hover) .project-actions a { border-color: currentColor; }
.link-arrow { display:inline-block; width:12.5px; height:12.5px; flex:0 0 12.5px; position:relative; top:0.5px; }
.project-actions a:hover { border-color: currentColor; }
.root-about { max-width: var(--max); margin: auto; padding: 0 var(--gutter) var(--section-bottom); }
.root-about-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px, .8fr); gap: var(--layout-gap); align-items: start; padding-top: var(--space-5); }
.root-about-copy p { max-width: 620px; margin: 0 0 var(--space-4); color: var(--muted); font-size: var(--fs-body); line-height: 1.75; }
.root-about-copy p:last-child { margin-bottom: 0; }
.root-about-copy #about-title { margin-bottom: var(--space-5); color: var(--ink); font-size: var(--fs-lede); line-height: 1.5; text-transform: capitalize; }
.root-about-photo-frame { width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.root-about-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 50%; }
.root-connect { max-width: var(--max); margin: auto; padding: 0 var(--gutter) calc(var(--section-bottom) + var(--space-5)); }
.root-connect:target { min-height: 100vh; min-height: 100svh; }
.root-connect-body { padding-top: var(--space-5); }
.root-connect-body p { max-width: 620px; margin: 0; color: var(--muted); font-size: var(--fs-body); line-height: 1.75; }
.linkedin-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-top: var(--space-5); border: 2px solid currentColor; border-radius: 50%; color: var(--ink); text-decoration: none; transition: transform .15s ease; }
.linkedin-link svg { width: 20px; height: 20px; fill: currentColor; }
.linkedin-link:hover { transform: scale(1.05); }
.root-footer { align-items: baseline; font-size: var(--fs-label); }

@media (min-width: 761px) {
  .root-header { align-items: flex-start; }
  .root-brand { margin-top: var(--space-1); }
  .root-header nav { margin-top: 9px; }
  .project-actions { transform: translateX(2px); }
  .project-copy h3 a { text-decoration-color: transparent; }
}

@media (max-width: 760px) {
  html { scroll-behavior: smooth; font-size: 112.5%; }
  :root { --header-h: 142px; --section-bottom: var(--space-6); }
  body { padding-top: var(--header-h); }
  main > section,
  .root-footer { animation: none; }
  .root-header {
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;
    height: var(--header-h);
    isolation: isolate;
    width: 100%;
    max-width: none;
    align-items: flex-start;
    gap: var(--space-5);
  }
  .root-brand { min-width: 0; }
  .root-brand p { font-size: .75rem; }
  .root-header nav { flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: var(--space-3); margin: 9px 0 0 auto; }
  .project { grid-template-columns: 1fr; gap: var(--space-6); padding: var(--space-4) 0 var(--space-6); }
  .project-nation { padding-bottom: calc(var(--space-8) - 5px); }
  .root-about-body { grid-template-columns: 1fr; gap: var(--space-6); padding-top: var(--space-4); }
  .root-about-photo-frame { max-width: 280px; margin: 0 auto; }
  .root-connect-body { padding-top: var(--space-4); }
  .root-footer { align-items: baseline; }
}

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