/* itys.club: one stylesheet, no web fonts, no scripts. Colours follow app.config.ts. */
:root {
  color-scheme: light dark;
  --page: #f4f5f0;
  --ink: #0b0d09;
  --muted: #4a4f45;
  --rule: #d9dcd2;
  --accent-ink: #0b0d09;
  --accent: #c8ff3d;
  --link: #2f5a00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b0d09;
    --ink: #f4f5f0;
    --muted: #b3b8ab;
    --rule: #2a2e25;
    --link: #c8ff3d;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.shell {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9375rem;
}

h1 {
  margin: 2rem 0 0.5rem;
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.meta {
  color: var(--muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.lede {
  font-size: 1.25rem;
}

.call {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

ol,
ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}
