/* The one stylesheet: system fonts, one accent colour, light and dark. */

:root {
  --bg: #fbfbf9;
  --fg: #1c1c1b;
  --muted: #5d5c58;
  --rule: #e3e2dd;
  --accent: #9b2c1f;
  --measure: 38rem;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131312;
    --fg: #e8e6e1;
    --muted: #a19e97;
    --rule: #2f2e2b;
    --accent: #e58b78;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.65 var(--sans);
}

.page {
  max-width: calc(var(--measure) + 2.5rem);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

/* Header */

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

/* The one nod to the rocket: a thin vertical rule beside the name. */
.brand {
  border-left: 3px solid var(--accent);
  padding: .1rem 0 .1rem .7rem;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
}

nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--fg); }
nav a[aria-current="page"] {
  color: var(--fg);
  text-decoration: underline 1px var(--accent);
  text-underline-offset: .35em;
}

/* Text */

main { padding: 3.5rem 0 4rem; }

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h2 { margin: 2.5rem 0 .5rem; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }

p, ul { margin: 0 0 1rem; }
p, li { text-wrap: pretty; }
ul { padding-left: 1.25rem; }
li { margin: .35rem 0; }

.lede { max-width: var(--measure); font-size: 1.15rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mail { font-family: var(--mono); font-size: .92em; overflow-wrap: anywhere; }

.aside { color: var(--muted); font-size: .95rem; }

/* Home: the list of pages */

.links { list-style: none; margin: 2.75rem 0; padding: 0; border-top: 1px solid var(--rule); }
.links li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .1rem 1rem;
  margin: 0;
  padding: .9rem 0;
  border-bottom: 1px solid var(--rule);
}
.links a { min-width: 10rem; font-weight: 500; }
.links span { color: var(--muted); font-size: .95rem; }

/* Disclosure: the draft notice (removed at approval) */

.draft-notice {
  margin: 0 0 2.5rem;
  padding: .75rem 1rem;
  border: 1px solid var(--accent);
  font-size: .95rem;
}

/* Advisories */

.empty {
  margin: 2.25rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}

.advisories { list-style: none; margin: 2.25rem 0; padding: 0; border-top: 1px solid var(--rule); }
.advisories li { margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.advisories h2 { margin: .2rem 0 .3rem; }
.adv-meta, .adv-detail { margin: 0; color: var(--muted); font-size: .9rem; }
.adv-id, .adv-cve { font-family: var(--mono); }

/* Footer */

footer.site { padding-top: 1.25rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; }
footer.site p { margin: 0; }

/* Phones */

@media (max-width: 30rem) {
  .page { padding-top: 1.5rem; }
  main { padding: 2.25rem 0 3rem; }
  .lede { font-size: 1.075rem; }
}
