:root {
  --bg: #f3efe7;
  --paper: #faf7f2;
  --ink: #1c1916;
  --muted: #4e4943;
  --line: #d5cec3;
  --link: #1a4470;
  --mark: #8a3d12;
  --max: 66rem;
  --header: 6.25rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  display: block;
  height: 0.4rem;
  background: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
  z-index: 5;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.16em;
}

h1,
h2,
.snapshot dd,
.contact-email {
  text-wrap: balance;
}

h1,
h2,
h3 {
  font-family: "Liberation Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 {
  margin: 0.35rem 0 0.9rem;
  font-size: clamp(2.15rem, 4.5vw, 3.35rem);
}

h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

h3 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.38rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.4rem 1.25rem;
  padding-top: 0.95rem;
}

.name {
  color: var(--ink);
  font-family: "Liberation Serif", Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
}

.bar-links a {
  overflow-wrap: anywhere;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  padding: 0.55rem 0 0.75rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.2rem 0;
}

.nav a:hover,
.name:hover,
.bar-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.85fr);
  gap: 2rem 2.75rem;
  align-items: start;
  padding-top: 2.25rem;
  padding-bottom: 0.5rem;
}

.kicker,
.stack,
.when,
.course-label,
.status,
.snapshot dt,
.note {
  font-family: "JetBrains Mono", "Liberation Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.kicker {
  margin: 0;
  color: var(--mark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.deck,
.frame,
.about p,
.entry-body li,
.contact p {
  max-width: 68ch;
}

.deck {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.55;
}

.snapshot {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 0.35rem 1.1rem 0.9rem;
}

.snapshot dl {
  margin: 0;
}

.snapshot div {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.snapshot div:first-child {
  border-top: 0;
}

.snapshot dt {
  margin: 0 0 0.15rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.snapshot dd {
  margin: 0;
}

section[id],
.hero {
  scroll-margin-top: calc(var(--header) + 0.5rem);
}

.section {
  padding-top: 2.75rem;
}

.about p + p {
  margin-top: 0.9rem;
}

.skill-grid,
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 3rem;
}

.skill h3,
.edu h3 {
  border-top: 2px solid var(--ink);
  padding-top: 0.55rem;
}

.stack,
.note,
.where,
.course-label {
  color: var(--muted);
}

.stack {
  margin-top: 0.15rem;
}

.note {
  margin-top: 0.75rem;
}

.frame {
  margin-top: 0.65rem;
}

.entry {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.75rem 1.5rem;
  padding: 1.35rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

.entry:last-child {
  border-bottom: 1px solid var(--line);
}

.when {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.more {
  margin-top: 0.75rem;
}

.course-label {
  margin-top: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert .status {
  display: inline-block;
  margin: 0.45rem 0 0.65rem;
  padding: 0.15rem 0.45rem;
  background: #f3e1d2;
  color: var(--mark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.edu-grid {
  align-items: start;
}

.contact-email {
  margin-top: 0.85rem;
  font-family: "Liberation Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.contact-email a {
  overflow-wrap: anywhere;
}

.contact p + p {
  margin-top: 0.45rem;
}

.where {
  margin-top: 0.9rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  :root {
    --header: 7.5rem;
  }

  .wrap {
    width: min(100% - 2rem, var(--max));
  }

  .hero,
  .skill-grid,
  .edu-grid,
  .entry {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 1.5rem;
    padding-top: 1.6rem;
  }

  .entry {
    gap: 0.25rem;
  }

  .when {
    margin-top: 0;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .site-header {
    position: static;
  }
}

@media (max-width: 380px) {
  .nav {
    gap: 0.15rem 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  body::before,
  .skip,
  .nav,
  .site-header {
    display: none;
  }

  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

  .wrap {
    width: auto;
    margin: 0;
  }

  a {
    color: black;
    text-decoration: none;
  }

  .snapshot,
  .skill h3,
  .edu h3 {
    border-color: black;
  }

  .section {
    padding-top: 1.25rem;
    break-inside: avoid;
  }
}
