:root {
  --paper: #f5f0e6;
  --ink: #201d19;
  --mint: #b9efd2;
  --coral: #f47860;
  --blue: #76a6ef;
  --olive: #c4cf71;
  --line: rgba(32, 29, 25, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 64px) 32px;
  overflow: hidden;
}

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

.wordmark {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.wordmark-cap {
  width: 12px;
  height: 19px;
  margin-right: 3px;
  border: 1.5px solid currentColor;
  border-radius: 2px 2px 5px 5px;
  background: repeating-linear-gradient(90deg, transparent 0 2px, currentColor 2px 3px);
  transform: rotate(-8deg);
}

.wordmark-apps {
  padding: 2px 7px 3px;
  border-radius: 999px;
  background: var(--mint);
}

.fresh-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fresh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2c9f69;
  box-shadow: 0 0 0 4px rgba(44, 159, 105, 0.13);
}

.hero {
  min-height: 500px;
  padding: clamp(66px, 8vw, 118px) 0 clamp(76px, 9vw, 128px);
}

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

.eyebrow,
.section-heading,
.project-topline,
.project-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 18px;
}

h1 {
  max-width: 1120px;
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(58px, 8.1vw, 130px);
  font-weight: 620;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  line-height: 0.86;
  letter-spacing: -0.065em;
}

.hero-intro {
  max-width: 690px;
  margin: 34px 0 0;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.48;
  letter-spacing: -0.02em;
}

.projects {
  padding-top: 14px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  padding: 0 4px 16px;
  border-bottom: 1px solid var(--line);
}

.section-heading p {
  margin: 0;
}

.section-heading span {
  color: rgba(32, 29, 25, 0.55);
}

.project-list {
  display: grid;
  gap: 16px;
  padding-top: 16px;
}

.project {
  position: relative;
  min-height: 280px;
  padding: 25px 28px 26px;
  border: 1.5px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project:hover,
.project:focus-within {
  transform: translate(-4px, -4px) rotate(-0.25deg);
  box-shadow: 9px 10px 0 var(--ink);
}

.project--elaro { background: var(--coral); }
.project--minnas { background: var(--blue); }
.project--metner { background: var(--olive); }

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.project-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.75fr);
  gap: 40px;
  align-items: end;
  margin-top: 54px;
}

.project-kicker {
  margin: 0 0 4px;
}

.project h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(64px, 8vw, 118px);
  font-weight: 640;
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.project-description {
  max-width: 550px;
  margin: 0 0 7px;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.44;
  letter-spacing: -0.02em;
}

.project-link {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 800;
  transition: gap 160ms ease, background 160ms ease, color 160ms ease;
}

.project-link:hover {
  gap: 13px;
  background: var(--ink);
  color: var(--paper);
}

.project-link:focus-visible,
footer a:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 4px;
}

.project-motif {
  position: absolute;
  right: 28px;
  top: 48px;
  width: 210px;
  height: 96px;
  opacity: 0.22;
}

.project-motif--steps {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.project-motif--steps span {
  display: grid;
  place-items: center;
  width: 62px;
  border: 2px solid var(--ink);
  border-right: 0;
  font-family: var(--font-display), serif;
  font-size: 24px;
}

.project-motif--steps span:nth-child(1) { height: 40px; }
.project-motif--steps span:nth-child(2) { height: 68px; }
.project-motif--steps span:nth-child(3) { height: 96px; border-right: 2px solid var(--ink); }

.project-motif--inbox {
  display: grid;
  gap: 10px;
}

.project-motif--inbox span {
  display: block;
  height: 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.project-motif--inbox span:nth-child(2) { width: 78%; margin-left: auto; }
.project-motif--inbox span:nth-child(3) { width: 60%; }

.project-motif--storefront {
  border: 2px solid var(--ink);
  border-top: 0;
}

.project-motif--storefront .awning {
  display: block;
  height: 32px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: repeating-linear-gradient(90deg, transparent 0 30px, var(--ink) 30px 32px);
}

.project-motif--storefront .door,
.project-motif--storefront .window {
  position: absolute;
  bottom: 0;
  display: block;
  height: 62px;
  border: 2px solid var(--ink);
  border-bottom: 0;
}

.project-motif--storefront .door { left: 22px; width: 42px; }
.project-motif--storefront .window { right: 22px; width: 94px; height: 44px; bottom: 12px; }

footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 72px 4px 6px;
}

footer p {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(26px, 3vw, 46px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

footer a {
  display: inline-flex;
  gap: 7px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid currentColor;
  font-size: 14px;
  font-weight: 800;
}

footer a:hover span {
  transform: translate(2px, -2px);
}

footer a span {
  transition: transform 160ms ease;
}

@media (max-width: 880px) {
  .hero {
    min-height: auto;
  }

  .hero-intro { max-width: 610px; }

  .project-content {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 46px;
  }

  .project-description {
    max-width: 570px;
    padding-bottom: 58px;
  }

  .project-motif { width: 150px; right: 20px; }

}

@media (max-width: 600px) {
  main { padding-inline: 14px; }
  .site-header { align-items: flex-start; }
  .fresh-count { max-width: 150px; justify-content: flex-end; text-align: right; font-size: 10px; }

  .hero { padding: 64px 2px 84px; }
  h1 { font-size: clamp(57px, 19vw, 86px); }
  .hero-intro { padding-right: 0; font-size: 18px; }

  .section-heading { font-size: 10px; }
  .project { min-height: 430px; padding: 20px; border-radius: 22px; }
  .project:hover, .project:focus-within { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--ink); }
  .project-topline { font-size: 10px; }
  .project-content { margin-top: 66px; }
  .project h2 { font-size: clamp(62px, 23vw, 92px); }
  .project-description { padding-bottom: 70px; }
  .project-link { left: 20px; right: auto; bottom: 22px; }
  .project-motif { top: 58px; right: 18px; width: 120px; transform: scale(0.8); transform-origin: top right; }

  footer { align-items: flex-start; flex-direction: column; padding-top: 56px; }
}

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