:root {
  color-scheme: dark;
  --bg: #0b0b0a;
  --ink: #f1eee7;
  --soft: #cfc7b8;
  --muted: #90887a;
  --line: #282620;
  --accent: #d8b66a;
  --accent-strong: #f0d28a;
  --panel: #11100e;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0;
}

::selection {
  background: rgba(216, 182, 106, 0.28);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 182, 106, 0.36);
}

a:hover,
a:focus {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}

a:focus-visible {
  outline: 2px solid rgba(216, 182, 106, 0.55);
  outline-offset: 4px;
}

.page {
  width: min(100% - 48px, 980px);
  margin: 0 auto;
  padding: 34px 0 92px;
}

.intro {
  padding-bottom: 58px;
}

.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 72px;
}

.identity {
  color: var(--ink);
  border-bottom: 0;
}

.identity:hover,
.identity:focus {
  color: var(--ink);
}

.kicker,
.subkicker {
  display: block;
}

.kicker {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
}

.subkicker {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.top-links,
.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
  padding-left: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  list-style: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 720px) 136px;
  gap: 48px;
  align-items: start;
  max-width: 920px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
p,
ol,
ul {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 50px;
  font-weight: 430;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-transform: uppercase;
}

p {
  max-width: 700px;
  margin-bottom: 18px;
  color: var(--soft);
}

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

.lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--soft);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 22px;
  line-height: 1.5;
}

.portrait {
  margin: 10px 0 0;
}

.avatar {
  display: block;
  width: 136px;
  height: 136px;
  border: 1px solid var(--line);
  border-radius: 4px;
  object-fit: cover;
  background: var(--panel);
}

section {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 44px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.section-body {
  min-width: 0;
}

.works,
.timeline-list {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.works {
  display: grid;
  gap: 24px;
  counter-reset: works;
}

.works li {
  position: relative;
  padding-left: 40px;
  counter-increment: works;
}

.works li::before {
  position: absolute;
  top: 4px;
  left: 0;
  color: var(--accent);
  content: counter(works, decimal-leading-zero);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.work-title,
.work-meta {
  display: block;
}

.work-title {
  max-width: 720px;
  color: var(--ink);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 20px;
  font-weight: 430;
  line-height: 1.42;
}

.work-meta {
  max-width: 720px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.timeline-list {
  display: grid;
  max-width: 720px;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.timeline-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.timeline-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
  text-transform: uppercase;
}

.timeline-list p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.62;
}

.contact-list {
  justify-content: flex-start;
}

@media (max-width: 860px) {
  .page {
    width: min(100% - 36px, 980px);
    padding: 28px 0 76px;
  }

  .masthead {
    margin-bottom: 56px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .portrait {
    order: -1;
    margin-top: 0;
  }

  .avatar {
    width: 112px;
    height: 112px;
  }

  h1 {
    font-size: 42px;
    line-height: 1.1;
  }

  .lede {
    font-size: 21px;
    line-height: 1.52;
  }

  section {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 30px 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
    line-height: 1.66;
  }

  .page {
    width: min(100% - 28px, 980px);
  }

  .masthead {
    flex-direction: column;
    gap: 18px;
  }

  .top-links {
    justify-content: flex-start;
  }

  h1 {
    font-size: 34px;
  }

  .lede {
    font-size: 19px;
  }

  .works li {
    padding-left: 34px;
  }

  .work-title {
    font-size: 19px;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 31px;
  }
}
