:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #58656d;
  --paper: #f8f7f2;
  --surface: #ffffff;
  --line: #d9ded7;
  --accent: #0f6b5f;
  --accent-strong: #0a4d45;
  --warm: #f0c36a;
  --sky: #d6e9f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(248, 247, 242, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

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

.hero {
  min-height: 74vh;
  display: grid;
  align-items: center;
  padding: clamp(56px, 9vw, 120px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(110deg, rgba(248, 247, 242, 0.96) 0%, rgba(248, 247, 242, 0.78) 48%, rgba(214, 233, 242, 0.8) 100%),
    repeating-linear-gradient(135deg, rgba(15, 107, 95, 0.12) 0 2px, transparent 2px 20px);
  border-bottom: 1px solid var(--line);
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 12px 0 8px;
  font-size: 1.35rem;
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.primary-action:hover {
  background: var(--accent-strong);
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 360px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-card .status,
.project-card h3,
.project-card p,
.project-card .project-link {
  margin-left: 10px;
  margin-right: 10px;
}

.project-card p,
.split-section p,
.about-section p {
  color: var(--muted);
}

.project-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(150px, 16vw, 220px);
  margin-bottom: 18px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.project-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 180ms ease;
}

.project-image-link:hover .project-image {
  transform: scale(1.03);
}

.project-image-hvo {
  object-fit: contain;
  object-position: center;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  background: var(--sky);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
}

.project-link {
  margin-top: auto;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

.subsite-hero h1 {
  max-width: 8ch;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 6vw, 72px);
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.split-section p {
  margin-top: 0;
  font-size: 1.15rem;
}

.about-section {
  max-width: 920px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 780px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  h1 {
    max-width: 10ch;
  }
}

@media (max-width: 480px) {
  .nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 3rem;
  }
}
