*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-dim); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--text-dim); margin-bottom: 12px; }

/* Header / navigation */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); position: relative; flex: none; }
.brand-mark::after { content: ''; position: absolute; inset: 5px 5px 5px 11px; border-radius: 50%; background: var(--bg); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text-dim); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text); font-size: 1rem; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; min-height: 44px; min-width: 64px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 20px 16px; }
  .nav a { padding: 13px 12px; }
  .nav.open { display: flex; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Sections and cards */
.section { padding: 72px 0; }
.section.alt { background: var(--surface-2); }
.hero { padding: 88px 0 72px; }
.hero p.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 620px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.badge { display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--brand); }
.notice { background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: var(--radius); padding: 18px 20px; color: var(--text); }
.empty { text-align: center; padding: 36px 20px; color: var(--text-dim); border: 1px dashed var(--border); border-radius: var(--radius); }

/* Shell layout for account + admin */
.shell { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 36px 0 72px; }
@media (max-width: 820px) { .shell { grid-template-columns: 1fr; } }
.side { display: flex; flex-direction: column; gap: 4px; }
.side a { padding: 10px 14px; border-radius: 10px; color: var(--text-dim); text-decoration: none; }
.side a:hover { background: var(--surface-2); color: var(--text); }
.side a.active { background: var(--accent-soft); color: var(--brand); font-weight: 600; }
@media (max-width: 820px) { .side { flex-direction: row; flex-wrap: wrap; padding-bottom: 6px; } .side a { white-space: nowrap; } }
.stat { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--text-dim); font-size: .9rem; }
[hidden] { display: none !important; }