:root {
  color-scheme: light;
  --ink: #37343a;
  --surface: white;
  --rose: #90455e;
  --blush: #fff3f6;
  --line: #e5d9dc;
  --type: "Courier New", Courier, monospace;
  color: var(--ink);
  background: #fffcfd;
  font-family: system-ui, sans-serif;
}

* { box-sizing: border-box; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f6eaf0;
  --rose: #efacc4;
  --blush: #31252d;
  --line: #58454f;
  --surface: #292228;
  background: #211c21;
}
[data-theme="dark"] :is(.contact, .repo-link, .social-link, .garden button) { --rose: #974969; }
[data-theme="dark"] .footer-quote figcaption { color: #d4bdc7; }
body { margin: 0; font-size: clamp(1.0625rem, 1rem + .22vw, 1.1875rem); line-height: 1.6; }
a { color: var(--rose); text-underline-offset: .25em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
.wrap { width: min(64rem, calc(100% - 3rem)); margin-inline: auto; }

html { scroll-padding-top: calc(var(--header-height, 4rem) + .5rem); }
.bar { position: sticky; top: 0; z-index: 5; background: var(--blush); border-bottom: 1px solid var(--line); }
.toolbar { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "signature nav theme"; align-items: center; gap: 1.25rem; min-height: 4rem; padding-inline: clamp(.5rem, 2vw, 2rem); }
.theme-toggle { grid-area: theme; justify-self: end; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--blush); color: var(--rose); cursor: pointer; }
.theme-toggle svg { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle[hidden], .theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
.toolbar a, .section-link, .garden > a { display: inline-flex; align-items: center; min-height: 44px; }
.toolbar a { color: var(--ink); font-family: var(--type); text-decoration: none; }
.toolbar a:hover { color: var(--rose); text-decoration: underline; }
.signature { display: inline-flex; align-items: center; min-height: 44px; grid-area: signature; justify-self: start; gap: .55rem; color: var(--ink); text-decoration: none; font: bold 1.15rem var(--type); transform-origin: left center; }
.signature:is(:hover, :focus-visible), .toolbar .signature:hover { color: var(--rose); text-decoration: none; }
.signature-avatar {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--blush);
  font: 1.35rem/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
h1 em { color: var(--rose); }
.toolbar nav { grid-area: nav; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: clamp(1.25rem, 2vw, 2rem); }
.toolbar nav a, .section-link {
  position: relative;
  color: var(--rose);
  font: bold 1.05rem/1.4 var(--type);
  text-decoration: none;
}
.toolbar nav a::after, .section-link::after {
  content: "";
  position: absolute;
  inset: auto 0 calc(50% - .8em);
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
}
.toolbar nav a { font-size: 1.2rem; }
.toolbar nav a:hover, .section-link:hover { text-decoration: none; }
@media (hover: hover) {
  .toolbar nav a:hover::after, .section-link:hover::after { transform: scaleX(1); }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
h1, h2 { margin: 0; font-family: var(--type); }
.hero h1 { font-size: clamp(2.75rem, 8vw, 5.8rem); line-height: 1.1; letter-spacing: -.05em; }
h1 em, h2 em { font-style: normal; }
.invitation { font: clamp(1.25rem, 2vw, 1.55rem)/1.5 var(--type); margin: 1.2rem 0 .85rem; }
.contacts { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
#copy-email { cursor: pointer; padding: 0; }
.footer-email { padding: 0; border: 0; background: transparent; color: var(--rose); font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
#email-status, .copy-status { color: var(--rose); font-size: .9rem; }
#email-status { margin: .4rem 0 0; }
.contact {
  display: grid;
  width: clamp(3rem, 5vw, 3.75rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
}
.contact svg { width: 50%; height: 50%; }
.contact:is(:hover, :focus-visible) { border-color: currentColor; }

.hero-photo, .postcard {
  display: block;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 4px 5px #f1e4e9;
  transform: rotate(1.5deg);
}
.photo-stack {
  width: min(100%, 23rem);
  justify-self: center;
  position: relative;
  isolation: isolate;
}
.photo-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid #dec1cb;
  background: #f8e6ed;
  transform: translate(-.2rem, .25rem) rotate(-3deg);
}
.hero-photo {
  width: 100%;
  height: auto;
  padding: .5rem .5rem 1.25rem;
}
.postcard {
  cursor: pointer;
  color: #90455e;
  padding: .65rem;
  text-decoration: none;
}
.postcard img, .garden img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.postcard span { display: flex; align-items: end; gap: .6rem; padding: .9rem .35rem .35rem; font: bold 1rem/1.4 var(--type); }
.postcard svg { width: 1.8rem; height: 1.8rem; flex: none; }
.postcard > * { pointer-events: none; }
.postcard:is(:hover, :focus-visible) { border-color: currentColor; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .postcard { transition: translate .18s ease-out, box-shadow .18s ease-out; }
  .postcard:is(:hover, :focus-visible) { translate: 0 -4px; box-shadow: 4px 9px #f1e4e9; }
}
.about { padding: clamp(3rem, 6vw, 6rem) 0; background: var(--blush); border-top: 1px solid var(--line); }
.about-content {
  width: min(64rem, calc(100% - 3rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.about h2, .qualifications h2, .contact-footer h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.about p { max-width: 47ch; line-height: 1.75; }
.section-link { gap: .55rem; }
.footer-close {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-top: 1rem;
}
.footer-quote { margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); text-align: center; }
.footer-quote blockquote { margin: 0; }
.footer-quote blockquote { font: italic 1.2rem/1.5 Georgia, serif; }
.footer-quote figcaption { margin-top: .25rem; font-size: .9rem; color: #665d63; }
.contact-footer { padding-block: clamp(3rem, 7vw, 5rem); background: var(--blush); }
.contact-footer p { margin: .65rem 0 1.25rem; overflow-wrap: anywhere; }
.social-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.25rem;
  padding-inline: 1.25rem;
  border-radius: 2rem;
  background: var(--rose);
  color: white;
  font: bold 1.05rem var(--type);
  text-decoration: none;
}
.social-link svg { width: 1.5rem; height: 1.5rem; }
.social-link:is(:hover, :focus-visible) { background: #74364b; }
.qualifications { padding-block: clamp(2.5rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.qualifications h2 { margin-bottom: 1.5rem; }
.qualifications h3 { margin: 0; font-size: 1.25rem; }
.qualifications p, .qualifications li, .skills dd { line-height: 1.65; }
.role, .skills { display: grid; grid-template-columns: minmax(10rem, 1fr) 3fr; gap: .65rem 2rem; }
.role {
  grid-template-columns: 16.5rem minmax(0, 1fr);
  position: relative;
  margin-inline-start: .35rem;
  border-inline-start: 2px solid #dfbfcb;
  padding-inline-start: clamp(1.1rem, 3vw, 2rem);
}
.role:has(+ .role) { padding-bottom: 2rem; }
.role::before {
  content: "";
  position: absolute;
  inset-inline-start: -6px;
  top: .5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 3px var(--blush);
}
.role p, .skills dd { margin: 0; }
.role .organization { margin: .25rem 0 .6rem; color: var(--rose); }
.role ul { margin: 0; padding-left: 1.2rem; }
.role li + li { margin-top: .45rem; }
.dates, .skills dt { font-family: var(--type); }
.role .dates { font-size: clamp(.9375rem, 2.5vw, 1rem); white-space: nowrap; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.project-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
}
.project-grid header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  width: 100%;
}
.project-grid h3 { font: bold 1.3rem var(--type); }
.project-grid h3::before {
  content: "";
  display: inline-block;
  width: .43rem;
  height: .43rem;
  margin: 0 .55rem .15rem 0;
  background: var(--rose);
}
.icon-library { position: absolute; pointer-events: none; }
.project-kind {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font: .95rem var(--type);
  text-transform: uppercase;
  color: var(--rose);
}
.project-kind svg, .repo-link svg { width: 1.1rem; height: 1.1rem; flex: none; }
.project-grid p { margin: .85rem 0 1rem; }
.stack { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: auto 0 1.25rem; padding: 0; }
.stack li { padding: .1rem .65rem; border-radius: 1rem; background: var(--blush); font: bold .95rem/1.65 var(--type); }
.repo-link, .resume-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding-inline: .85rem;
  border: 1px solid var(--rose);
  border-radius: .35rem;
  font: bold 1rem var(--type);
  text-decoration: none;
}
.repo-link { border-radius: 2rem; background: var(--rose); color: white; }
.repo-link:is(:hover, :focus-visible) { background: #74364b; }
.resume-link:is(:hover, :focus-visible) { background: var(--blush); }
.resume-link { margin-top: .75rem; min-height: 3.125rem; padding-inline: 1rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.skills-note { font: 1.125rem/1.6 var(--type); max-width: 58ch; }
.skills dt { font-weight: bold; line-height: 1.65; }
.experience-chart { --label-width: clamp(7rem, 25%, 14rem); margin: 2rem 0; }
.skill-plot { position: relative; }
.skill-rows { margin: 0; }
.skill-rows > div { display: grid; grid-template-columns: var(--label-width) 1fr; }
.skill-rows dt { padding: .5rem .75rem .5rem 0; font: bold 1rem/1.45 var(--type); }
.skill-rows dd {
  align-self: center;
  height: 1rem;
  margin: 0;
}
.skill-guides {
  position: absolute;
  inset: 0 0 0 var(--label-width);
  pointer-events: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  justify-items: center;
}
.skill-guides i {
  border-left: 1px solid color-mix(in srgb, #bcb6b9 80%, var(--surface));
}
.skill-bar {
  display: block;
  height: 100%;
  background: var(--rose);
}
.skill-axis {
  margin-left: var(--label-width);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
  text-align: center;
}
.skill-axis span { padding: .55rem .12rem 0; font-size: .9375rem; overflow-wrap: anywhere; }
.skill-axis strong { display: block; margin-bottom: .3rem; font-size: .9rem; }
.skill-inventory { margin-bottom: 1.25rem; }
.skill-inventory summary { color: var(--rose); cursor: pointer; padding-block: .75rem; }
@media (max-width: 32rem) {
  .experience-chart { --label-width: 31%; }
  .skill-rows dt { font-size: .9375rem; overflow-wrap: anywhere; }
  .skill-axis strong, .skill-axis span { font-size: .875rem; }
}
.garden { width: min(26rem, calc(100% - 3rem)); margin: 2rem auto; }
.garden h1 { font-size: 2.5rem; margin: 1rem 0; }
.garden img { border: 6px solid white; box-shadow: 0 0 0 1px var(--line); }
.garden button { min-height: 44px; padding: .6rem 1rem; color: white; background: var(--rose); border: 0; border-radius: .3rem; font: bold 1rem var(--type); cursor: pointer; }

@media (max-width: 60rem) {
  .toolbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "signature theme" "nav nav"; gap: 0; padding: .25rem .5rem; }
  .toolbar nav { column-gap: clamp(.375rem, 1.8vw, .75rem); }
  .toolbar nav a { font-size: clamp(.78125rem, 3.85vw, 1.05rem); }
}
@media (max-width: 42rem) {
  .project-grid { grid-template-columns: 1fr; }
  .role, .skills { grid-template-columns: 1fr; }
  .skills { gap: 0; }
  .skills dd { margin-bottom: 1rem; }
  .hero { grid-template-columns: 1fr; padding-block: 3rem; }
  .about-content { grid-template-columns: 1fr; }
  .postcard { width: min(100%, 18rem); }
}
.letter.pending { visibility: hidden; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .intro-waiting { visibility: hidden; }
  .intro-appearing { animation: intro-appear .24s ease-out; }
  @keyframes intro-appear {
    from { opacity: 0; translate: 0 4px; }
  }
  .signature { transition: transform .16s ease-out; }
  .signature:is(:hover, :focus-visible) { transform: scale(1.035); }
  .toolbar nav a::after, .section-link::after { transition: transform .18s ease-out; }
  .letter.current { position: relative; }
  .letter.current::after {
    content: "";
    position: absolute;
    left: 100%;
    bottom: .1em;
    width: .36em;
    height: .14em;
    background: var(--rose);
  }
  .letter.current:last-child::after { animation: cursor-pulse .65s step-end 3 forwards; }
  html { scroll-behavior: smooth; }
  .contact, .repo-link { transition: transform .18s ease, background-color .18s, color .18s; }
  .contact:is(:hover, :focus-visible), .repo-link:is(:hover, :focus-visible) { transform: translateY(-3px); }
}

@keyframes cursor-pulse {
  50%, 100% { opacity: 0; }
}

