:root {
  color-scheme: light dark;
  --bg: #f5f3ee;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #1d2528;
  --muted: #5b676c;
  --line: rgba(29, 37, 40, 0.12);
  --accent: #2d5a53;
  --accent-soft: rgba(45, 90, 83, 0.08);
  --shadow: 0 12px 32px rgba(26, 33, 36, 0.06);
  --max-width: 1180px;
  --radius: 18px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "URW Palladio L", Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", "Noto Sans", sans-serif;
}

html[data-theme="dark"] {
  --bg: #171b1d;
  --surface: rgba(24, 29, 31, 0.78);
  --surface-strong: rgba(27, 32, 35, 0.92);
  --text: #edf0ea;
  --muted: #aab4b0;
  --line: rgba(237, 240, 234, 0.12);
  --accent: #9fc4b9;
  --accent-soft: rgba(159, 196, 185, 0.1);
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #171b1d;
    --surface: rgba(24, 29, 31, 0.78);
    --surface-strong: rgba(27, 32, 35, 0.92);
    --text: #edf0ea;
    --muted: #aab4b0;
    --line: rgba(237, 240, 234, 0.12);
    --accent: #9fc4b9;
    --accent-soft: rgba(159, 196, 185, 0.1);
    --shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(45, 90, 83, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.58;
}

p,
li {
  font-size: 0.965rem;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--surface-strong);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  padding-bottom: 2.5rem;
}

.brand-lockup,
.site-nav,
.hero-actions,
.contact-actions,
.contact-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.site-name,
.site-role,
.eyebrow,
.site-footer p {
  margin: 0;
}

.site-name {
  font-weight: 600;
}

.site-role,
.eyebrow,
.section-heading p,
.site-nav a,
.theme-toggle,
.contact-links a {
  color: var(--muted);
}

.site-role,
.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a,
.theme-toggle,
.contact-links a {
  padding: 0.45rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible,
.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.theme-toggle {
  cursor: pointer;
  font: inherit;
  background: transparent;
}

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

.hero h1,
.section-heading h2,
.panel h3,
.story h3,
.contact-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero h1 {
  margin-top: 0.9rem;
  max-width: 22ch;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
}

.hero-summary {
  max-width: 72ch;
  margin: 1.05rem 0 0;
  color: var(--muted);
  font-size: 0.99rem;
}

.hero-summary-secondary {
  max-width: 78ch;
}

.hero-actions {
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

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

.button-primary {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}

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

.section {
  padding: 1.2rem 0 1.8rem;
}

.section-heading {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.section-heading h2 {
  max-width: 28ch;
  font-size: clamp(1.4rem, 1.9vw, 1.85rem);
}

.overview-grid,
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.panel,
.story,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel,
.story {
  padding: 1.25rem;
}

.panel h3,
.story h3 {
  font-size: 1rem;
}

.panel p,
.story p,
.contact-card p,
.detail-list li {
  color: var(--muted);
}

.tag-list,
.detail-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-list li {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
}

.detail-list {
  display: grid;
  gap: 0.75rem;
}

.story-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.story p {
  margin: 0.9rem 0 0;
}

.contact-section {
  padding-top: 2rem;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 1.5rem;
  padding: 1.5rem;
  align-items: center;
}

.site-footer {
  padding-top: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .overview-grid,
  .approach-grid,
  .story-list,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 1rem;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 2rem;
  }

  .hero {
    padding-top: 0.8rem;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8.5vw, 3rem);
  }

  .panel,
  .story,
  .contact-card {
    padding: 1.1rem;
  }
}
