:root {
  --bg: #0b121b;
  --line: #2b3742;
  --ink: #eff1eb;
  --muted: #a9b5c0;
  --accent: #c0db96;
  --brass: #cbb990;
  --panel: #101b25;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; font-size: 16px; line-height: 1.75; }
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: #e0f0c5; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
::selection { color: var(--bg); background: var(--accent); }
img { display: block; max-width: 100%; }
.wrap { max-width: 1280px; padding-left: 60px; padding-right: 60px; margin-left: auto; margin-right: auto; }
.accent { color: var(--accent); }

.site-header { height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.wordmark { display: flex; gap: 18px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: -.2px; text-decoration: none; color: var(--ink); }
.brand-mark { font-size: 27px; font-weight: 700; letter-spacing: -3px; }
.brand-mark span { color: var(--accent); }
nav { display: flex; gap: 30px; align-items: center; font-size: 13px; }
nav a { color: #c4cdd4; text-decoration: none; }
nav a:hover { color: var(--accent); }

.hero { display: grid; grid-template-columns: 1.22fr 1fr; gap: 68px; padding-top: 53px; padding-bottom: 90px; align-items: center; }
h1 { font-size: clamp(70px, 8.4vw, 112px); font-weight: 650; line-height: .99; letter-spacing: -7px; margin: 0 0 31px; }
h1 .accent { font-family: Georgia, serif; }
.hero-tagline { font-size: 29px; font-weight: 450; line-height: 1.35; letter-spacing: -.7px; margin: 0 0 24px; }
.hero-description { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 405px; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 27px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; padding: 11px 22px; border: 1px solid transparent; text-decoration: none; }
.primary { background: var(--accent); color: #172219; }
.primary:hover { background: #d2eab0; color: #172219; }
.text-link { font-size: 14px; }
.hero-art { margin: 0; max-width: 460px; width: 100%; justify-self: end; transform: rotate(1.5deg); }
.art-frame { position: relative; padding: 9px; border: 1px solid #435044; background: #131e25; box-shadow: 16px 18px 0 #111d28; }
.art-frame img { width: 100%; height: auto; aspect-ratio: 682/932; object-fit: contain; background: #b7ad96; }
.art-corner { position: absolute; width: 20px; height: 20px; border-color: var(--accent); border-style: solid; pointer-events: none; }
.top-left { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.bottom-right { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.content-section { --section-accent: var(--accent); display: grid; grid-template-columns: 255px minmax(0, 1fr); column-gap: 65px; padding-top: 0; padding-bottom: 38px; }
.content-section > .section-heading { padding-top: 28px; border-top: 1px solid var(--line); }
.content-section > .section-content {
  position: relative;
  padding: 29px 32px;
  border: 1px solid #30404a;
  background: linear-gradient(115deg, #c0db9605, transparent 45%), var(--panel);
  box-shadow: 5px 5px 0 #080e15;
}
.content-section > .section-content::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 24px;
  height: 24px;
  border-top: 1px solid var(--section-accent);
  border-left: 1px solid var(--section-accent);
  pointer-events: none;
}
#about, #education { --section-accent: var(--brass); }
#experience { --section-accent: #b7c8d7; }
.category-icon {
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  color: var(--section-accent);
  background: #18232b;
  border: 1px solid #3b484a;
  margin-bottom: 18px;
}
.category-icon svg { display: block; width: 36px; height: 36px; }
.section-heading h2 { color: #e8ecdf; }
#work .section-heading { border-top-color: #667554; }
#work .entry h3 { color: #d5e5c0; }
#work .entry a { text-decoration-color: #6e815c; }
#work .entry a:hover { text-decoration-color: currentColor; }
.section-heading h2 { font-size: 26px; line-height: 1.35; font-weight: 500; letter-spacing: -.65px; margin: 0; }
.section-heading .text-link { display: inline-block; margin-top: 15px; }
.section-content { min-width: 0; }
h3 { font-size: 21px; font-weight: 500; letter-spacing: -.3px; line-height: 1.45; margin: 0 0 6px; }
h4 { font-size: 16px; font-weight: 600; margin: 27px 0 12px; }
p { margin: 0 0 17px; }
.section-content > p, .entry > p, .prose p, dd, .course-list, .experience-list { color: #c1cbd3; }
.entry { padding-bottom: 29px; margin-bottom: 29px; border-bottom: 1px solid var(--line); }
.entry:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.entry p { max-width: 750px; }
.entry a { font-size: 14px; }
.entry-meta { font-size: 13px; color: var(--muted) !important; margin: 0 0 14px; }
.entry:last-child > p:last-child, .prose p:last-child { margin-bottom: 0; }
.details-list { margin: 0; }
.details-list > div { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 22px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.details-list > div:first-child { padding-top: 0; }
.details-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
dt { font-size: 14px; font-weight: 500; }
dd { font-size: 15px; margin: 0; }
.course-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 35px; margin: 0; padding-left: 19px; font-size: 14px; }
.experience-list { margin: 0; padding-left: 20px; }
.experience-list li { padding-left: 3px; margin: 7px 0; }
.experience-list li::marker, .course-list li::marker { color: #829176; }
.degree { font-size: 18px; margin-top: 21px; }
.degree-year { font-size: 14px; color: var(--muted); }
.academic-details { display: flex; gap: 37px; padding: 18px 0; margin: 21px 0 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.academic-details dt { color: var(--muted); font-size: 13px; margin-bottom: 3px; }
.academic-details dd { font-size: 18px; color: #dccdad; }
.contact-email { overflow-wrap: anywhere; }
#contact .section-content { display: flex; flex-direction: column; justify-content: center; }
#contact .section-content p:last-child { margin-bottom: 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-top: 22px; padding-bottom: 30px; color: var(--muted); font-size: 12px; }
.site-footer a { color: var(--muted); }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 10px 15px; color: var(--bg); background: var(--accent); z-index: 20; }
.skip-link:focus { top: 10px; }

@media (min-width: 1400px) {
  .hero { padding-top: 70px; padding-bottom: 105px; }
}
@media (max-width: 1150px) {
  .wrap { padding-left: 36px; padding-right: 36px; }
  .hero { gap: 40px; }
  h1 { font-size: 95px; }
  .content-section { grid-template-columns: 215px minmax(0, 1fr); column-gap: 45px; }
  .details-list > div { grid-template-columns: 145px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  nav { gap: 20px; }
  .hero { gap: 30px; padding-top: 38px; }
  h1 { font-size: 80px; letter-spacing: -5px; }
  .hero-tagline { font-size: 26px; }
  .hero-description { font-size: 15px; }
  .hero-actions { flex-wrap: wrap; gap: 18px; }
  .content-section { grid-template-columns: 175px minmax(0, 1fr); column-gap: 30px; }
  .section-heading h2 { font-size: 23px; }
  .details-list > div { grid-template-columns: 1fr; gap: 4px; }
  .course-list { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .site-header { height: auto; min-height: 100px; flex-wrap: wrap; padding-top: 19px; padding-bottom: 17px; gap: 15px; }
  .wordmark { font-size: 11px; gap: 12px; }
  .brand-mark { font-size: 25px; }
  nav { width: 100%; gap: 23px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 34px; padding-bottom: 65px; }
  h1 { font-size: 100px; line-height: .99; letter-spacing: -6px; margin-bottom: 25px; }
  .hero-tagline { font-size: 28px; }
  .hero-description { font-size: 16px; max-width: 370px; }
  .hero-actions { gap: 25px; margin-top: 28px; }
  .hero-art { width: 80%; max-width: 360px; justify-self: center; transform: rotate(1deg); }
  .art-frame { box-shadow: 11px 12px 0 #111d28; }
  .art-frame img { max-height: 420px; object-fit: contain; }
  .content-section { grid-template-columns: 1fr; }
  .content-section { padding-bottom: 31px; }
  .content-section > .section-heading { position: relative; padding-top: 22px; padding-bottom: 20px; }
  .content-section:not(#work) > .section-heading { display: flex; align-items: center; gap: 16px; }
  .category-icon { width: 44px; height: 44px; flex: 0 0 44px; margin: 0; }
  .category-icon svg { width: 31px; height: 31px; }
  .content-section > .section-content { padding: 24px 22px; }
  .section-heading h2 { font-size: 26px; }
  .section-heading .text-link { margin-top: 9px; }
  h3 { font-size: 20px; }
  .entry { padding-bottom: 24px; margin-bottom: 24px; }
  .entry-meta { font-size: 13px; }
  .details-list > div { gap: 4px; padding: 14px 0; }
  .course-list { font-size: 15px; gap: 8px; }
  .site-footer { padding-top: 10px; padding-bottom: 25px; }
}
@media (max-width: 370px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  nav { gap: 17px; font-size: 11px; }
  h1 { font-size: 87px; }
  .hero-tagline { font-size: 26px; }
  .hero-actions { gap: 19px; }
  .hero-actions .text-link { font-size: 12px; }
  .button { font-size: 13px; padding: 11px 17px; }
  .hero-art { width: 88%; }
  .content-section > .section-content { padding: 22px 18px; }
  .academic-details { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
