:root {
  color-scheme: light;
  --paper: #eee8dc;
  --ink: #191a18;
  --muted: #5f5e57;
  --line: #aba394;
  --rust: #a84e32;
  --forest: #273c32;
  --max: 1260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--rust) var(--paper);
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: var(--paper);
}

html::-webkit-scrollbar-thumb {
  background: var(--rust);
  border: 2px solid var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

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

.mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  font: 850 0.72rem/1 ui-monospace, "Cascadia Code", monospace;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  min-width: 40px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--rust);
}

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 0.32fr 1fr;
  grid-template-rows: auto 1fr;
  column-gap: clamp(44px, 8vw, 126px);
  padding: 105px 0 115px;
}

.eyebrow {
  margin: 0;
  color: var(--rust);
  font: 850 0.68rem/1.3 ui-monospace, "Cascadia Code", monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  grid-column: 2;
  margin: 0;
  max-width: 980px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.4rem, 8.5vw, 8.4rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.058em;
}

h1 em {
  color: var(--rust);
  font-weight: 400;
}

.hero-notes {
  grid-column: 2;
  align-self: end;
  max-width: 650px;
  margin-top: 58px;
}

.hero-notes > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.27rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button:hover,
.button:focus-visible {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--paper);
}

.work {
  padding: 110px 0 125px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.32fr 1fr;
  gap: clamp(44px, 8vw, 126px);
  margin-bottom: 80px;
}

.section-heading h2,
.skills h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 6vw, 6.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.project-list {
  border-top: 1px solid var(--ink);
}

.project-list article {
  min-height: 156px;
  display: grid;
  grid-template-columns: 0.18fr 1fr auto;
  gap: 34px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.project-list article > span {
  color: var(--rust);
  font: 800 0.68rem/1 ui-monospace, "Cascadia Code", monospace;
}

.project-list h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.2vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
}

.project-list p {
  max-width: 660px;
  margin: 10px 0 0;
  color: var(--muted);
}

.project-list article > a {
  min-width: 78px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--rust);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.skills {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 9vw, 140px);
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.skills h2 {
  margin-top: 22px;
}

.skills ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--forest);
  list-style: none;
}

.skills li {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.skills li a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  text-decoration: none;
}

.skills li span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-align: right;
  text-transform: uppercase;
}

footer {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

footer a {
  min-width: 40px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

@media (max-width: 820px) {
  .hero,
  .section-heading,
  .skills {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 34px;
    padding: 82px 0 95px;
  }

  h1,
  .hero-notes {
    grid-column: 1;
  }

  .hero-notes {
    margin-top: 8px;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 24px), var(--max));
  }

  nav a:not(:last-child) {
    display: none;
  }

  h1 {
    font-size: clamp(3.7rem, 18vw, 5.2rem);
  }

  .work,
  .skills {
    padding: 88px 0;
  }

  .section-heading {
    gap: 24px;
    margin-bottom: 52px;
  }

  .project-list article {
    grid-template-columns: 42px 1fr;
    gap: 18px;
    padding: 26px 0;
  }

  .project-list article > a {
    grid-column: 2;
    justify-content: flex-start;
  }

  .skills {
    gap: 58px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
