:root {
  --background: #f7f4ed;
  --surface: #c7d3c0;
  --text: #202522;
  --hero: #e4e9e1;
  --heading: #171a17;
  --muted: #4f5951;
  --border: #8fa28a;
  --accent: #6f876b;
  --accent-dark: #536a50;
  --accent-warm: #c8a96b;

  --max-width: 1080px;
  --narrow-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.6;
}

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

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

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent-warm);
  outline-offset: 3px;
}

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

.narrow {
  max-width: var(--narrow-width);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--hero);
}

.site-header .container {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

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

.hero {
  padding: 7rem 0 6rem;
  background: var(--surface);
}

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

h1 {
  color: var(--heading);
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 720px;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.7;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
}

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

.button.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

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

.button.secondary:hover {
  background: var(--hero);
}

.section {
  padding: 5rem 0;
}

.section h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
}

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

.project {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.project h3 {
  margin: 0;
  font-size: 1.25rem;
}

.project h3 a {
  color: var(--text);
  text-decoration: none;
}

.project h3 a:hover {
  color: var(--accent);
}

.project p {
  margin: 0.75rem 0 1.25rem;
  color: var(--muted);
}

.project-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.hosted {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.hosted p:not(.eyebrow):not(.muted) {
  max-width: 650px;
  margin: 1rem 0 0;
  font-size: 1.1rem;
}

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

.interest-form {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--hero);
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--background);
  color: var(--text);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--accent-warm);
  outline-offset: 1px;
  border-color: var(--accent);
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

@media (max-width: 760px) {
  .site-header .container {
    min-height: 56px;
  }

  nav {
    gap: 0.75rem;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .projects {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header .container {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    text-align: center;
  }
}
