/* Sunray Orbs. Palette is ink #141A2E and amber #F2B134, and nothing on this
   site is distinguished by colour alone: every link is underlined, the current
   page is marked with a border as well as a tint, and headings carry their own
   weight and size. The pages read correctly in greyscale. */

:root {
  --ink:    #141A2E;
  --ink-2:  #1D2540;
  --amber:  #F2B134;
  --paper:  #F4F5F8;
  --muted:  #A8AFC4;
  --rule:   #2C3553;
  --measure: 34rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  padding: 0 1rem;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--amber);
  color: var(--ink);
  padding: .5rem .75rem;
  border-radius: 4px;
}

header.site, main, footer.site {
  max-width: var(--measure);
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: inherit;
}
.brand img { display: block; border-radius: 8px; }
.brand-name {
  letter-spacing: .14em;
  font-size: .8rem;
}
.brand-name b { font-weight: 700; }

header.site nav {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
header.site nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: .9rem;
  padding: .25rem .6rem;
  border: 1px solid transparent;
  border-radius: 999px;
}
header.site nav a:hover,
header.site nav a:focus-visible { border-color: var(--rule); }
/* Current page: a border and a tint, never the tint on its own. */
header.site nav a[aria-current="page"] {
  border-color: var(--amber);
  background: rgba(242, 177, 52, .12);
}

main { padding: 2.25rem 0 1rem; }

h1 {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 .4rem;
}
h2 {
  font-size: 1.1rem;
  margin: 2.25rem 0 .5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
h2:first-of-type { border-top: 0; padding-top: 0; }
h3 { font-size: .98rem; margin: 1.5rem 0 .35rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .35rem; }

a { color: var(--amber); text-decoration: underline; }
a:focus-visible,
header.site nav a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.lead { font-size: 1.1rem; color: var(--paper); }
.muted { color: var(--muted); }
.updated { color: var(--muted); font-size: .88rem; margin-bottom: 2rem; }

.card {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
}
.card :last-child { margin-bottom: 0; }
.card h2, .card h3 { margin-top: 0; border-top: 0; padding-top: 0; }

.status {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  border: 1px solid var(--amber);
  color: var(--amber);
  border-radius: 999px;
  padding: .1rem .6rem;
  margin-bottom: .75rem;
}

dl.plain { margin: 0 0 1rem; }
dl.plain dt { font-weight: 700; margin-top: .9rem; }
dl.plain dd { margin: .15rem 0 0; color: var(--paper); }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
