:root {
  --forest: #1f3b2f;
  --forest-soft: #2d4f40;
  --charcoal: #1b1f24;
  --text: #2a2f35;
  --muted: #55606b;
  --cream: #f4f2ea;
  --white: #ffffff;
  --gold: #9f8442;
  --border: #d8d3c4;
  --shadow: 0 12px 32px rgba(22, 29, 35, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8f6ef 0%, #f5f2e9 70%, #f0ede2 100%);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: 'Merriweather', Georgia, serif;
  line-height: 1.2;
  color: var(--charcoal);
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.8rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-top: 0; }

a {
  color: var(--forest);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--forest-soft); }

.wrap {
  width: min(1040px, 92%);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--white);
  color: var(--charcoal);
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 242, 234, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
}

.site-brand {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
}

.site-brand__name {
  font-weight: 700;
  color: var(--charcoal);
}

.site-brand__tag {
  color: var(--muted);
  font-size: 0.85rem;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--forest);
}

.site-main {
  padding-bottom: 2rem;
}

.hero {
  padding: 5.25rem 0 4.25rem;
  background: radial-gradient(circle at 85% 15%, rgba(159, 132, 66, 0.14), transparent 38%);
}

.hero__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.hero-text {
  flex: 1 1 560px;
  max-width: 640px;
}

.hero-image {
  flex: 0 1 320px;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  display: block;
  width: min(100%, 320px);
  border-radius: 0.85rem;
  box-shadow: var(--shadow);
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--charcoal);
  font-weight: 600;
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 1rem;
}

.button {
  display: inline-block;
  padding: 0.72rem 1.15rem;
  border-radius: 0.45rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button--primary {
  background: var(--forest);
  color: var(--white);
}

.button--primary:hover {
  background: var(--forest-soft);
}

.button--secondary {
  background: var(--white);
  color: var(--charcoal);
  border: 1px solid var(--border);
}

.section {
  padding: 3.75rem 0;
}

.section--tinted {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--border);
}

.section--accent {
  background: linear-gradient(180deg, rgba(31, 59, 47, 0.08), transparent);
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.15rem;
}

.projects-layout {
  display: grid;
  gap: 1.15rem;
}

.card-grid--featured-row {
  grid-template-columns: minmax(0, 1fr);
}

.card-grid--secondary-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.card--project-featured {
  grid-column: span 2;
  border-color: #cfc7af;
}

.card-note {
  color: var(--muted);
  margin-top: -0.25rem;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--forest);
}

.card-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 59, 47, 0.25);
}

.text-link:hover {
  border-bottom-color: var(--forest);
}

.value-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.proof-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  max-width: 70ch;
}

.proof-list li + li {
  margin-top: 0.55rem;
}

.value-list li {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.page-content,
.post-content {
  padding-top: 2.8rem;
  padding-bottom: 1.8rem;
}

.page-header,
.post-header {
  margin-bottom: 1rem;
}

.page-intro {
  max-width: 70ch;
}

.prose {
  max-width: 72ch;
}

.prose p,
.prose li {
  color: var(--text);
}

.post-meta {
  color: var(--muted);
}

.post-backlink {
  margin-top: 2rem;
}

.error-page {
  text-align: center;
  max-width: 700px;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: #ebe6da;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-grid h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain-list li { margin-bottom: 0.35rem; }

.footer-signoff {
  color: var(--muted);
  text-align: right;
}

@media (max-width: 700px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 0;
  }

  .hero {
    padding: 3.5rem 0 3.25rem;
  }

  .hero__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-image {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-image img {
    width: min(100%, 280px);
  }

  .card-grid--secondary-row {
    grid-template-columns: 1fr;
  }

  .card--project-featured {
    grid-column: span 1;
  }

  .footer-signoff {
    text-align: left;
  }
}
