:root {
  --bg: #fbf7f1;
  --ink: #1f1a24;
  --muted: #6b6470;
  --card: #ffffff;
  --line: #ebe4da;
  --sky: #5fb4ec;
  --grass: #5bbf4a;
  --accent: #e8724a;
  --night: #1c0f21;
  --radius: 22px;
  --max: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.top, main, footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
}
.logo {
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo span { color: var(--accent); }
nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}
nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  padding: 96px 0 88px;
  max-width: 720px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.lead {
  margin: 24px 0 36px;
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 34em;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-2px); background: var(--accent); }
.button.ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.button.ghost:hover { background: var(--ink); color: #fff; }

/* Sections */
h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 24px;
}
.projects, .contact { padding: 40px 0 64px; }

/* Cards */
.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(31, 26, 36, .35);
}
.card h3 {
  margin: 6px 0 8px;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.card p { margin: 0; color: var(--muted); }
.tag {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  overflow: hidden;
  margin-bottom: 20px;
}
.card-art {
  background: linear-gradient(180deg, var(--sky) 0%, #9fd3f5 70%, var(--grass) 70%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 320px;
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature .card-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature h3 { font-size: 2.4rem; }
.more {
  margin-top: 24px;
  font-weight: 700;
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card.small { padding: 28px; }
.card.soon {
  background: transparent;
  border-style: dashed;
}

/* Contact */
.contact p { margin: 0 0 24px; font-size: 1.15rem; color: var(--muted); }

/* Footer */
footer {
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
footer a { color: var(--muted); }

/* Mobile */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero { padding: 64px 0 56px; }
  .feature { grid-template-columns: 1fr; }
  .card-art { min-height: 0; aspect-ratio: 1 / 1; }
  .feature .card-body { padding: 28px; }
  .grid { grid-template-columns: 1fr; }
  nav a { margin-left: 16px; }
}
