:root {
  --ink: #17212B;
  --copper: #B56A3B;
  --steel: #65717C;
  --ivory: #F4F1EC;
  --paper: #FCFBF8;

  --background: var(--paper);
  --text: var(--ink);
  --heading: var(--ink);
  --muted: var(--steel);
  --accent: var(--copper);

  --max: 1120px;
  --narrow: 720px;
  --font: "DM Sans", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.005em;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--copper);
  color: var(--paper);
}

.skip:focus {
  top: 0.75rem;
  color: var(--paper);
}

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

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

.site-header {
  border-top: 4px solid var(--copper);
  background: var(--steel);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: 1.15rem 0;
}

.wordmark {
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wordmark:hover {
  color: var(--paper);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav a {
  color: var(--ivory);
  text-decoration: none;
  padding: 0.2rem 0.55rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--paper);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-rule {
  display: inline-block;
  width: 1px;
  height: 0.7em;
  background: var(--ivory);
  opacity: 0.45;
}

.btn-nav-download {
  margin-left: 0.4rem;
  padding: 0.32rem 0.7rem;
  background: var(--copper);
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}

.btn-nav-download:hover {
  background: var(--paper);
  color: var(--ink);
}

.site-main {
  padding-bottom: 5rem;
}

.hero {
  padding: 4.25rem 0 3.5rem;
}

.hero-name {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2.15rem, 6.4vw, 4.1rem);
  font-weight: 500;
  letter-spacing: 0.055em;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-role {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  gap: 2.75rem 3.5rem;
  align-items: center;
  margin-top: 3rem;
}

.hero-copy p {
  margin: 0;
  max-width: 36rem;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--copper);
  color: var(--paper);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--copper) 78%, var(--ink));
  color: var(--paper);
}

.btn-secondary {
  background: transparent;
  border-color: var(--steel);
  color: var(--steel);
}

.btn-secondary:hover {
  background: var(--steel);
  color: var(--paper);
}

.section {
  padding: 4.25rem 0;
  border-top: 1px solid color-mix(in srgb, var(--steel) 32%, var(--ivory));
}

.section-flush {
  border-top: 0;
  padding-top: 0;
}

.section-tight {
  border-top: 0;
  padding-top: 1rem;
}

.media-spaced {
  margin-top: 1.75rem;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
  color: var(--copper);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  flex: 0 0 auto;
}

.section-title {
  margin: 0 0 1rem;
  color: var(--heading);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.section-lead,
.prose p {
  margin: 0 0 1rem;
  max-width: 40rem;
  color: var(--text);
}

.prose p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 2.5rem 3.25rem;
  align-items: start;
}

.split-reverse {
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
}

.split-photo {
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 260px);
  align-items: start;
}

.split-reverse.split-photo {
  grid-template-columns: minmax(160px, 260px) minmax(0, 1.4fr);
}

.media-compact {
  max-width: 260px;
}

.media-compact .frame-portrait {
  min-height: 0;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(240px, 22rem) minmax(0, 1fr);
  gap: 2.5rem 0;
  align-items: start;
}

.about-aside {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  padding-right: 2.5rem;
  border-right: 4px solid var(--copper);
}

.about-aside .media-compact {
  width: 100%;
}

.about-aside .frame-portrait {
  width: 100%;
}

.about-bio {
  padding-left: 2.5rem;
}

.beyond-work .section-title {
  font-size: 1.35rem;
}

.beyond-work .prose p {
  font-size: 0.98rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
}

.media {
  margin: 0;
}

.media figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 70%, var(--steel)) 100%);
  color: color-mix(in srgb, var(--ivory) 82%, var(--steel));
  box-shadow: inset 5px 0 0 var(--copper);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  pointer-events: none;
}

.frame-portrait {
  aspect-ratio: 4 / 5;
  min-height: 280px;
}

.frame-landscape {
  aspect-ratio: 16 / 10;
  min-height: 180px;
}

.frame-wide {
  aspect-ratio: 21 / 9;
  min-height: 160px;
}

.frame-tile {
  aspect-ratio: 5 / 4;
  min-height: 140px;
}

.frame-photo {
  padding: 0;
  color: transparent;
}

.frame-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-photo img.photo-left {
  object-position: 22% center;
}

.project-cover {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.35rem 1.25rem;
  color: var(--ivory);
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
}

.project-cover-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-cover-title {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.pdf-preview {
  display: block;
  text-decoration: none;
}

.pdf-pages {
  display: grid;
  gap: 0.45rem;
}

.pdf-pages-row {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.3rem;
}

.pdf-pages img {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--steel) 32%, var(--ivory));
}

.pdf-preview:hover .pdf-pages img {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.pdf-preview:focus-visible .pdf-pages img {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-top: 0.9rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

.cert-card {
  margin: 0;
}

.cert-card a {
  display: block;
  text-decoration: none;
}

.cert-card img {
  width: 100%;
  height: auto;
  background: #111;
  border: 1px solid color-mix(in srgb, var(--steel) 32%, var(--ivory));
}

.cert-card img:hover {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.work-list {
  display: grid;
  gap: 1.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.work-item {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.28fr);
  gap: 1.5rem 2rem;
  align-items: center;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--steel) 32%, var(--ivory));
}

.work-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

#ai {
  align-items: start;
}

.work-meta {
  margin: 0 0 0.35rem;
  color: var(--copper);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-item h3,
.entry h3,
.page-title {
  margin: 0;
  color: var(--heading);
  font-weight: 500;
}

.work-item h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.work-item p {
  margin: 0.45rem 0 0;
  max-width: 38rem;
}

.entry-list {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry {
  padding-left: 0.9rem;
  border-left: 3px solid var(--accent);
}

.entry h3 {
  font-size: 1.05rem;
}

.entry .org,
.entry .dates {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.entry p {
  margin: 0.45rem 0 0;
}

.entry-bullets {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
}

.entry-bullets li {
  margin: 0.35rem 0 0;
}

.entry-bullets li:first-child {
  margin-top: 0;
}

.page-hero {
  padding: 3.25rem 0 1.5rem;
}

.page-title {
  color: var(--copper);
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-lead {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  color: var(--text);
  font-size: 1.08rem;
}

.stack {
  display: grid;
  gap: 1.5rem;
}

.contact-rows {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  max-width: 28rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid color-mix(in srgb, var(--steel) 32%, var(--ivory));
  font-size: 0.98rem;
}

.contact-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-row dd {
  margin: 0;
}

.site-footer {
  border-top: 4px solid var(--copper);
  background: var(--steel);
  padding: 1.5rem 0 2rem;
  color: var(--ivory);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--ivory);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--paper);
}

.text-link {
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.text-link:hover {
  color: var(--ink);
}

@media (max-width: 820px) {
  .hero-grid,
  .split,
  .split-reverse,
  .about-split,
  .two-col,
  .work-item,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .nav {
    justify-content: flex-start;
  }

  .about-aside {
    padding-right: 0;
    border-right: 0;
    padding-bottom: 2rem;
    border-bottom: 4px solid var(--copper);
  }

  .about-bio {
    padding-left: 0;
  }

  .hero {
    padding-top: 2.75rem;
  }

  .frame-portrait {
    max-width: 320px;
  }
}

@media (max-width: 520px) {
  .wrap,
  .wrap-narrow {
    width: min(100% - 1.75rem, var(--max));
  }

  .nav a {
    padding-inline: 0.4rem;
    letter-spacing: 0.1em;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media print {
  .skip,
  .site-header,
  .site-footer,
  .actions,
  .media,
  figure {
    display: none !important;
  }

  body {
    font-size: 0.86rem;
    line-height: 1.5;
    color: #000;
  }

  .site-main {
    padding-bottom: 0;
  }

  .page-hero {
    padding: 0 0 0.5rem;
  }

  .section {
    border-top: 0;
    padding: 0.7rem 0;
  }

  .two-col,
  .split,
  .split-reverse,
  .split-photo,
  .split-reverse.split-photo {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .page-title,
  .section-kicker,
  .section-kicker::before,
  .entry {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

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