:root {
  --paper: #f6f3ec;
  --ink: #1f302b;
  --muted: #566760;
  --line: #cfcec3;
  --maple: #bb4d32;
  --moss: #405d4d;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

a {
  color: inherit;
}

main,
footer {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.mark {
  width: 30px;
  height: 30px;
  display: block;
}

.nav-link,
footer a:not(.wordmark) {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-underline-offset: 4px;
}

.hero {
  padding: clamp(88px, 15vw, 180px) 0 clamp(110px, 17vw, 190px);
}

.eyebrow {
  margin: 0;
  color: var(--maple);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.075em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-eyebrow {
  text-transform: none;
}

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

h1 {
  max-width: 850px;
  margin: 22px 0 28px;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 9vw, 7.6rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.95;
}

h1 em {
  color: var(--maple);
  font-weight: 500;
}

.intro {
  max-width: 450px;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.6;
}

.work {
  padding-bottom: clamp(100px, 14vw, 160px);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.rule {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.project {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(250px, 0.72fr);
  overflow: hidden;
  background: #e7ece7;
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project:hover {
  box-shadow: 8px 10px 0 var(--ink);
  transform: translate(-4px, -4px);
}

.project-art {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 24px 24px 64px;
  background: #0b1732;
}

.project-screenshot {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.project-app-icon {
  position: absolute;
  bottom: 12px;
  left: 24px;
  display: block;
  width: 40px;
  overflow: hidden;
  border-radius: 20%;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

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

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 72px);
}

.project-type,
.project-link {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-type {
  margin-bottom: 18px;
  color: var(--maple);
}

h2 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

h2 span {
  color: var(--maple);
  font-family: var(--sans);
  font-size: 0.65em;
  vertical-align: 0.1em;
}

.project-copy > p:not(.project-type) {
  max-width: 370px;
  color: var(--muted);
  line-height: 1.55;
}

.project-link {
  margin-top: 18px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 680px) {
  main,
  footer {
    width: min(100% - 32px, 1120px);
  }

  nav {
    padding-top: 20px;
  }

  .hero {
    padding-top: 100px;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5rem);
  }

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

  .project-art {
    padding: 16px 16px 54px;
  }

  .project-app-icon {
    bottom: 10px;
    left: 16px;
    width: 36px;
  }

  .project-copy {
    padding: 34px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
