:root {
  --bg: #fbfbfd;
  --fg: #1f2329;
  --muted: #6b7280;
  --accent: #3b5bdb;
  --line: #e5e7eb;
  --card: #ffffff;
  --maxw: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site, footer.site, main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.brand { font-weight: 700; font-size: 1.1rem; color: var(--fg); }

nav a { margin-left: 18px; color: var(--muted); font-size: .95rem; }

main { padding-top: 40px; padding-bottom: 40px; }

.intro h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 .5em; }
.intro p { color: var(--muted); font-size: 1.1rem; }

section { margin-top: 48px; }
section h2 { font-size: 1.25rem; margin-bottom: 16px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.list .meta { color: var(--muted); font-size: .85rem; white-space: nowrap; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}
.card h3 { margin: 0 0 .4em; font-size: 1rem; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }

.contact { display: grid; gap: 12px; margin-top: 16px; max-width: 460px; }
.contact label { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.contact input, .contact textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--fg);
}
.contact button {
  justify-self: start;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

footer.site {
  margin-top: 64px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171c;
    --fg: #e8eaed;
    --muted: #9aa0a8;
    --line: #2a2e36;
    --card: #1c1f26;
  }
  .contact input, .contact textarea { background: #1c1f26; }
}
