:root {
  --ink: #14212b;
  --ink-muted: #4a5c68;
  --paper: #f7f4ef;
  --accent: #0d7a6f;
  --accent-soft: #d8f0ec;
  --hot: #c45c26;
  --line: rgba(20, 33, 43, 0.12);
  --display: "Fraunces", Georgia, serif;
  --body: "Source Sans 3", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  background:
    radial-gradient(ellipse 80% 50% at 0% -10%, rgba(13, 122, 111, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 92, 38, 0.1), transparent 50%),
    linear-gradient(180deg, #f9f6f1 0%, var(--paper) 45%, #ebe4d8 100%);
  background-attachment: fixed;
}

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

.shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3.5rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0 1.5rem;
}

.brand {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 1.1rem;
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--accent);
}

.hero {
  padding: 2.5rem 0 2.75rem;
  animation: rise 0.7s ease both;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 650;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.section {
  padding: 1rem 0 2.5rem;
}

.section h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.project-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.3rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.52);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  animation: rise 0.75s ease both;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 122, 111, 0.35);
  box-shadow: 0 16px 40px rgba(20, 33, 43, 0.08);
}

.project-card.is-soon {
  opacity: 0.72;
}

.project-card.is-soon:hover {
  transform: none;
  box-shadow: none;
}

.project-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hot);
}

.project-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.project-card p {
  margin: 0;
  flex: 1;
  color: var(--ink-muted);
  line-height: 1.5;
  font-size: 0.98rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.tag {
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--accent);
}

.project-card:hover .cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about p {
  max-width: 38rem;
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.55;
}

footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
  font-weight: 600;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .shell {
    padding: 1rem 1.1rem 2.5rem;
  }

  nav {
    gap: 0.8rem;
    font-size: 0.88rem;
  }
}
