:root {
  --paper: #f7f5ef;
  --ink: #171713;
  --muted: #716f67;
  --line: rgba(23, 23, 19, .14);
  --card-radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 9% 2%, rgba(255, 208, 107, .15), transparent 25rem),
    var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

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

.maker-mark,
.github-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  font: 600 14px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.01em;
}

.maker-mark__shape {
  width: 31px;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-radius: 45% 55% 53% 47% / 57% 46% 54% 43%;
  background: #ffcf59;
  transform: rotate(-8deg);
  box-shadow: 3px 3px 0 currentColor;
}

.github-link {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}

.github-link:hover { background: #fff; transform: translateY(-2px); }

.hero {
  padding: clamp(72px, 10vw, 150px) 0 clamp(58px, 8vw, 112px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font: 700 11px/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.055em;
}

h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(48px, 7.2vw, 104px);
  font-weight: 600;
  line-height: .97;
}

.hero-copy {
  max-width: 560px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 2.15 / 1;
  overflow: hidden;
  border: 1px solid rgba(23, 23, 19, .09);
  border-radius: var(--card-radius);
  background: #ddd;
  box-shadow: 0 2px 0 rgba(23, 23, 19, .05);
  isolation: isolate;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

.project-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 30%, rgba(8, 8, 7, .78));
}

.project-card__meta {
  position: absolute;
  z-index: 2;
  inset: auto 20px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 16px;
  color: #fff;
}

.project-card__kind {
  grid-column: 1 / -1;
  font: 600 10px/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .72;
}

.project-card strong {
  font: 600 clamp(20px, 2vw, 30px)/1.1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.035em;
}

.project-card__arrow {
  display: grid;
  width: 36px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  font-size: 17px;
  transition: color .2s ease, background .2s ease;
}

.project-card:hover,
.project-card:focus-visible {
  outline: none;
  transform: translateY(-7px);
  box-shadow: 0 18px 38px rgba(23, 23, 19, .14);
}

.project-card:hover img,
.project-card:focus-visible img { transform: scale(1.035); }
.project-card:hover .project-card__arrow,
.project-card:focus-visible .project-card__arrow { background: #fff; color: #111; }

.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-top: clamp(90px, 13vw, 190px);
  padding: 55px 0 90px;
  border-top: 1px solid var(--line);
}

.about h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 600;
  line-height: 1;
}

.about div p {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a { text-underline-offset: 3px; }

.legal-page {
  width: min(820px, calc(100% - 48px));
  padding: clamp(64px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
}

.legal-page > .eyebrow { margin-bottom: 18px; }

.legal-page h1 {
  margin: 0 0 28px;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1;
}

.legal-lede {
  max-width: 650px;
  margin: 0 0 60px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.legal-section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 18px;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -.035em;
}

.legal-section h3 {
  margin: 26px 0 10px;
  font-size: 18px;
}

.legal-section p,
.legal-section address,
.legal-section li {
  max-width: 720px;
  color: #3f3e39;
  font-size: 16px;
  line-height: 1.7;
}

.legal-section address { font-style: normal; }
.legal-section p { margin: 10px 0; }
.legal-section ul { margin: 10px 0; padding-left: 22px; }
.legal-section a { text-underline-offset: 3px; }
.legal-meta { color: var(--muted); font-size: 13px; }

@media (max-width: 1080px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card:last-child { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
}

@media (max-width: 680px) {
  .site-header,
  main,
  .site-footer { width: min(100% - 28px, 1420px); }
  .site-header { height: 74px; }
  .maker-mark { font-size: 13px; }
  .github-link { padding: 9px 12px; font-size: 12px; }
  .hero { text-align: left; }
  h1 { margin-inline: 0; font-size: clamp(45px, 15vw, 72px); }
  .hero-copy { margin-inline: 0; }
  .project-grid { grid-template-columns: 1fr; gap: 14px; }
  .project-card,
  .project-card:last-child { grid-column: auto; aspect-ratio: 1.7 / 1; min-height: 220px; }
  .about { grid-template-columns: 1fr; gap: 12px; }
  .site-footer { gap: 14px 20px; }
  .legal-page { width: min(100% - 28px, 820px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
