:root {
  color-scheme: light;
  --ink: #171a18;
  --muted: #626a65;
  --paper: #f4f6f2;
  --surface: #ffffff;
  --line: #cdd3ce;
  --orange: #ee5d3f;
  --blue: #45839b;
  --green: #2f7655;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  text-decoration: none;
}

.wordmark-mark {
  width: 16px;
  height: 16px;
  background: var(--orange);
  border-radius: 2px;
  box-shadow: 6px 6px 0 var(--blue);
}

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

nav a,
footer a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.inline-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

nav a {
  text-decoration: none;
}

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

.intro {
  min-height: 430px;
  padding: 88px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 500px);
  grid-template-areas:
    "eyebrow eyebrow"
    "title lede"
    "jump jump";
  align-content: center;
  column-gap: 64px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro > .eyebrow {
  grid-area: eyebrow;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  grid-area: title;
  margin: 0;
  font-size: 88px;
  line-height: 0.94;
  letter-spacing: 0;
}

.lede {
  grid-area: lede;
  align-self: end;
  margin: 0 0 5px;
  max-width: 460px;
  color: #303632;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 560;
}

.jump-link {
  grid-area: jump;
  justify-self: start;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 42px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.jump-link span {
  color: var(--orange);
  font-size: 18px;
  transition: transform 180ms ease;
}

.jump-link:hover span {
  transform: translateY(4px);
}

.projects {
  padding: 82px 0 100px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  margin: 0 0 8px;
}

h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  perspective: 1200px;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
  transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
  transform-style: preserve-3d;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgb(22 28 24 / 12%);
}

.project-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, white);
  outline-offset: 5px;
}

.project-media {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: #e7ebe8;
  border-bottom: 1px solid var(--line);
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 10px solid rgb(255 255 255 / 0%);
  pointer-events: none;
  transition: border-color 220ms ease;
}

.project-card:hover .project-media::after {
  border-color: rgb(255 255 255 / 30%);
}

.project-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card:hover .project-media img {
  transform: scale(1.035);
}

.project-status {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.project-copy {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-content: start;
  padding: 28px;
}

.project-kicker {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.project-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 20px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.project-card:hover .project-arrow {
  background: var(--accent);
  color: white;
  transform: translate(2px, -2px);
}

.project-copy > p {
  grid-column: 1 / -1;
  margin: 22px 0 24px;
  max-width: 48ch;
  color: var(--muted);
  font-size: 16px;
}

.project-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.project-tags li {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #4b534e;
  font-size: 12px;
  font-weight: 700;
}

.about {
  padding: 86px 0 104px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.25fr);
  column-gap: 72px;
}

.about > .eyebrow {
  grid-column: 1;
}

.about h2 {
  grid-column: 1;
  max-width: 9ch;
}

.about-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 680px;
  color: #333a35;
  font-size: 20px;
  line-height: 1.55;
}

.about-copy p {
  margin: 0;
}

.about-copy p + p {
  margin-top: 20px;
}

footer {
  min-height: 98px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

footer a {
  justify-self: end;
}

.footer-nav {
  justify-self: center;
  gap: 22px;
}

.footer-nav a {
  justify-self: auto;
}

.inner-page {
  min-height: calc(100vh - 180px);
}

.page-hero {
  padding: 88px 0 76px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 920px;
  font-size: 68px;
  line-height: 0.98;
}

.page-lede {
  max-width: 760px;
  margin: 30px 0 0;
  color: #353c37;
  font-size: 23px;
  line-height: 1.45;
}

.article-body {
  max-width: 840px;
  padding: 70px 0 104px;
}

.article-section + .article-section {
  margin-top: 58px;
  padding-top: 58px;
  border-top: 1px solid var(--line);
}

.article-section h2 {
  margin-bottom: 20px;
  font-size: 30px;
}

.article-section h3 {
  margin: 30px 0 12px;
  font-size: 19px;
}

.article-section p,
.article-section li {
  color: #3f4741;
  font-size: 18px;
  line-height: 1.65;
}

.article-section p {
  margin: 0;
}

.article-section p + p {
  margin-top: 18px;
}

.article-section ul {
  margin: 18px 0 0;
  padding-left: 22px;
}

.article-section li + li {
  margin-top: 10px;
}

.project-page-hero {
  padding-bottom: 46px;
}

.project-page-hero h1 {
  max-width: none;
}

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

.button-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 5px;
  color: white;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button-link:hover,
.button-link:focus-visible {
  background: var(--accent, var(--green));
  border-color: var(--accent, var(--green));
}

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

.project-screenshot {
  margin: 38px 0 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent, var(--green));
  border-radius: 7px;
}

.project-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 850;
  text-underline-offset: 6px;
}

.policy-date {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

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

  .intro {
    min-height: 390px;
    padding: 64px 0 56px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "lede"
      "jump";
  }

  h1 {
    font-size: 64px;
  }

  .lede {
    margin-top: 26px;
    font-size: 21px;
  }

  .jump-link {
    margin-top: 28px;
  }

  .projects {
    padding: 66px 0 80px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .about {
    grid-template-columns: 1fr;
    padding: 70px 0 82px;
  }

  .about > .eyebrow,
  .about h2,
  .about-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .about h2 {
    max-width: 13ch;
  }

  .about-copy {
    margin-top: 30px;
    font-size: 18px;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  .footer-nav {
    display: none;
  }

  .page-hero {
    padding: 66px 0 58px;
  }

  .page-hero h1 {
    font-size: 52px;
  }

  .page-lede {
    font-size: 20px;
  }

  .article-body {
    padding: 56px 0 80px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 70px;
  }

  nav {
    gap: 16px;
  }

  h1 {
    font-size: 50px;
  }

  .site-header nav a:nth-child(3) {
    display: none;
  }

  h2 {
    font-size: 34px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 14px;
  }

  .project-copy {
    padding: 22px;
  }

  h3 {
    font-size: 29px;
  }

  .project-copy > p {
    margin-top: 18px;
  }
}

@media (hover: none) {
  .project-card {
    transform: none !important;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
