:root {
  --ink: #151515;
  --muted: #68645f;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #ded9d1;
  --accent: #b83b34;
  --accent-dark: #86231f;
  --green: #295b52;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(24px, calc((100vw - var(--max-width)) / 2));
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent);
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) 0;
}

.hero-logo {
  display: grid;
  place-items: center;
  min-height: 360px;
  border-right: 1px solid var(--line);
}

.hero-logo img {
  width: min(260px, 64vw);
  filter: contrast(1.08);
}

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

.eyebrow,
.section-kicker,
.card-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  font-weight: 500;
  line-height: 1.05;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.9rem);
  font-weight: 500;
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

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

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #fff;
  color: var(--accent-dark);
}

.section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.intro,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 7vw, 86px);
  align-items: start;
}

.intro > p,
.contact-panel p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

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

.activity-grid article,
.project-card,
.contact-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}

.activity-grid span {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.activity-grid p,
.project-card p {
  color: var(--muted);
}

.projects {
  border-top-color: var(--ink);
}

.project-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
}

.project-card a {
  margin-top: auto;
  color: var(--accent);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact-panel {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.contact-panel a:not(.button) {
  color: var(--accent);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

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

  .main-nav {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .hero,
  .intro,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    min-height: auto;
    justify-content: start;
    border-right: 0;
  }

  .hero-logo img {
    width: 168px;
  }

  .activity-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: calc(100% - 32px);
  }

  .site-header {
    padding: 14px 16px;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .brand span {
    font-size: 0.95rem;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .activity-grid article,
  .project-card,
  .contact-panel {
    padding: 20px;
  }
}