:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --ink: #20201e;
  --muted: #595750;
  --line: #c8c3b8;
  --orange: #ff603d;
  --accent: #b53016;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}

a:hover { text-decoration-thickness: 2px; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: .6rem 1rem;
  transform: translateY(-250%);
  color: white;
  background: var(--ink);
}

.skip-link:focus { transform: translateY(0); }

.wrap {
  width: min(100% - clamp(2.5rem, 10vw, 10rem), 79rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
}

.site-header a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 3vw, 2.4rem);
  font-size: .95rem;
  font-weight: 600;
}

.site-header nav a:not(:hover, [aria-current="page"]),
.wordmark { text-decoration: none; }

.wordmark {
  gap: .55rem;
  font-size: 1.06rem;
  font-weight: 750;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  vertical-align: -.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: .85;
}

.icon-down { width: .5em; }

.wordmark-icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  stroke-width: 1.2;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  align-items: center;
  column-gap: clamp(2rem, 6vw, 7rem);
  padding-top: clamp(2.75rem, 6vw, 5.5rem);
}

.eyebrow, .hero-footer, .plate-label, .work-index, .profile-portrait figcaption {
  font-family: var(--mono);
  font-size: .73rem;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  line-height: 1.4;
  font-weight: 600;
}

.signal {
  flex: none;
  width: .48rem;
  height: .48rem;
  background: var(--accent);
}

.eyebrow-rule {
  width: 1.6rem;
  height: 1px;
  background: var(--line);
}

.hero h1 {
  margin-block: clamp(1.25rem, 3vw, 2.3rem) clamp(1.4rem, 3.4vw, 2.75rem);
  font-size: clamp(5.1rem, 10.8vw, 10.25rem);
  font-weight: 800;
  line-height: .81;
  letter-spacing: -.073em;
}

h1 span, h2 span { color: var(--accent); }

.hero-intro {
  max-width: 23rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.37rem);
  line-height: 1.45;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem 1.6rem;
  margin-top: 1.65rem;
}

.button, .text-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
  min-height: 2.75rem;
  font-size: .93rem;
  font-weight: 700;
}

.button {
  padding: .65rem 1rem;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, color .18s;
}

.button:hover {
  color: var(--ink);
  background: transparent;
}

.button:focus-visible { outline-color: var(--ink); }

.text-link .icon, .button .icon, .contact-email .icon {
  transition: transform .18s ease-out;
}

.text-link:hover .icon, .button:hover .icon, .contact-email:hover .icon {
  transform: translate(2px, -2px);
}

.hero-plate {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: var(--ink);
  color: #f4f1e9;
}

.hero-plate img {
  display: block;
  width: 100%;
  height: auto;
}

.plate-label {
  position: absolute;
  inset: 1.15rem 1.3rem auto;
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  font-size: .64rem;
}

.plate-caption { inset: auto 1.3rem 1.05rem; }

.hero-footer {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: .5rem;
  margin-top: clamp(2.25rem, 5vw, 4.5rem);
  padding-block: .95rem 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.work-section {
  padding-block: clamp(4rem, 8vw, 7.5rem);
  background: var(--ink);
  color: var(--paper);
}

.work-section h2 span, .work-section .signal { color: var(--orange); }
.work-section .signal { background: var(--orange); }

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(15rem, 20rem);
  align-items: end;
  gap: 1rem 3rem;
  margin-bottom: clamp(2.1rem, 5vw, 4.5rem);
}

.section-head p:not(.eyebrow), .work-feature p:not(.eyebrow), .project p:not(.eyebrow) {
  color: #d1cdc3;
}

.section-head h2, .profile h2, .contact h2 {
  margin-top: .8rem;
  font-size: clamp(2.7rem, 6.7vw, 6.3rem);
  font-weight: 800;
  letter-spacing: -.078em;
  line-height: .92;
}

.work-feature, .project { border-top: 1px solid #66645c; }

.work-feature {
  display: grid;
  grid-template-columns: minmax(8rem, .53fr) 1.47fr;
  gap: 1.4rem 2.5rem;
  padding-block: 1.35rem clamp(2.65rem, 5vw, 5rem);
}

.work-index {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  color: #d1cdc3;
}

.work-index span:first-child { color: var(--orange); }

.feature-main .eyebrow, .project .eyebrow {
  color: #d1cdc3;
}

.feature-main h3, .project h3 {
  margin-block: .6rem .9rem;
  font-size: clamp(1.8rem, 4.25vw, 3.8rem);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: 1.04;
}

.feature-main p, .project p { max-width: 38rem; }
.feature-intro { font-size: 1.15rem; }

.product-areas { margin-block: 1.4rem .6rem; }
.product-areas div {
  display: grid;
  grid-template-columns: minmax(10.75rem, .55fr) 1fr;
  gap: .15rem 1rem;
  padding-block: .7rem;
  border-top: 1px solid #66645c;
}
.product-areas dt { font-weight: 700; }
.product-areas dd { color: #d1cdc3; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.3rem clamp(2rem, 5vw, 5rem);
}

.project { padding-top: 1rem; }
.project .work-index { margin-bottom: 1.65rem; }
.project h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.project .text-link { margin-top: .8rem; }

.profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  padding-block: clamp(4rem, 9vw, 8rem);
}

.profile h2 { font-size: clamp(2.6rem, 5.25vw, 5rem); }
.profile-portrait {
  position: relative;
  isolation: isolate;
  width: min(calc(100% - .6rem), clamp(10.75rem, 23vw, 15rem));
  margin: 1.6rem 0 0;
}
.profile-portrait::before {
  position: absolute;
  z-index: -1;
  top: .5rem;
  left: .5rem;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  background: repeating-linear-gradient(135deg, var(--paper) 0 4px, var(--line) 4px 5px);
  content: "";
}
.profile-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
}
.profile-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1rem;
  color: var(--muted);
}
.profile > div:nth-child(2) { align-self: center; }
.profile > div:nth-child(2) > p { max-width: 34rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.profile > div:nth-child(2) > p + p { margin-top: .8rem; }

.profile-skills { margin-block: 1.45rem .55rem; }
.profile-skills div {
  display: grid;
  grid-template-columns: minmax(5.25rem, .45fr) 1fr;
  gap: .65rem 1rem;
  padding-block: .7rem;
  border-top: 1px solid var(--line);
  font-size: .94rem;
}
.profile-skills dt { font-weight: 750; }
.profile-skills dd { color: var(--muted); }

.contact {
  padding-block: clamp(3rem, 6vw, 5.4rem) 1.35rem;
  background: #f0e4d5;
  border-top: 1px solid #d8c9b7;
}

.contact h2 { font-size: clamp(2.8rem, 7vw, 6.5rem); }

.contact-email {
  display: inline-block;
  margin-top: .85rem;
  font-size: clamp(1.2rem, 3vw, 2.25rem);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.contact-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
  margin-top: clamp(2.2rem, 6vw, 5.25rem);
  padding-top: 1rem;
  border-top: 1px solid #c5b5a4;
  font-size: .9rem;
}

.contact-bottom ul, .resume-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-bottom li a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.contact-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-inline-start: auto;
}
.pride-flag { display: block; flex: none; outline: 1px solid #c5b5a4; }

.resume, .resume-footer { max-width: 64rem; }
.resume { padding-top: clamp(2.5rem, 6vw, 5rem); }

.resume-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 2rem;
}

.resume-head h1 {
  margin-top: .55rem;
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: -.082em;
  line-height: 1;
}

.resume-title { margin-top: .55rem; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.resume-links { gap: .25rem 1.2rem; margin-top: .8rem; color: var(--muted); font-size: .92rem; }

.resume-section {
  display: grid;
  grid-template-columns: minmax(8rem, .43fr) 1.57fr;
  gap: .8rem 1.65rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}

.resume-section h2 { font-size: 1.15rem; letter-spacing: -.02em; }
.resume-entry + .resume-entry { margin-top: 1.15rem; }
.resume-entry h3 { font-size: 1.05rem; text-wrap: wrap; }
.resume-org { font-weight: 550; }
.resume-date { font-size: .91rem; color: var(--muted); }
.resume-bullets { margin: .4rem 0 0; padding-left: 1.2rem; }
.resume-bullets li + li { margin-top: .22rem; }

.resume-footer {
  padding-block: 1rem 2rem;
  border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy { animation: arrive .48s ease-out both; }
  .hero-plate { animation: arrive .58s .06s ease-out both; }
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(.65rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 50rem) {
  .hero { column-gap: 1.4rem; }
  .section-head { grid-template-columns: 1fr; }
  .section-head p:not(.eyebrow) { max-width: 25rem; }
}

@media (max-width: 42rem) {
  .site-header { min-height: 4rem; }
  .hero { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .hero h1 { font-size: clamp(4.75rem, 21vw, 8.4rem); }
  .hero-footer { margin-top: 0; }
  .work-feature, .project-grid, .profile, .resume-section, .product-areas div { grid-template-columns: 1fr; }
  .work-feature { row-gap: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@page { size: A4; margin: 14mm 16mm; }

@media print {
  :root, body { color: #151515; background: white; }
  body { font-size: 10pt; line-height: 1.35; }
  .cv .site-header, .cv .resume-footer, .cv .print-button, .cv .skip-link { display: none; }
  .resume { width: 100%; max-width: none; padding-top: 0; }
  .resume-head { display: block; padding-bottom: 12pt; }
  .resume-head h1 { font-size: 34pt; }
  .resume-head h1 span { color: inherit; }
  .resume-title { font-size: 12pt; }
  .resume-links, .resume-date { font-size: 9pt; }
  .resume-section { grid-template-columns: 7rem 1fr; gap: 1rem; padding-block: 9pt; }
  .resume-section h2, .resume-entry h3 { font-size: 11pt; }
  .resume-entry { break-inside: avoid; }
  .resume-entry + .resume-entry { margin-top: 7pt; }
}
