:root {
  --bg: #f4f2ec;
  --surface: rgba(255, 255, 255, 0.64);
  --surface-solid: #fffef9;
  --text: #171717;
  --muted: #62625e;
  --line: rgba(23, 23, 23, 0.14);
  --accent: #315c4c;
  --accent-contrast: #ffffff;
  --shadow: 0 18px 50px rgba(31, 31, 27, 0.08);
  --radius: 22px;
  --max-width: 1120px;
}

:root[data-theme="dark"] {
  --bg: #121513;
  --surface: rgba(29, 34, 31, 0.76);
  --surface-solid: #1c211e;
  --text: #f0f2ed;
  --muted: #aeb6af;
  --line: rgba(240, 242, 237, 0.14);
  --accent: #9ccbb8;
  --accent-contrast: #102018;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 8%, rgba(120, 157, 137, 0.16), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
}
.brand {
  width: fit-content;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}
nav { display: flex; gap: 24px; }
nav a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}
nav a:hover { color: var(--text); }
.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.hero {
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 96px 72px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -0.04em; }
h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}
h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { margin-bottom: 12px; font-size: 1.45rem; }
.hero-copy {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.button.primary { border-color: var(--accent); background: var(--accent); color: var(--accent-contrast); }
.button.secondary { background: var(--surface); }
.button.disabled { pointer-events: none; opacity: 0.58; }

.section { padding-block: 74px; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) 1fr;
  align-items: end;
  margin-bottom: 30px;
}
.section-heading .eyebrow { margin-bottom: 7px; }
.panel, .card, .list-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.panel { padding: clamp(24px, 5vw, 52px); border-radius: var(--radius); }
.prose p { max-width: 760px; margin: 0; color: var(--muted); font-size: 1.12rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius);
}
.card-index { margin: 0 0 54px; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.card > p:not(.card-index) { color: var(--muted); }
.card > a { margin-top: auto; color: var(--accent); font-weight: 700; text-decoration: none; }
.list-panel { overflow: hidden; border-radius: var(--radius); }
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  text-decoration: none;
}
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row:hover { background: var(--surface-solid); }
.list-row time { color: var(--muted); }
.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.contact-panel p { max-width: 650px; margin: 0; color: var(--muted); }
.site-footer { margin-top: 70px; border-top: 1px solid var(--line); }
.footer-inner { min-height: 96px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 780px) {
  .header-inner { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 4px; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 230px; }
  .contact-panel, .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner { justify-content: center; }
}

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