/* Aexa Post-Quantum Vault — landing page.
   Local stylesheet only: no imports, no external references, no web fonts. The one image on the
   page is the same-origin Aexa logo referenced from the HTML (img-src 'self'); this stylesheet
   itself references no resource. The origin's CSP is default-src 'none'; style-src 'self'. */

:root {
  color-scheme: light dark;
  --bg: #f7f7f5;
  --bg-card: #ffffff;
  --fg: #1a1a1a;
  --fg-muted: #555555;
  --line: #d9d9d4;
  --accent: #0b4f8a;
  --accent-fg: #ffffff;
  --ok: #1d6b3a;
  --warn: #8a5a00;
  --code-bg: #eeeeea;
  --max: 64rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131416;
    --bg-card: #1c1e21;
    --fg: #ececec;
    --fg-muted: #b0b0b0;
    --line: #34373b;
    --accent: #6fb3ea;
    --accent-fg: #0f1720;
    --ok: #7bd39a;
    --warn: #e3b25c;
    --code-bg: #24272b;
  }
}

* { box-sizing: border-box; }

html { font-size: 100%; }

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

a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}
code {
  background: var(--code-bg);
  padding: 0.05em 0.35em;
  border-radius: 0.25em;
  overflow-wrap: anywhere;
}
pre {
  background: var(--code-bg);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}
pre code { background: none; padding: 0; }

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

header.site, main, footer.site {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.site {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

/* --- masthead with the Aexa logo ---------------------------------------------------------- */
header.masthead {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo-plate {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.5rem;
}
.logo {
  /* Restrained: about 90–120 px tall on desktop, scaling down on narrow screens. The intrinsic
     width/height attributes preserve the 1072 × 1001 proportions; only the rendered size changes. */
  display: block;
  height: clamp(4.5rem, 10vw, 7.5rem);
  width: auto;
}
.masthead-text { min-width: 0; }
.beta-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  padding: 0.15em 0.55em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--fg-muted);
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@media (prefers-color-scheme: dark) {
  /* The wordmark in the official logo is black. On the dark background it sits on a light plate
     so the mark stays legible; the image bytes are the official file, unaltered. */
  .logo-plate { background: #ffffff; border: 1px solid var(--line); }
}
@media (max-width: 40rem) {
  header.masthead { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .logo { height: 4rem; }
}
header.site .brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}
header.site h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
header.site .lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 44rem;
  margin: 0;
}

main section { margin: 2.5rem 0; }
main h2 {
  font-size: 1.45rem;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}
main h3 { font-size: 1.1rem; margin: 1.25rem 0 0.4rem; }

.actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
}
.card h3 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.card .tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  margin: 0 0 0.75rem;
}
.card p { margin: 0 0 0.75rem; }
.card .button {
  display: inline-block;
  margin-top: auto;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
}
.card .button:hover { filter: brightness(1.08); }
.card .button.secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.card dl {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.card dt { font-weight: 600; margin-top: 0.4rem; }
.card dd { margin: 0; overflow-wrap: anywhere; }
.status { font-weight: 600; }
.status.measured { color: var(--ok); }
.status.pending { color: var(--warn); }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
.table-wrap { overflow-x: auto; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
}
th { font-weight: 600; }

ul.plain { padding-left: 1.2rem; }
ul.plain li { margin: 0.35rem 0; }

.notclaim li { margin: 0.55rem 0; }
.notclaim strong { display: inline-block; }

/* --- post-quantum section, references, legal ------------------------------------------- */
.pq-era p { max-width: 48rem; }
.pq-era sup { font-size: 0.7em; line-height: 0; }
.pq-era sup a { text-decoration: none; }
.references {
  font-size: 0.85rem;
  color: var(--fg-muted);
  padding-left: 1.4rem;
  max-width: 48rem;
}
.references li { margin: 0.4rem 0; }
.references cite { font-style: italic; }
.references a { overflow-wrap: anywhere; display: inline-block; }
hr.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0 1.5rem;
}
.legal h2 {
  font-size: 1rem;
  border-bottom: 0;
  color: var(--fg-muted);
  margin-bottom: 0.4rem;
}
.legal p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 52rem;
  margin: 0;
}

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.25rem;
  padding-bottom: 3rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
}
footer.site p { margin: 0.4rem 0; }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  header.site { padding-top: 1.75rem; }
}

@media print {
  .card .button { border: 1px solid #000; color: #000; background: none; }
}
