@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Shared design tokens. Change these to brand a new project. */
:root {
  color-scheme: light;
  --ink: #212d31; --muted: #60716a; --page: #f8f7f4;
  --line: #e5e7e3; --accent: #2967cc; --accent-hover: #2054aa;
  --accent-soft: #e5efff; --on-accent: #fff; --card: #fff;
  --focus: #79a7ed; --shadow: 0 17px 60px rgba(43,54,50,.055);
  --radius: 12px; --content-width: 1100px;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-heading: 'Outfit', system-ui, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e6edf7; --muted: #a9b8cd; --page: #141c29;
  --line: #36465e; --accent: #91bbff; --accent-hover: #b3d0ff;
  --accent-soft: #233955; --on-accent: #14263f; --card: #1e2a3b;
  --shadow: 0 17px 60px #0003;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--page); color: var(--ink); font: 1rem/1.6 var(--font-body); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-underline-offset: 3px; }
:where(button,a,input,select,textarea,summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button:disabled { opacity: .45; cursor: not-allowed; }
h1,h2,h3 { font-family: var(--font-heading); line-height: 1.2; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem,4vw,3.5rem); margin: 0 0 16px; letter-spacing: -.045em; }
h2 { font-size: 1.5rem; margin: 0 0 16px; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 16px; }
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { min-height: 78px; padding: 12px max(5vw,24px); display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.header-slot { flex: 1; min-width: 0; }
.header-controls { margin-left: auto; display: flex; align-items: center; gap: 24px; }
main { flex: 1; }
.container { width: min(100%,var(--content-width)); margin-inline: auto; padding: 48px 24px; }
.footnote { padding: 20px 24px; color: var(--muted); text-align: center; font-size: .875rem; }
.skip-link { position: absolute; top: 8px; left: 16px; transform: translateY(-180%); z-index: 10; padding: 10px 16px; background: var(--card); border-radius: var(--radius); }
.skip-link:focus { transform: none; }
.theme-toggle { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.theme-switch { width: 30px; height: 18px; border-radius: 999px; background: #84928b; padding: 3px; flex-shrink: 0; }
.theme-switch::before { content: ''; display: block; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.theme-toggle[aria-checked="true"] .theme-switch { background: var(--accent); }
.theme-toggle[aria-checked="true"] .theme-switch::before { transform: translateX(12px); background: #141c29; }
.muted { color: var(--muted); }
.eyebrow { font-size: .875rem; letter-spacing: .12em; font-weight: 800; color: var(--accent); text-transform: uppercase; }
.stack { display: grid; gap: 24px; }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.grid > * { min-width: 0; }
.cluster { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 28px; }
.button { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid transparent; background: var(--accent); color: var(--on-accent); border-radius: var(--radius); padding: 12px 24px; font-size: .875rem; font-weight: 800; text-decoration: none; box-shadow: 0 8px 16px #2967cc18; transition: transform .15s,background .15s; }
.button:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); }
.button-secondary { background: var(--card); color: var(--accent); border-color: var(--line); box-shadow: none; }
.button-secondary:hover:not(:disabled) { background: var(--accent-soft); }
.button-quiet { background: transparent; color: var(--muted); box-shadow: none; }
.button-quiet:hover:not(:disabled) { color: var(--accent); background: var(--accent-soft); }
.field { display: grid; gap: 8px; }
.field label, .field-label { font-size: .875rem; font-weight: 700; }
.input, .select, .textarea { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 14px; color: var(--ink); background: var(--page); }
.input::placeholder,.textarea::placeholder { color: var(--muted); opacity: 1; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23788486' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.textarea { resize: vertical; min-height: 110px; }
.help { font-size: .875rem; color: var(--muted); margin: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.badge { display: inline-flex; border-radius: 999px; color: var(--accent); background: var(--accent-soft); padding: 5px 11px; font-size: .875rem; font-weight: 700; }
.notice { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--accent-soft); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th,td { border-bottom: 1px solid var(--line); padding: 12px; }
th { font-size: .875rem; color: var(--muted); font-weight: 700; }
caption { text-align: left; font-weight: 700; margin-bottom: 12px; }
details { border: 1px solid var(--line); padding: 16px; border-radius: var(--radius); }
summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 12px; }
@media(max-width:700px) {
  .grid { grid-template-columns: 1fr; }
  .container { padding: 32px 16px; }
  .card { padding: 22px; }
}
@media(max-width:580px) {
  .topbar { min-height: 65px; padding-inline: 24px; }
  .header-controls { gap: 12px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition: none !important; scroll-behavior: auto !important; } }

