/* meetmit.ch — clean, simple, mobile-first. Same general style as Begin. */
:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f9fafb;
  --card: #ffffff;
  --accent: #1d4ed8;
  --accent-dark: #1e40af;
  --field-border: #cbd5e1;
  --btn-bg: #1d4ed8;
  --btn-bg-hover: #1e40af;
  --radius: 10px;
}

[data-theme="dark"] {
  --ink: #e5e7eb;
  --muted: #9ca3af;
  --line: #374151;
  --bg: #111827;
  --card: #1f2937;
  --accent: #60a5fa;
  --accent-dark: #3b82f6;
  --field-border: #4b5563;
  --btn-bg: #2563eb;
  --btn-bg-hover: #3b82f6;
}

* { box-sizing: border-box; }

/* Wordmark: XCharter Regular, subset to "Mitch Mitchell" only (1.6KB, self-hosted).
   XCharter is (c) 2009-2023 Michael Sharpe / Bitstream Charter revival,
   licensed under the SIL Open Font License 1.1.
   NOTE: the subset covers "Mitch Mitchell" only — re-subset if the brand text changes. */
@font-face {
  font-family: 'Mitch Charter';
  src: url('fonts/xcharter-regular-mitch.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* Headings: XCharter Regular, subset to printable ASCII (24KB, self-hosted). */
@font-face {
  font-family: 'Mitch Headings';
  src: url('fonts/xcharter-regular-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}
.site-header .inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.brand {
  font-family: 'Mitch Charter', Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  margin-right: auto;
}
.brand a {
  color: inherit;
  text-decoration: none;
}
.nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.nav a:hover { color: var(--accent); }
.nav a.selected { color: var(--ink); font-weight: 600; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 20px;
}
.card h1, .card h2 { margin-top: 0; }
h1, h2 {
  font-family: 'Mitch Headings', Georgia, serif;
  font-weight: 400;
}
h1 { font-size: 28px; line-height: 1.25; }
h2 { font-size: 23px; margin-top: 28px; }
.lede { color: var(--muted); font-size: 18px; }
.muted { color: var(--muted); font-size: 14px; }

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

/* Project links: headings in XCharter. */
h2 .project-link {
  color: inherit;
  text-decoration: none;
}
h2 .project-link:hover { color: var(--accent); }
.project { margin: 0 0 8px; }
.project + p { margin-top: 4px; }

ul.plain { padding-left: 20px; }
ul.plain li { margin: 8px 0; }

.btn {
  display: inline-block;
  font-size: 17px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--field-border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.mini-btn {
  font-size: 14px; line-height: 1.5; padding: 5px 12px; border-radius: 6px;
  border: 1px solid var(--field-border); background: var(--card); color: var(--ink); cursor: pointer;
}
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }

.theme-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 5px;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 18px 16px 28px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.site-footer a { color: var(--accent); }
.site-footer .footer-actions { margin-bottom: 10px; }
