:root {
  --paper: #f1efe8;
  --ink: #151715;
  --muted: #6f716a;
  --line: rgba(21, 23, 21, 0.18);
  --acid: #c9ff3d;
  --rust: #d85a32;
  --green: #1f7a45;
  --green-deep: #0f4a28;
  --dark: #20251f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Verdana, Geneva, sans-serif;
  overflow-x: hidden;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

a {
  text-decoration: none;
}

.grain {
  position: fixed;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  padding: 76px 0 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.hero h1 {
  margin: 0 0 24px;
  max-width: 1000px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(35px, 5.35vw, 77px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.hero h1 em {
  padding-left: 8vw;
  color: var(--green);
  font-weight: 400;
}

.hero-bottom {
  padding-left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 56px;
}

.intro {
  max-width: none;
  margin: 0;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.intro + .intro {
  margin-top: 24px;
}

.work,
.notes {
  padding: 140px 0;
}

.work {
  padding: 28px 0 60px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.project {
  min-height: 380px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(21, 23, 21, 0.09);
}

.project-main {
  min-height: 610px;
  grid-row: span 2;
  background: #87cefa;
}

.project-small {
  min-height: 296px;
}

.project-dark {
  background: #bdb76b;
  color: var(--ink);
}

.project-accent {
  background: lightsalmon;
}

.project-slate {
  background: #708090;
}

.project-mint {
  background: #90ee90;
}

.project-meta,
.text-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tag {
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 99px;
}

.project h3 {
  max-width: 620px;
  margin: 0;
  font-family: Verdana, Geneva, sans-serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.project > div > p {
  max-width: 480px;
  margin: 30px 0 0;
  line-height: 1.6;
}

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

.project-preview {
  position: relative;
  margin: 30px 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(21, 23, 21, 0.3);
  background: var(--dark);
}

.project-preview img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 300ms ease, opacity 300ms ease;
}

.project-preview span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  background: var(--acid);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-preview:hover img,
.project-preview:focus-visible img {
  transform: scale(1.025);
  opacity: 0.88;
}

.text-button {
  width: 100%;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid currentColor;
  background: none;
  cursor: pointer;
  text-align: left;
}

.text-button span {
  font-size: 20px;
  transition: transform 180ms ease;
}

.text-button:hover span {
  transform: rotate(90deg);
}

.text-link {
  padding-top: 18px;
  color: var(--green-deep);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}

.text-link span {
  font-size: 19px;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translate(3px, -3px);
}

.notes {
  padding-top: 0;
  padding-bottom: 40px;
  background: var(--paper);
}

.footer {
  margin-top: 0;
  padding-top: 28px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 800px) {
  .shell {
    width: min(100% - 28px, 660px);
  }

  .hero {
    padding: 48px 0 24px;
  }

  .hero h1 {
    font-size: clamp(32px, 9.5vw, 56px);
    line-height: 1.18;
  }

  .hero h1 em {
    padding-left: 0;
  }

  .hero-bottom {
    padding-left: 0;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .work,
  .notes {
    padding: 90px 0;
  }

  .work {
    padding: 20px 0 48px;
  }

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

  .project,
  .project-main,
  .project-small {
    min-height: 410px;
    grid-row: auto;
  }

}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 10vw;
  }

  .project {
    min-height: 390px;
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
