:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #586675;
  --line: #d8dee5;
  --surface: #f5f7f9;
  --accent: #175a82;
  --focus: #b45309;
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { background: #fff; color: var(--ink); }

body { margin: 0; font-size: 1rem; line-height: 1.6; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.13em; }

button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap { width: min(100% - 2rem, 62rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); padding: 2rem 0 1.25rem; }
.header-row { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.eyebrow { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.09em; margin: 0 0 0.25rem; }
h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.15; margin: 0; }
h2 { font-size: 1.25rem; margin: 0 0 1rem; }
h3 { font-size: 1rem; margin: 0 0 0.7rem; }
main > section { border-bottom: 1px solid var(--line); padding: 2rem 0; }

.skip-link { position: absolute; left: 1rem; top: -5rem; background: #fff; padding: 0.6rem; z-index: 5; }
.skip-link:focus { top: 1rem; }
.language { display: flex; gap: 0.35rem; }
.language button, .copy {
  border: 1px solid #aeb8c2;
  border-radius: 0.25rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 0.42rem 0.65rem;
}
.language button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.notice { border: 1px solid var(--line); border-left: 0.3rem solid var(--accent); margin-top: 2rem; padding: 1.25rem; background: var(--surface); }
.notice p:last-child { margin-bottom: 0; }
.caveat { color: var(--muted); font-size: 0.9rem; }
.facts { margin: 0; }
.facts > div, .key-meta > div { min-width: 0; }
dt { color: var(--muted); font-size: 0.82rem; }
dd { margin: 0; }
.compact > div + div { margin-top: 0.8rem; }

.key-card { border: 1px solid var(--line); border-radius: 0.25rem; padding: 1rem; }
.key-card + .key-card { margin-top: 0.8rem; }
.fingerprint, .breakable, .checksums {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.fingerprint { display: block; font-weight: 650; letter-spacing: 0.035em; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; min-width: 0; }
.copy-row code { min-width: 0; }
.copy { flex: 0 0 auto; font-size: 0.78rem; }
.key-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin: 1rem 0 0; }
.checksums { background: var(--surface); border: 1px solid var(--line); margin: 0; padding: 1rem; white-space: pre-wrap; }
.downloads { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.5rem; }
.download { border: 1px solid var(--accent); border-radius: 0.25rem; padding: 0.65rem 0.8rem; }
.links { padding-left: 1.3rem; }
footer { color: var(--muted); font-size: 0.82rem; padding-block: 1.4rem 2.5rem; }
.status { min-height: 1.5em; }

@media (max-width: 44rem) {
  .header-row { align-items: flex-start; flex-direction: column; }
  .key-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fingerprint-row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 26rem) {
  .wrap { width: min(100% - 1.25rem, 62rem); }
  .copy-row { align-items: flex-start; flex-direction: column; }
  .key-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
