:root {
  color-scheme: light;
  --ink: #263241;
  --muted: #637083;
  --paper: #fffdf4;
  --sun: #ffe66d;
  --sky: #8bd3dd;
  --rose: #ff6f91;
  --leaf: #6bd47f;
  --blue: #4dabf7;
  --line: #263241;
  --shadow: 0 10px 0 var(--line);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 230, 109, 0.32), transparent 32rem),
    linear-gradient(315deg, rgba(139, 211, 221, 0.4), transparent 30rem),
    var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 44px);
  border-bottom: 3px solid var(--line);
  background: rgba(255, 253, 244, 0.94);
  backdrop-filter: blur(10px);
}

.brand,
.top-nav,
.hero-actions,
.project-link {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--rose);
  color: white;
  box-shadow: 0 4px 0 var(--line);
}

.top-nav {
  gap: 8px;
}

.top-nav a {
  min-height: 38px;
  padding: 8px 12px;
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  border-color: var(--line);
  color: var(--ink);
  background: white;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: min(720px, calc(100vh - 150px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) 0;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow,
.project-kicker {
  margin: 0 0 10px;
  color: #b11f4a;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  line-height: 0.98;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
  line-height: 1.5;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action,
.project-link {
  justify-content: center;
  min-height: 48px;
  border: 3px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--line);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-action {
  background: var(--sun);
}

.secondary-action {
  background: white;
}

.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible,
.project-link:hover,
.project-link:focus-visible {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--line);
}

.preview-stack {
  position: relative;
  min-height: clamp(330px, 43vw, 500px);
}

.preview {
  position: absolute;
  width: min(72%, 520px);
  border: 4px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.preview-one {
  top: 6%;
  right: 0;
  transform: rotate(2deg);
}

.preview-two {
  top: 31%;
  left: 0;
  width: min(64%, 460px);
  transform: rotate(-3deg);
}

.preview-three {
  right: 7%;
  bottom: 3%;
  width: min(58%, 420px);
  transform: rotate(4deg);
}

.intro-band {
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  background: var(--sky);
}

.intro-band p {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.projects {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 82px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1;
}

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

.project-card {
  overflow: hidden;
  border: 4px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 0 var(--line);
}

.project-image-link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 4px solid var(--line);
  background: #edf7fb;
}

.project-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  display: grid;
  min-height: 280px;
  padding: 18px;
}

.project-content h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.project-content p:not(.project-kicker) {
  color: var(--muted);
  line-height: 1.48;
}

.project-link {
  align-self: end;
  gap: 8px;
  width: fit-content;
  background: var(--leaf);
}

.site-footer {
  padding: 24px 16px 34px;
  border-top: 3px solid var(--line);
  background: var(--ink);
  color: white;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .preview-stack {
    min-height: 470px;
    order: -1;
  }

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

  .project-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) 1fr;
  }

  .project-image-link {
    height: 100%;
    min-height: 260px;
    border-right: 4px solid var(--line);
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .top-nav {
    display: none;
  }

  .hero {
    width: min(100% - 24px, 1120px);
    padding-top: 24px;
  }

  .preview-stack {
    min-height: 350px;
  }

  .preview {
    width: 82%;
  }

  .preview-two {
    width: 76%;
  }

  .preview-three {
    width: 72%;
  }

  .hero-actions a {
    width: 100%;
  }

  .projects {
    width: min(100% - 24px, 1120px);
  }

  .project-card {
    display: block;
  }

  .project-image-link {
    min-height: 0;
    border-right: 0;
    border-bottom: 4px solid var(--line);
  }

  .project-content {
    min-height: 0;
  }
}
