:root {
  color-scheme: dark;
  --header-height: 3.5rem;
  --ink: #0b100e;
  --panel: #141c18;
  --paper: #eadcc6;
  --muted: #b7a88e;
  --copper: #d08a3c;
  --copper-deep: #a35f1e;
  --juniper: #7eb89a;
  --line: color-mix(in oklab, var(--paper) 18%, transparent);
  --focus: var(--copper);
  --hero-veil: linear-gradient(
    to top,
    rgb(11 16 14 / 0.92) 0%,
    rgb(11 16 14 / 0.55) 42%,
    rgb(11 16 14 / 0.2) 70%,
    rgb(11 16 14 / 0.35) 100%
  );
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Source Serif 4", "Palatino Linotype", Palatino, serif;
  --measure: 42rem;
  --page: min(72rem, calc(100% - 2rem));
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ink: #f3ead8;
    --panel: #efe6d4;
    --paper: #1a231c;
    --muted: #5c5346;
    --copper: #9a5416;
    --copper-deep: #7a3f0e;
    --juniper: #2f5c48;
    --line: color-mix(in oklab, var(--paper) 18%, transparent);
    --hero-veil: linear-gradient(
      to top,
      rgb(243 234 216 / 0.94) 0%,
      rgb(243 234 216 / 0.5) 46%,
      rgb(243 234 216 / 0.12) 72%,
      rgb(26 35 28 / 0.18) 100%
    );
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: var(--paper);
    --line: var(--paper);
  }
}

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

html {
  scroll-padding-top: var(--header-height);
  background: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--paper);
  background: var(--ink);
}

img {
  max-width: 100%;
  height: auto;
}

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

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

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  padding: 0.5rem 0.8rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--copper);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden:focus,
.visually-hidden:focus-within,
.visually-hidden:active {
  position: fixed;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
}

.page {
  overflow-anchor: none;
}

.site-header {
  min-height: var(--header-height);
}

.sticky-container {
  position: sticky;
  top: 0;
  z-index: 10;
  container-type: scroll-state;
  container-name: site-nav;
}

.sticky-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  padding: 0.4rem 1rem;
  background: color-mix(in oklab, var(--ink) 88%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
}

@container site-nav scroll-state(stuck: top) {
  .sticky-bar {
    border-bottom-color: var(--line);
    background: color-mix(in oklab, var(--ink) 96%, transparent);
  }
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  text-decoration: none;
}

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

.sticky-bar nav {
  display: flex;
  align-items: center;
}

.menu-button {
  font: inherit;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
}

.site-header.is-wide .menu-button {
  display: none;
}

.site-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header:not(.is-wide) .menu-button {
  anchor-name: --menu-button;
}

.site-menu a {
  color: var(--paper);
  text-decoration: none;
}

.site-menu a:hover,
.site-menu a[aria-current="true"] {
  color: var(--copper);
}

.site-menu a[aria-current="true"] {
  box-shadow: inset 0 -2px 0 var(--copper);
}

.site-header:not(.is-wide) .site-menu {
  position: fixed;
  inset: auto;
  inset-block-start: var(--header-height);
  inset-inline-end: 0;
  width: min(18rem, calc(100vw - 1rem));
  max-block-size: calc(100dvh - 5rem);
  overflow: auto;
  margin: 0;
  padding: 0.8rem 1rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
}

.site-header:not(.is-wide) .site-menu a {
  display: block;
  padding: 0.55rem 0.2rem;
}

.site-header.is-wide .site-menu {
  position: static;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: auto;
  max-inline-size: none;
  max-block-size: none;
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.site-header.is-wide .site-menu:is(:popover-open, .\:popover-open) {
  display: flex;
}

.site-header.is-wide .site-menu::backdrop {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .site-header:not(.is-wide) .site-menu {
    transition: opacity 160ms ease, translate 160ms ease, overlay 160ms allow-discrete, display 160ms allow-discrete;
    transition-behavior: allow-discrete;
  }

  @starting-style {
    .site-header:not(.is-wide) .site-menu:popover-open {
      opacity: 0;
      translate: 0 -0.4rem;
    }
  }
}

.hero {
  display: grid;
  grid-template: minmax(min(92vh, 46rem), auto) / minmax(0, 1fr);
  overflow: clip;
}

.hero-media,
.hero-copy {
  grid-area: 1 / 1;
}

.hero-media {
  position: relative;
  z-index: 0;
  min-height: min(92vh, 46rem);
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-veil);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  align-items: end;
  align-self: end;
  justify-self: center;
}

.place {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--juniper);
}

.hero h1 {
  margin: 0.12rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 38rem;
  margin: 0.4rem 0 0;
  font-size: 1.2rem;
}

.portrait {
  width: min(13.5rem, 36vw);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 12%;
  border: 2px solid var(--copper);
  background: var(--panel);
}

.wrap {
  width: var(--page);
  margin-inline: auto;
}

section {
  padding: 3.25rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

section h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin: 0 0 1rem;
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
}

.proof > div {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--copper);
  padding-top: 0.7rem;
}

.proof dt {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--paper);
}

.proof dd {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.now-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
}

.now-grid h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.now-grid p {
  margin: 0 0 0.8rem;
}

.role-when {
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--copper);
}

.timeline li {
  position: relative;
  padding: 0 0 1.6rem 1.25rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--ink);
  border: 2px solid var(--copper);
}

.timeline h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.timeline .when {
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline p {
  margin: 0.35rem 0 0;
  max-width: var(--measure);
}

.early {
  max-width: var(--measure);
}

.early h3 {
  font-family: var(--font-display);
  margin: 1.5rem 0 0.4rem;
}

.project-list {
  display: grid;
  gap: 1.4rem;
}

.project-list article {
  padding-left: 1rem;
  border-left: 2px solid var(--juniper);
}

.project-list h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 600;
}

.project-list p {
  margin: 0;
  max-width: var(--measure);
}

.life-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.life-grid h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.spin {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.contact-list a {
  font-size: 1.1rem;
}

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

.site-footer p {
  max-width: 40rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.skills li {
  border: 1px solid var(--line);
  padding: 0.15rem 0.55rem;
  font-size: 0.92rem;
}

@media (max-width: 44rem) {
  .hero-copy,
  .now-grid,
  .life-grid,
  .proof {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: 8.5rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 5.4rem);
  }
}

@media (forced-colors: active) {
  .sticky-bar,
  .timeline,
  .project-list article,
  .proof > div,
  .skills li,
  .portrait {
    border-color: CanvasText;
  }

  .site-menu a[aria-current="true"] {
    outline: 2px solid Highlight;
  }
}

@media print {
  :root {
    color-scheme: light;
    --ink: #fff;
    --paper: #111;
    --muted: #333;
    --copper: #7a3f0e;
    --line: #ccc;
  }

  .site-header,
  .skip-link,
  .hero-media,
  .menu-button {
    display: none !important;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    margin-top: 0;
  }

  a {
    color: inherit;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #444;
  }

  .wordmark::after,
  nav a::after {
    content: none !important;
  }
}
