/* Cantamar static pages. System fonts only; nothing loaded from other sites. */
:root {
  --cream: #F7F1E5;
  --paper: #FFFDF8;
  --ink: #16264A;
  --ink-soft: #3B4A6B;
  --blue: #1F4FA3;
  --terracotta: #C8603A;
  --gold: #F2B632;
  --green: #2E8B6E;
  --error: #8A4C40;
  --line: #E3D8C3;
  --bg: var(--cream);
  --surface: var(--paper);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --link: var(--blue);
  --accent: var(--terracotta);
  --notice-bg: #FBEFD0;
  --radius: 12px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1A33;
    --surface: #16264A;
    --text: #F7F1E5;
    --muted: #C9CEDC;
    --link: #9DBBF2;
    --accent: #F0A07F;
    --line: #2C3D63;
    --notice-bg: #243457;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--surface);
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

.site-header, main, .site-footer {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.langs [aria-current="true"] { font-weight: 700; }
.langs button {
  font: inherit;
  color: var(--link);
  background: none;
  border: 0;
  padding: 0.25rem 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.langs button[aria-pressed="true"] { color: var(--text); font-weight: 700; text-decoration: none; }

main { padding-top: 1.5rem; padding-bottom: 2.5rem; }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

.hero { padding: 1rem 0 0.5rem; }
.hero h1 { font-size: 2.4rem; margin-bottom: 0.25rem; }
.lead { font-size: 1.25rem; color: var(--accent); margin-top: 0; }

.notice {
  background: var(--notice-bg);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.75rem 1rem;
}

.facts { padding-left: 1.25rem; }
.facts li { margin: 0.35rem 0; }

.placeholder {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--notice-bg);
  padding: 0 0.25rem;
}

.small { font-size: 0.9rem; color: var(--muted); }

/* The lock page */
.lock-action { margin: 1.5rem 0; }
.button {
  font: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #FFFFFF;
  cursor: pointer;
}
.button:disabled { opacity: 0.7; cursor: progress; }
.status:empty { display: none; }
.status {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
[data-state="locked"] .status { border-color: var(--green); border-left-width: 4px; }
[data-state="failed"] .status,
[data-state="invalid"] .status,
[data-state="expired"] .status { border-left: 4px solid var(--error); }

/* Legal text */
.legal { overflow-wrap: anywhere; }
.legal-version { color: var(--muted); font-size: 0.9rem; margin-top: 2rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { border: 1px solid var(--line); padding: 0.5rem; text-align: left; vertical-align: top; }
th { background: var(--surface); }
blockquote { margin: 1rem 0; padding: 0.25rem 1rem; border-left: 4px solid var(--line); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  padding-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
