@import './reserve.css';
@import './layout.css';
@import './knowledge.css';
@import './hex-detail.css';
@import './login.css';
@import './reading-workshop.css';
@import './classroom-progression.css';
@import './classroom-audio.css';
@import './classroom-traces.css';
@import './figures.css';
@import './hex-workspace.css';
@import './evolution.css';
@import './supports.css';

:root {
  color-scheme: light;
  --ink: #18213d; --muted: #55617b; --paper: #f2f5ff; --panel: #fff; --line: #d5def0;
  --accent: #4054d9; --accent-soft: #e7eaff; --board: #e8edfb; --danger: #a52039; --focus: #0067c5;
  font: 16px/1.5 'Avenir Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, summary, a { -webkit-tap-highlight-color: transparent; }
button { min-height: 44px; border: 1px solid transparent; border-radius: 10px; padding: .6rem 1rem; color: #fff; background: var(--accent); font-weight: 600; cursor: pointer; }
button:hover { filter: brightness(.95); }
button:disabled { opacity: .55; cursor: wait; }
button.quiet { background: var(--panel); border-color: var(--line); color: var(--ink); }
button.danger { background: var(--panel); border-color: #ddb4bd; color: var(--danger); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input:not([type=checkbox], [type=radio]), select, textarea { width: 100%; padding: .65rem .75rem; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--ink); }
textarea { resize: vertical; line-height: 1.6; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); flex: 0 0 auto; }
h1, h2, h3, p { margin: 0 0 .8rem; }
h1 { font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.3; }
h2 { font-size: 1.3rem; line-height: 1.35; }
h3 { font-size: 1rem; margin-top: 1.2rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
.muted { color: var(--muted); }
.eyebrow { color: var(--accent); font-size: .85rem; letter-spacing: .12em; font-weight: 800; text-transform: uppercase; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field > span { font-size: .9rem; font-weight: 600; }
.actions, .filters { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.notice { padding: .85rem 1rem; margin: .5rem 0; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--line); }
.notice.error { background: #fff0f1; color: #8a1829; border-color: #efbec6; }
.notice.success { background: #e2f5eb; color: #17543a; }
.tag { display: inline-block; width: fit-content; background: var(--accent-soft); color: var(--accent); padding: .2rem .55rem; border-radius: 5px; font-size: .85rem; font-weight: 650; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.tabs button { background: transparent; color: var(--muted); }
.tabs button[aria-current=page], .tabs button[aria-pressed=true] { background: var(--accent); color: #fff; }
.skip-link { position: absolute; top: -100px; z-index: 20; background: white; padding: 1rem; }
.skip-link:focus { top: 0; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) { button { transition: background .15s; } dialog { animation: appear .12s ease-out; } @keyframes appear { from { opacity: 0; transform: translateY(5px); } } }
