/* amwebdev.com: the Ren hub's public pages. No web fonts, no scripts. */
:root {
  color-scheme: light dark;
  --bg: #fbfbfa;
  --fg: #1c1c1a;
  --muted: #5c5c57;
  --rule: #deded8;
  --link: #1d4ed8;
  --link-visited: #6d28d9;
  --focus: #b45309;
  --panel: #f1f1ee;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151514;
    --fg: #ececea;
    --muted: #a8a8a2;
    --rule: #34342f;
    --link: #93b4ff;
    --link-visited: #c4a8ff;
    --focus: #fbbf24;
    --panel: #1f1f1d;
  }
}

*,
*::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-family:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  z-index: 1;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header.site {
  border-bottom: 1px solid var(--rule);
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--fg);
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}

main.wrap {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

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

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

p,
ul,
dl {
  margin: 0 0 1rem;
}

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

nav li + li {
  margin-top: 0;
}

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

a:visited {
  color: var(--link-visited);
}

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

.lead {
  font-size: 1.1875rem;
}

.muted {
  color: var(--muted);
}

.action {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  padding: 0.625rem 1.125rem;
  border-radius: 0.5rem;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.action:visited {
  color: var(--bg);
}

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

footer.site .wrap {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

footer.site p {
  margin: 0.5rem 0 0;
}
