:root {
  --bg: #faf8f3;
  --panel: #ffffff;
  --fg: #1d2420;
  --muted: #5f6b64;
  --line: #e4e1d8;
  --brand: #1f4d36;
  --brand-ink: #ffffff;
  --soft: #f1eee6;
  --ok: #2f7a3e;
  --warn: #a8640c;
  --bad: #b3332b;
  --c-fm: #4c8a3a;
  --c-oo: #3d6fb4;
  --c-tr: #d0792a;
  --c-is: #9a4d7c;
  --c-hours: #8a948e;
  --radius: 10px;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131815;
    --panel: #1b211d;
    --fg: #e8ece9;
    --muted: #9aa69f;
    --line: #2c3530;
    --brand: #7fbf95;
    --brand-ink: #10261a;
    --soft: #222a25;
    --ok: #74c486;
    --warn: #e0a24a;
    --bad: #ef7a70;
    --c-fm: #7cbf68;
    --c-oo: #78a4e6;
    --c-tr: #eda05c;
    --c-is: #d58ab5;
    --c-hours: #7d8882;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 15px; line-height: 1.45; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 19px; color: var(--brand); white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 15px; font-weight: 600; font-family: var(--serif); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; margin-left: 12px; }
.nav a { text-decoration: none; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.nav a[aria-current='page'] { background: var(--soft); color: var(--fg); }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.role-pill { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--fg); }
.who a { color: var(--muted); }
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; padding: 10px 16px; }
  .nav { order: 3; flex-basis: 100%; margin: 0; }
  .who .who-name { display: none; }
}

.page { max-width: 1240px; margin: 0 auto; padding: 24px 20px 64px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 640px) { .page { padding: 16px 16px 48px; } }
h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0; line-height: 1.15; }
h2 { font-size: 16px; font-weight: 600; margin: 0; }
.lede { color: var(--muted); margin: 6px 0 0; }
.note { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; align-items: start; }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; text-decoration: none; font-size: 14px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn-small { padding: 5px 10px; font-size: 13px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.tile { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: border-color 0.15s, transform 0.15s; }
.tile:hover { border-color: var(--brand); transform: translateY(-1px); }
.tile h2 { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--brand); }
.tile p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.tile.soon { opacity: 0.6; pointer-events: none; }

.center-box { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.center-box .card { max-width: 420px; width: 100%; text-align: center; padding: 32px 28px; }
.center-box .brand { justify-content: center; margin-bottom: 18px; font-size: 22px; }
.alert { background: var(--soft); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 16px 0 0; }

.skeleton { background: linear-gradient(90deg, var(--soft), var(--line), var(--soft)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; color: transparent !important; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.error-box { color: var(--muted); font-size: 14px; padding: 12px 0; display: flex; gap: 8px; align-items: center; }
.error-box::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); flex: none; }
