/* GENERATED — do not edit by hand. Run: node scripts/build-site-assets.mjs (apex) */
/* Suomi2 shared base — apex, id, f, c, and kartta all start here. */
/* Six base colors per scheme; every other shade is a literal value computed from them
   (sRGB mix), to stay within the browser floor. The system
   setting chooses the scheme. Meaning is carried by text, never by color alone. */
:root {
  color-scheme: light dark;
  --bg: #fff;
  --fg: #111;
  --accent: #5b3c98;  /* links and selected controls; the only hue */
  --error: #8c2b2b;
  --ok: #2d6a2d;      /* option grid "sopii" only */
  --mark: #8a6700;    /* warnings and the :target highlight */
  --muted: #545454;
  --line: #888888;
  --line-soft: #d9d9d9;
  --surface: #f1f1f1;
  --surface-press: #dedede;
  --mark-bg: #e8e1cc;
  --fg-pressed: #414141;
  --day-disabled: #c1c1c1;
  --cell-disabled: #b8b8b8;
  --ok-tint: #d9e4d9;
  --error-tint: #ead9d9;
  --error-tint-soft: #f6eeee;
  --error-hatch: #e8d5d5;
  --accent-tint: #f2eff7;
  --accent-preview: #bdb1d6;
  --accent-hover: #4e3480;
  --accent-ring: rgba(91,60,152,.35);
  --shadow-bar: rgba(17,17,17,.6);
  --shadow-frame: rgba(17,17,17,.7);
  /* System UI first; Verdana remains a readable Latin fallback. */
  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Verdana, Geneva, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --measure: 720px;
  --text: 16px;
  --text-meta: 13px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17191c;
    --fg: #e6e4e0;
    --accent: #c2a5ff;
    --error: #ff9b8f;
    --ok: #8fd18f;
    --mark: #e0b44a;
    --muted: #acaba9;
    --line: #7e7e7e;
    --line-soft: #38393b;
    --surface: #232528;
    --surface-press: #343537;
    --mark-bg: #3f3825;
    --fg-pressed: #bdbbb9;
    --day-disabled: #4d4e4f;
    --cell-disabled: #555657;
    --ok-tint: #2d3a31;
    --error-tint: #413031;
    --error-tint-soft: #2a2325;
    --error-hatch: #453333;
    --accent-tint: #25242e;
    --accent-preview: #5b5177;
    --accent-hover: #c8b0f9;
    --accent-ring: rgba(194,165,255,.35);
    --shadow-bar: rgba(230,228,224,.6);
    --shadow-frame: rgba(230,228,224,.7);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--text-meta);
  line-height: 1.65;
}
.site-nav {
  max-width: var(--measure);
  margin: 18px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.5;
}
.site-nav a, .site-nav a:visited { text-decoration: none; color: var(--accent); }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { font-weight: bold; color: var(--fg); }
/* Reading measure: body copy is larger than chrome; metadata stays quieter. */
main {
  max-width: var(--measure);
  margin: 24px auto 28px;
  padding: 0 24px;
  font-size: var(--text);
}
h1 { font-size: 1.55rem; line-height: 1.3; margin: 0 0 1rem; letter-spacing: -0.02em; font-weight: 650; }
h2 { font-size: 1.1rem; line-height: 1.35; margin: 1.4rem 0 0.65rem; font-weight: 650; }
h3 { font-size: 1rem; line-height: 1.4; margin: 1.1rem 0 0.5rem; font-weight: 600; }
p { margin: 0 0 18px; }
ul, ol { margin: 0 0 18px; padding-left: 1.25rem; }
li { margin: 0 0 8px; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:visited { color: var(--muted); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.muted { font-size: var(--text-meta); color: var(--muted); }
.small, .help { font-size: 12px; color: var(--muted); line-height: 1.6; }
.meta { color: var(--muted); font-size: var(--text-meta); line-height: 1.45; }
label { display: block; margin: 0.75rem 0 0.25rem; }
.field { display: block; font-weight: bold; margin-bottom: 5px; }
input[type="email"],
input[type="text"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
input:not([type]),
textarea,
select {
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  padding: 8px 10px;
}
input[readonly] { background: var(--surface); }
textarea { min-height: 120px; resize: vertical; }
button,
.button,
.btn {
  font: bold 14px var(--font);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  min-height: 42px;
  margin-top: 8px;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.button:hover,
.btn:hover { background: var(--surface-press); }
button:active,
.button:active { background: var(--surface-press); }
button:disabled { cursor: not-allowed; opacity: 0.55; }
button:visited,
.button:visited { color: var(--fg); }
footer {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 32px;
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
}
.note {
  border-left: 3px solid var(--line);
  padding-left: 0.75rem;
  margin: 1rem 0;
}
.note.err,
.err { color: var(--error); }
.note.warn,
.warn { border-left-color: var(--mark); }
.notice.warning,
.warning {
  background: var(--mark-bg);
  border: 1px solid var(--mark);
  padding: 0.5rem 0.65rem;
}
/* Default <pre> is for machine/code blocks only — authored posts use .authored-text. */
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 0.92em;
  line-height: 1.45;
}
.skip {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--bg);
  padding: 8px;
}
.skip:focus { top: 8px; }
.dev {
  border: 1px dashed var(--line);
  padding: 8px 10px;
  font-size: 12px;
  margin-bottom: 24px;
}
.inline-form { display: inline; margin: 0; }
.inline-form button {
  margin-top: 0;
  margin-left: 8px;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12px;
}
form.nav-form { display: inline; }
@media (max-width: 520px) {
  main { margin: 25px auto; padding: 0 18px; }
  .site-nav { padding: 0 18px; }
  h1 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
@media print {
  .site-nav, .skip, form, button, .dev { display: none; }
  main { max-width: none; margin: 0; }
}

/* Apex / identity host extras on top of suomi2-base. */
.site-header {
  max-width: var(--measure);
  margin: 18px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
}
.site-header .site-nav { margin: 0; padding: 0; flex: 1 1 auto; }
@media (max-width: 600px) { .site-header { padding: 0 18px; } }
@media print { .site-header { display: none; } }
.account-panel h2 { margin-top: 28px; font-weight: normal; font-size: 16px; }
.account-list { list-style: none; padding: 0; margin: 0 0 12px; }
.account-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 4px 0 12px;
}
.account-actions form { margin: 0; }
.account-danger { margin-top: 12px; max-width: 28rem; }
.account-danger code { font-size: 13px; }
.btn-quiet,
button.btn-quiet {
  font: inherit;
  font-size: 13px;
  font-weight: normal;
  min-height: 32px;
  padding: 4px 10px;
  margin-top: 0;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  color: var(--muted);
}
.btn-quiet:hover,
button.btn-quiet:hover { background: var(--surface); color: var(--fg); }
.hero .eyebrow { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.entry-panels { display: grid; gap: 18px; margin: 8px 0; }
.entry-panel { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.entry-panel .button { margin-top: 0; }
.entry-panels > section + section { margin-top: 0; padding-top: 16px; }
.entry-panel p:last-child { margin-bottom: 0; }
/* One primary action per page (identity: join); other buttons keep the base style. */
.button-primary,
.button-primary:visited { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.button-primary:hover,
.button-primary:active { background: var(--fg-pressed); color: var(--bg); }
article h2 { margin-top: 28px; }
.registry { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; }
.registry h2 { font-size: 16px; font-weight: normal; margin-bottom: 4px; }
.serial { font-weight: bold; font-variant-numeric: tabular-nums; }
.mark { border-bottom: 1px solid var(--fg); padding-bottom: 1px; }
.registry .serial { font-size: 20px; letter-spacing: -1px; }
.check { display: flex; gap: 9px; align-items: flex-start; margin: 13px 0; font-size: 12px; line-height: 1.6; }
.check input { flex: 0 0 auto; width: 15px; height: 15px; margin: 3px 0 0; accent-color: var(--accent); }
section + section { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 25px; }
.preview { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 18px; }
.break { overflow-wrap: anywhere; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.reasons { border: 0; margin: 0 0 18px; padding: 0; }
.reasons legend { font-weight: bold; margin-bottom: 10px; padding: 0; }
.choice { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 2px; padding: 8px 4px; min-height: 42px; cursor: pointer; }
.choice input { flex: 0 0 auto; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--accent); }
.choice span { flex: 1 1 auto; }
.help { margin: 6px 0 14px; }
.form-errors { border: 1px solid var(--line); padding: 10px 12px; margin: 0 0 18px; background: var(--surface); }
.form-errors p { margin: 0 0 8px; font-weight: bold; }
.form-errors ul { margin: 0; padding-left: 1.2em; }
.form-errors li { margin: 0 0 4px; }
@media (max-width: 520px) {
  .check { font-size: 12px; }
  .choice { padding: 10px 2px; }
}
@media print {
  footer { display: none; }
}
