:root {
  --bg: #f3efe6;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #18211d;
  --muted: #56615b;
  --line: rgba(24, 33, 29, 0.12);
  --accent: #0d6b57;
  --accent-soft: #d6efe8;
  --shadow: 0 24px 60px rgba(21, 32, 28, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(13, 107, 87, 0.12), transparent 32%),
    linear-gradient(180deg, #f7f3eb 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(243, 239, 230, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.site-nav a,
.post-card a,
.footer-links a {
  text-decoration: none;
}

.site-nav a:hover,
.post-card a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.hero {
  padding: 5.5rem 0 3rem;
}

.hero-grid,
.section-grid,
.footer-grid,
.about-layout {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  align-items: start;
}

.eyebrow,
.section-label,
.card-label,
.post-meta {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.98;
  max-width: 11ch;
  margin-bottom: 1.25rem;
}

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

h3 {
  font-size: 1.4rem;
  line-height: 1.18;
  margin-bottom: 0.9rem;
}

.lede,
.section-copy,
.project-item p,
.post-card p,
.site-footer p,
.about-main p,
.about-side p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #f6fbf9;
}

.button-secondary {
  background: transparent;
  border-color: var(--line);
}

.hero-card,
.post-card,
.project-item,
.info-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card,
.info-card {
  padding: 1.6rem;
}

.signal-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
}

.signal-list li + li {
  margin-top: 0.85rem;
}

.section {
  padding: 2rem 0 4rem;
}

.alt-section {
  background: rgba(255, 255, 255, 0.45);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-grid,
.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.post-card,
.project-item {
  padding: 1.5rem;
}

.post-card a {
  font-weight: 700;
  color: var(--accent);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.about-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  align-items: start;
}

.about-main h1 {
  max-width: 13ch;
}

.about-side {
  display: grid;
  gap: 1.2rem;
}

.site-footer {
  padding: 2.5rem 0 3rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .hero-grid,
  .section-grid,
  .post-grid,
  .project-list,
  .footer-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  .hero {
    padding-top: 3.5rem;
  }

  h1 {
    max-width: none;
  }
}
