:root {
  color-scheme: light;
  --paper: #f6f8fe;
  --white: #fff;
  --ink: #131e38;
  --muted: #465571;
  --blue: #2446d4;
  --blue-hover: #1937ad;
  --rule: #dbe2f1;
  --project-bg: #101918;
  --project-card: #192624;
  --project-line: #364945;
  --project-text: #f2f7f4;
  --project-muted: #bfceca;
  --lime: #c3f587;
  --max-width: 74rem;
  --font: "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 var(--font);
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3, p, ul, figure { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: -.045em; }
h3 { font-size: 1.25rem; letter-spacing: -.02em; }
:focus-visible { outline: 3px solid #637cff; outline-offset: 4px; }
.projects :focus-visible { outline-color: var(--lime); }

.container {
  width: min(var(--max-width), 100% - clamp(2.25rem, 10vw, 9rem));
  margin-inline: auto;
}
.section { padding-block: clamp(3rem, 7vw, 6.1rem); }
.section-heading { display: grid; gap: .65rem; }
.section-heading p, .path-card p:not(.eyebrow), .cv-row p, .interests-copy p {
  max-width: 61ch;
  color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }

.skip-link {
  position: absolute;
  inset: .75rem auto auto .75rem;
  z-index: 2;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--ink);
  padding: .65rem 1rem;
  border-radius: .5rem;
}
.skip-link:focus { transform: none; }

.site-header { background: var(--white); border-bottom: 1px solid var(--rule); }
.header-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
}
.header-inner { min-height: 4.75rem; padding-block: .55rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.125rem;
  font-weight: 750;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  inline-size: 2.35rem;
  block-size: 2.35rem;
  border-radius: .68rem;
  background: var(--blue);
  color: var(--white);
  font-size: .85rem;
}
.nav-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 clamp(.75rem, 3vw, 2.25rem); }
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}
.nav-list a:hover { color: var(--blue); text-decoration: underline; }

.hero { border-bottom: 1px solid var(--rule); }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.8rem);
  padding-block: clamp(2.5rem, 6vw, 5.25rem);
}
.eyebrow {
  color: var(--blue);
  font: 700 .82rem/1.5 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero h1 {
  margin-block: .8rem 1.2rem;
  font-size: clamp(2.75rem, 2.1rem + 4.5vw, 6.75rem);
  line-height: .98;
  letter-spacing: -.07em;
}
.hero h1 span { color: var(--blue); }
.hero-lede { max-width: 45ch; margin-block-end: 1.85rem; color: var(--muted); font-size: clamp(1rem, .91rem + .46vw, 1.23rem); }
.portrait-frame {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: end center;
  overflow: hidden;
  aspect-ratio: 1.03;
  border-radius: 1.7rem;
  background: radial-gradient(circle at 50% 52%, #dbe4ff 0 33%, transparent 33.4% 41%, #c2cffb 41.2% 41.6%, transparent 42%), #e9eeff;
}
.portrait {
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 94%;
  object-fit: contain;
  object-position: bottom;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: .57rem 1rem;
  border-radius: .65rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.button-primary { background: var(--blue); color: var(--white); }
.button-primary:hover { background: var(--blue-hover); }
.button-secondary { border-color: #ccd6ef; background: var(--white); color: var(--ink); }
.button-secondary:hover { background: #eaf0ff; border-color: #afc0ef; }
.text-link { display: inline-block; color: var(--blue-hover); font-weight: 700; }

.path-grid, .project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.path-grid { margin-top: 1.65rem; }
.path-card {
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 1rem;
}
.path-card h3 { margin-block: .55rem .55rem; }
.path-card .text-link { margin-top: .75rem; }
.cv-row {
  margin-top: 1.15rem;
  padding: 1.15rem clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: #edf2ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
}
.cv-row p { margin-top: .3rem; }

.projects { color: var(--project-text); background: var(--project-bg); }
.projects-heading { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .9rem 1.5rem; }
.projects-heading p { color: var(--project-muted); margin-top: .65rem; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.filter-button {
  min-height: 2.75rem;
  padding: .32rem .85rem;
  border: 1px solid var(--project-line);
  border-radius: 10rem;
  background: var(--project-card);
  color: var(--project-text);
  font-weight: 650;
}
.filter-button:hover { border-color: var(--lime); }
.filter-button[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--project-bg); }
.project-status { min-height: 1.5em; margin-block: .8rem; font-size: .9rem; color: var(--project-muted); }

.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: .7rem;
  border: 1px solid var(--project-line);
  border-radius: 1rem;
  background: var(--project-card);
}
.project-cover {
  display: grid;
  place-items: center;
  min-height: 8rem;
  border-radius: .65rem;
  overflow: hidden;
  background: #283b35;
}
.project-cover > div { display: none; }
[data-cover="academy"] { background: radial-gradient(ellipse at center, #3e4c79, #232d4d); }
[data-cover="academy"] .cover-academy { display: block; }
.cover-academy img { width: auto; height: 6.5rem; }
[data-cover="lab"] { background: radial-gradient(#36564a 1px, transparent 1.5px) 0 0 / .85rem .85rem, #20362e; }
[data-cover="lab"] .cover-lab { display: grid; }
.cover-lab {
  width: 100%;
  place-items: center;
  background: repeating-linear-gradient(to bottom, transparent 0 .75rem, #588b6a .75rem .88rem, transparent .88rem 1.12rem) center / 70% 100% no-repeat;
}
.cover-lab span {
  background: #182c25;
  color: var(--lime);
  border: 1px solid #88bf72;
  border-radius: .55rem;
  padding: .48rem .83rem;
  text-align: center;
  font: 800 1.38rem/1 var(--mono);
}
.cover-lab small { font-size: .6rem; letter-spacing: .12em; }
[data-cover="python"] { background: radial-gradient(ellipse at center, #4b375e, #342640); }
[data-cover="python"] .cover-python { display: flex; }
.cover-python { width: 74%; gap: .45rem; align-items: flex-end; }
.cover-python span {
  flex: 1;
  position: relative;
  height: .3rem;
  background: #9b82b3;
  border-radius: 1rem;
}
.cover-python span:nth-child(2) { transform: translateY(-.85rem); }
.cover-python span:nth-child(3) { transform: translateY(-1.7rem); }
.cover-python span::before {
  content: "";
  position: absolute;
  bottom: .48rem;
  left: 40%;
  width: .65rem;
  height: .65rem;
  border-radius: .12rem;
  background: #e5caff;
}
.project-card-body { display: flex; flex-direction: column; flex: 1; align-items: start; gap: .55rem; padding: .9rem .35rem .2rem; }
.project-card h3 { font-size: 1.35rem; }
.project-category { color: var(--lime); font: 700 .8rem/1.4 var(--mono); }
.project-summary { color: var(--project-muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; list-style: none; }
.tag-list li { padding: .1rem .48rem; border-radius: .35rem; background: #edf2ff; color: var(--ink); font-size: .81rem; }
.project-card .tag-list { margin-top: .3rem; }
.project-card .tag-list li { background: #263732; color: var(--project-text); }
.project-open {
  min-height: 2.75rem;
  margin-top: auto;
  padding: .35rem 0;
  border: 0;
  background: transparent;
  color: var(--lime);
  font-weight: 740;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.project-open:hover { color: #edfddf; }

.interests-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.25rem);
}
.interests-copy { display: grid; gap: .85rem; }
.guitar-frame {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: .5rem;
  padding: clamp(1rem, 4vw, 2.25rem);
  background: #f0ede6;
  border: 1px solid #e5dfd1;
  border-radius: 1.35rem;
}
.guitar-frame img { width: 100%; height: auto; }
.guitar-frame figcaption { color: #594f43; font-size: .91rem; }

.contact { background: #edf2ff; border-top: 1px solid var(--rule); }
.contact-layout { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem 2rem; flex-wrap: wrap; }
.site-footer { background: var(--white); border-top: 1px solid var(--rule); color: var(--muted); }
.footer-inner { min-height: 4.5rem; padding-block: .75rem; font-size: .9rem; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 2.75rem; }

dialog {
  width: min(37rem, 100% - 2rem);
  max-height: calc(100% - 2rem);
  overflow: auto;
  color: var(--ink);
  background: var(--white);
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: 1rem;
}
dialog[open] { display: grid; gap: .8rem; }
dialog::backdrop { background: rgb(12 22 36 / .72); }
.dialog-header { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.dialog-header .eyebrow { margin-bottom: .4rem; }
.dialog-header h2 { font-size: clamp(1.55rem, 1.15rem + 2vw, 2.4rem); }
dialog p:not(.eyebrow) { color: var(--muted); }

@media (min-width: 58rem) {
  .portrait { height: 92%; }
}

@media (max-width: 58rem) {
  .projects-heading { grid-template-columns: 1fr; }
}

@media (max-width: 49rem) {
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); gap: 1.5rem; }
  .path-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 37.5rem) {
  .header-inner { align-items: flex-start; }
  .hero-layout, .interests-layout, .path-grid, .project-grid { grid-template-columns: 1fr; }
  .portrait-frame { width: min(100%, 24rem); justify-self: center; }
  .portrait { height: 92%; }
}

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

/* Text entered in the editor may have several paragraphs, lists or long links. */
.hero h1 #hero-name { color: inherit; white-space: pre-line; overflow-wrap: anywhere; }
.brand-mark { padding-inline: .38rem; inline-size: auto; min-inline-size: 2.35rem; }
.brand, .nav-list, .path-card, .project-card, .section-copy, .interests-copy { min-width: 0; overflow-wrap: anywhere; }
.prose { min-width: 0; overflow-wrap: anywhere; }
.prose > * + * { margin-top: .65em; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-bottom: .36em; }
.prose h2 { font-size: 1.4em; letter-spacing: -.02em; }
.prose h3, .prose h4 { font-size: 1.15em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose blockquote { margin-inline: 0; padding-inline-start: .85em; border-inline-start: 2px solid currentColor; }
.prose pre { overflow-x: auto; padding: .6em; }
.prose table { border-collapse: collapse; display: block; max-width: 100%; overflow-x: auto; }
.prose td, .prose th { border: 1px solid currentColor; padding: .25em .5em; }
.section-copy, .path-card .prose, .interests-copy .prose, .cv-row .prose, dialog .prose { color: var(--muted); }
.projects .section-copy { color: var(--project-muted); }
.projects-heading .section-copy { margin-top: .65rem; }
.projects-heading .section-copy p { margin-top: 0; }
.path-grid, .project-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.path-links { display: flex; flex-wrap: wrap; column-gap: 1rem; }
.without-image { grid-template-columns: 1fr; }
.portrait-frame img { max-height: 92%; }
.cover-image { display: none; }
[data-cover="image"] > .cover-image { display: block; width: 100%; height: 9rem; object-fit: cover; }
.preview-banner { padding: .55rem 1rem; background: #fdf0c7; color: #594308; text-align: center; font-weight: 650; }
.load-error { padding-block: 1rem; }
