/* Percival's public pages. The colours are the brand's (docs/brand/index.md), by name. No web
   fonts and nothing from another site, so the privacy policy's "load nothing from other sites" stays true. */
:root {
  --ink: #090D16; --plumage: #121A2A; --slate: #1B263B; --flight: #769BFF; --iris: #A88BFA; --glint: #50D5EA;
  --moonlight: #EDF1FA;
  --soft: #AEB9D0; /* Moonlight, quieter: secondary text (9:1 on Ink) */
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--moonlight); line-height: 1.6;
  font: 1.0625rem/1.65 "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif; }
a { color: var(--flight); text-underline-offset: 0.2em; }
a:hover { color: var(--glint); }
:focus-visible { outline: 2px solid var(--glint); outline-offset: 3px; }
h1, h2 { line-height: 1.15; text-wrap: balance; font-weight: 600; }
.wrap { width: min(68rem, 100% - 2.5rem); margin-inline: auto; }

.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; }
.name { display: flex; align-items: center; gap: 0.7rem; color: var(--moonlight); text-decoration: none; font-weight: 600; }
.name img { width: 2.25rem; height: 2.25rem; }
nav { display: flex; gap: 1.25rem; }
nav a { color: var(--soft); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--moonlight); }

.hero { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 2rem; padding-block: 2rem 4rem; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.02em; margin: 0 0 1.25rem; }
.hero p { max-width: 34rem; color: var(--soft); font-size: 1.15rem; margin: 0; }
.hero img { width: 100%; height: auto; display: block; }

.band { background: var(--plumage); border-top: 1px solid var(--slate); padding-block: 3.5rem; }
.text { max-width: 42rem; }
.text h2 { font-size: 1.4rem; margin: 2.5rem 0 0.75rem; }
.text > h2:first-child { margin-top: 0; }
.text li + li { margin-top: 0.4rem; }

.page { padding-block: 2rem 5rem; }
.page h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 0.5rem; letter-spacing: -0.015em; }
.date { color: var(--soft); margin: 0 0 2.5rem; }
/* Something still to fill in before publishing (public-site/README.md): impossible to miss. */
.todo { background: var(--iris); color: var(--ink); padding: 0 0.35em; font-weight: 600; }

footer { border-top: 1px solid var(--slate); color: var(--soft); padding-block: 1.75rem; font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
@media (max-width: 46rem) {
  .hero { grid-template-columns: 1fr; padding-top: 0.5rem; }
  .hero img { max-width: 24rem; margin-inline: auto; order: -1; }
}
