@font-face {
  font-family: Barlow;
  src: url("./fonts/barlow-400.woff2?v=b0a8ad37ac45") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("./fonts/barlow-600.woff2?v=4b52ddd4836b") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("./fonts/barlow-700.woff2?v=2d797dd8b35d") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("./fonts/barlow-condensed-600.woff2?v=215a93c696f4") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fahkwang";
  src: url("./fonts/fahkwang-600.woff2?v=e8c687ef9712") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/ibm-plex-mono-400.woff2?v=08949f728dc5") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Radley;
  src: url("./fonts/radley-latin-400.woff2?v=e4fa9beb625d") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #181916;
  --ink: #f4efe6;
  --body: #c2c3b9;
  --soft: #a3a59b;
  --line: #393b33;
  --line-soft: #30322b;
  --ember: #ffa46b;
  --display: "Fahkwang", "Trebuchet MS", sans-serif;
  --brand: "Barlow Condensed", "Arial Narrow", sans-serif;
  --subheading: Radley, Georgia, serif;
  --sans: "Barlow", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gut: clamp(1.2rem, 6vw, 6.75rem);
  --header: 4.55rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); scroll-padding-top: calc(var(--header) + env(safe-area-inset-top) + 1rem); }
body {
  margin: 0;
  min-width: 0;
  background-color: var(--ground);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.08rem;
  line-height: 1.57;
  -webkit-font-smoothing: antialiased;
}
::selection { color: #161713; background: #ffb982; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ember); outline-offset: 5px; border-radius: 2px; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { color: var(--ink); }
.wrap { width: min(100% - 2 * max(var(--gut), env(safe-area-inset-left), env(safe-area-inset-right)), 75rem); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 20;
  inset: .6rem auto auto .6rem;
  padding: .55rem 1rem;
  transform: translateY(-160%);
  color: var(--ground);
  background: var(--ember);
  font-weight: 600;
}
.skip:focus { transform: none; }
.brand-cluster { display: flex; align-items: center; gap: clamp(1rem, 2.8vw, 2.5rem); }
.motion-switch:not([hidden]) {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  padding: 0 .3rem; color: var(--soft); background: transparent; border: 0;
  font: 400 .74rem/1.2 var(--mono); cursor: pointer;
}
.motion-switch span { color: var(--ink); }
.motion-switch::before {
  content: ""; width: .44rem; height: .44rem; border-radius: 50%;
  background: var(--soft);
}
.motion-switch[aria-checked="true"]::before { background: var(--ember); box-shadow: 0 0 6px #ff853a80; }
.motion-switch:hover { color: var(--ink); }
.motion-switch:focus-visible { outline: 2px solid var(--ember); outline-offset: 1px; }

.masthead {
  position: sticky;
  z-index: 10;
  top: 0;
  padding-top: env(safe-area-inset-top);
  background: #181916ed;
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.bar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .52rem;
  width: fit-content;
  white-space: nowrap;
  color: var(--ink);
  font: 600 1.65rem/1 var(--brand);
  letter-spacing: -.022em;
}
.mark, .wordmark img {
  display: block;
  width: auto;
  height: 2.15rem;
  flex: none;
  object-fit: contain;
}
.section-nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.7rem); }
.section-nav a {
  display: grid;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 44px;
  min-width: 44px;
  color: var(--body);
  font: 400 .81rem/1.2 var(--mono);
}
.section-nav a::after {
  content: "";
  position: absolute;
  height: 1px;
  background: var(--ember);
  bottom: .38rem;
  inset-inline: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.section-nav a:is(:hover, :focus-visible, [aria-current="location"]) { color: var(--ink); }
.section-nav a:is(:hover, :focus-visible, [aria-current="location"])::after { transform: scaleX(1); }

.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: start;
  min-height: clamp(34rem, 66svh, 48rem);
  padding-top: clamp(3.75rem, 8svh, 6.25rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0;
  background: radial-gradient(ellipse at 68% 73%, #b8763d1c, transparent 49%);
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: clamp(1.05rem, 2vw, 1.55rem);
  color: var(--soft);
  font: 400 .73rem/1.4 var(--mono);
  letter-spacing: .075em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 1.85rem;
  height: 1px;
  background: var(--ember);
}
h1 {
  font: 600 clamp(3.8rem, 7.25vw, 7.1rem) / .96 var(--display);
  letter-spacing: -.064em;
}
.period { color: var(--ember); }
.intro {
  margin-top: clamp(1.1rem, 2vw, 1.8rem);
  font-size: clamp(1.13rem, 1.65vw, 1.57rem);
  line-height: 1.48;
}
.hero-tagline { text-wrap: balance; }
.hero-tagline span { display: inline-block; }
.hero-art {
  position: absolute;
  inset: auto 0 0;
  pointer-events: none;
  height: clamp(16.75rem, min(26vw, 48svh), 33rem);
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 96%, transparent);
}
.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 12%;
}
#about { border-top: 0; }

.chapter {
  display: grid;
  grid-template-columns: minmax(12rem, .71fr) minmax(0, 1.29fr);
  gap: clamp(2.5rem, 7vw, 8rem);
  padding-block: clamp(3.35rem, 7vw, 7rem);
  border-top: 1px solid var(--line);
}
.section-head, .section-body, .repo { min-width: 0; }
.section-head h2 {
  font: 600 clamp(2.1rem, 3.55vw, 3.65rem)/1.04 var(--display);
  letter-spacing: -.052em;
}
.section-head p {
  margin-top: 1rem;
  max-width: 30ch;
  color: var(--soft);
  line-height: 1.5;
}
.section-body { padding-top: .23rem; }
.section-body article h3 {
  font: 400 clamp(1.5rem, 1.9vw, 1.95rem)/1.15 var(--subheading);
  letter-spacing: -.022em;
  text-wrap: pretty;
}
.work-note p, .repo p, .highlight-list article p, .experience-list article p:not(.role-date) {
  margin-top: .63rem;
  max-width: 64ch;
  line-height: 1.56;
  text-wrap: pretty;
}
.certs {
  display: grid;
  grid-template-columns: minmax(7rem, .65fr) minmax(0, 1.35fr);
  gap: 1rem 1.65rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}
.certs h3, .repo-lang, .repo-meta {
  color: var(--soft);
  font: 400 .75rem/1.6 var(--mono);
  letter-spacing: .015em;
}
.certs h3 { margin-top: .1rem; }
.certs ul { display: grid; gap: .22rem; list-style: none; padding: 0; }
.certs li { color: var(--ink); font-size: .95rem; }
.repo { padding-block: 1.5rem; }
.repo:first-child { padding-top: 0; }
.repo + .repo { border-top: 1px solid var(--line-soft); }
.repo-top { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; }
.repo-top h3 { min-width: 0; overflow-wrap: anywhere; }
.repo-top a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .24em; }
.repo-top a:is(:hover,:focus-visible) { color: var(--ember); text-decoration-color: currentColor; }
.repo-lang { color: #c6b9a4; }
.repo-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .3rem 1.1rem;
  margin-top: .7rem;
}
.repo-meta a {
  color: var(--ember);
  text-decoration: underline;
  text-decoration-color: #896248;
  text-underline-offset: .25em;
}
.repo-meta a:is(:hover, :focus-visible) { text-decoration-color: currentColor; }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ember);
  font: 400 .82rem/1.4 var(--mono);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: #976a48;
  text-underline-offset: .31em;
}
.text-link:hover { text-decoration-color: currentColor; color: #ffc69d; }
.contact-body > p { max-width: 47ch; }
.contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .1rem clamp(1.2rem, 3vw, 2rem);
  margin-top: .75rem;
  padding: 0;
  list-style: none;
}
.work-note > p:first-child { margin-top: 0; }
.work-note > p + p { margin-top: 1.05rem; }
.highlight-list > article h3 { font-size: clamp(1.75rem, 2.45vw, 2.4rem); }
.highlight-figure, .highlight-list h3 em { color: var(--ember); font-style: normal; }
.highlight-list > article + article, .experience-list > article + article {
  margin-top: 1.45rem;
  padding-top: 1.45rem;
  border-top: 1px solid var(--line-soft);
}
.role-date {
  margin: 0 0 .45rem;
  color: #d2b197;
  font: 400 .78rem/1.4 var(--mono);
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 7rem;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 840px), (orientation: landscape) and (max-height: 480px) and (max-width: 950px) {
  :root { --gut: clamp(1.2rem, 5vw, 2.75rem); --header: 3.6rem; }
  /* Without scripts, the full list of destinations stays in the document flow. */
  .masthead { position: relative; }
  .bar { flex-wrap: wrap; gap: 0; }
  .menu-panel { width: 100%; }
  .section-nav { flex-wrap: wrap; justify-content: space-between; gap: 0 .5rem; }
  .menu-ready { position: sticky; }
  .menu-ready .bar { flex-wrap: nowrap; }
  .menu-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 44px;
    padding: 0 .35rem 0 .8rem;
    color: var(--ink);
    background: transparent;
    border: 0;
    font: 400 .85rem/1.2 var(--mono);
    cursor: pointer;
  }
  .menu-toggle:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
  .menu-glyph { display: grid; align-content: center; gap: 5px; width: 17px; }
  .menu-glyph::before, .menu-glyph::after {
    content: ""; height: 1px; width: 100%; background: var(--ember);
  }
  [aria-expanded="true"] .menu-glyph::before { transform: translateY(3px) rotate(45deg); }
  [aria-expanded="true"] .menu-glyph::after { transform: translateY(-3px) rotate(-45deg); }
  .menu-ready .menu-panel:not([hidden]) {
    position: absolute;
    top: 100%;
    right: max(var(--gut), env(safe-area-inset-right));
    width: min(21rem, 100%);
    max-height: calc(100vh - var(--header) - env(safe-area-inset-top));
    max-height: calc(100dvh - var(--header) - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--ground);
    padding: .4rem var(--gut) max(.6rem, env(safe-area-inset-bottom));
    border: 1px solid var(--line);
    box-shadow: 0 .8rem 1.4rem #0004;
  }
  .menu-ready .section-nav { display: block; }
  .menu-ready .section-nav a {
    justify-content: start; min-height: 48px; padding-block: .5rem;
    border-bottom: 1px solid var(--line-soft); font: 600 1.05rem/1.4 var(--sans);
  }
  .menu-ready .section-nav a::after { display: none; }
  .menu-ready .motion-switch { margin-top: .3rem; padding-inline: 0; }
  .hero { display: block; min-height: 0; padding-top: clamp(2.65rem, 8vw, 4.3rem); }
  .hero-art { position: relative; inset: auto; height: clamp(11.5rem, 32vw, 18rem); margin-top: .8rem; }
  h1 { font-size: clamp(3.8rem, 8.8vw, 4.8rem); }
  .chapter { grid-template-columns: minmax(9rem, .66fr) minmax(0, 1.34fr); gap: 2rem; }
}
@media (max-width: 760px) {
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; padding-block: clamp(2.5rem, 6vw, 3.3rem); }
  .section-head p { max-width: 43ch; margin-top: .7rem; }
  .section-body { padding-top: 0; }
  .repo-top a, .repo-meta a { display: inline-flex; align-items: center; min-height: 44px; }
  .repo-top a { text-decoration-color: #77634f; }
  .repo-meta { align-items: center; justify-content: space-between; gap: 0 1rem; margin-top: .25rem; }
  .repo-top + p { margin-top: .25rem; }
  .footer { min-height: 5.4rem; }
}
@media (max-width: 540px) {
  :root { --gut: clamp(1.125rem, 5.5vw, 1.55rem); }
  .wordmark { gap: .32rem; font-size: 1.45rem; }
  .mark, .wordmark img { height: 2rem; }
  .menu-ready .menu-panel:not([hidden]) {
    width: 100%; right: 0; padding-inline: max(var(--gut), env(safe-area-inset-left), env(safe-area-inset-right));
    border-inline: 0;
  }
  .section-nav a { font: 600 .84rem/1.2 var(--sans); white-space: nowrap; }
  .hero { padding-top: clamp(1.85rem, 8vw, 2.65rem); }
  h1 { font-size: clamp(3.2rem, 14.6vw, 4.65rem); }
  .eyebrow { margin-bottom: .85rem; gap: .55rem; letter-spacing: .05em; }
  .eyebrow::before { width: 1.35rem; flex-shrink: 0; }
  .hero-tagline { font-size: 1.12rem; line-height: 1.38; margin-top: .9rem; }
  .hero-tagline span { display: block; }
  .hero-art { height: clamp(9.25rem, 40vw, 12rem); margin-top: .45rem; }
  .hero-art img { object-position: 66% 45%; }
  .certs { grid-template-columns: 1fr; gap: .45rem; }
  .contact-links { display: block; }
  .contact-links li + li { border-top: 1px solid var(--line-soft); }
  .contact-links a { display: flex; min-height: 48px; width: 100%; }
}
@media (orientation: landscape) and (max-height: 480px) and (max-width: 950px) {
  .hero { display: block; min-height: 0; padding-top: 1.6rem; }
  .hero-art { position: relative; inset: auto; height: 8.25rem; margin-top: .5rem; }
  .hero-art img { object-position: 66% 2%; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; transition-duration: 0s; animation-duration: 0s; }
}
