/* wyome.com — every rule for all three pages.
   Light and dark come from prefers-color-scheme; there is no toggle,
   because a toggle would need JavaScript and the site has none. */

:root {
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --rule: #e4e4e4;
  --wy5: #ED4F2E;
  --wyhome: #1B5D73;
  --wyauto: #1B3B8F;
  --athena: #2E6F4E;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ececec;
    --muted: #9a9a9a;
    --bg: #161616;
    --rule: #303030;
    /* Wy5's red-orange is legible on both grounds and is unchanged.
       The other three lighten, because a saturated dark colour nearly
       vanishes against a dark background. */
    --wyhome: #3D8CA3;
    --wyauto: #5B7FD4;
    --athena: #6FB98C;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  max-width: 34rem;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration-color: var(--muted); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--ink); }

/* Header ------------------------------------------------------------ */

header.site { margin-bottom: 3rem; }

header.site .wordmark {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

header.site .wordmark a { text-decoration: none; }

header.site .tagline {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

header.site nav {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
}

header.site nav a { margin-right: 1rem; }
header.site nav a[aria-current="page"] { color: var(--muted); text-decoration: none; }

/* Projects ---------------------------------------------------------- */

.project { margin-bottom: 2.5rem; }

.project h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project h2::before {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 2px;
  background: var(--marker);
  flex: none;
}

.a-wy5    { --marker: var(--wy5); }
.a-wyhome { --marker: var(--wyhome); }
.a-wyauto { --marker: var(--wyauto); }
.a-athena { --marker: var(--athena); }

.project .status {
  margin: 0.125rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.project p.desc { margin: 0.5rem 0 0; }

.project p.link { margin: 0.5rem 0 0; font-size: 0.9375rem; }

/* Prose pages ------------------------------------------------------- */

main > h1 {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

main > p.lede { margin-top: 0; }

main h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

main p { margin: 0 0 0.75rem; }

.meta { color: var(--muted); font-size: 0.875rem; }

/* Footer ------------------------------------------------------------ */

footer.site {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

footer.site p { margin: 0 0 0.25rem; }
footer.site a { color: inherit; }
