:root {
  --bg: #f3f0e7;
  --surface: #fffdf8;
  --ink: #183026;
  --muted: #667168;
  --line: #d8d3c7;
  --accent: #1f6a46;
  --max: 1080px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-line {
  min-height: 70px;
  display: flex;
  align-items: center;
}
.brand-logo {
  display: inline-flex;
  color: var(--ink);
  text-decoration: none;
}
.d-logo {
  width: 34px;
  height: 34px;
}
.brand-logo:hover { color: var(--accent); }

.hero {
  max-width: var(--max);
  padding-block: clamp(96px, 12vw, 150px) clamp(72px, 9vw, 110px);
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1,
h2,
p { margin-top: 0; }
h1,
h2 {
  line-height: 1;
  letter-spacing: -.05em;
}
h1 {
  max-width: 12ch;
  margin-bottom: 26px;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  font-weight: 900;
}
.hero-copy {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.16rem, 2vw, 1.45rem);
}

.projects {
  padding-block: clamp(64px, 8vw, 100px) clamp(84px, 10vw, 130px);
  border-top: 1px solid var(--line);
}
.section-title {
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.project-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(24, 48, 38, .07);
}
.project-card-muted {
  border-style: dashed;
  background: transparent;
}
.project-card-muted:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.project-card h2 {
  margin: auto 0 10px;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}
.project-card p {
  max-width: 480px;
  margin-bottom: 18px;
  color: var(--muted);
}
.project-domain {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.site-footer { border-top: 1px solid var(--line); }
.footer-line {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}
.footer-line p { margin: 0; }
.version { margin-left: 8px; }
.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
}
.social-link svg {
  width: 17px;
  height: 17px;
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.error-page { min-height: 70vh; }

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .header-line { min-height: 64px; }
  .d-logo { width: 31px; height: 31px; }
  .hero { padding-block: 80px 76px; }
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 210px; }
  .footer-line {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-card { transition: none; }
}
