/*
  The one stylesheet of bitsofawe.com. It sets the header bar, the text
  column, the cards and the footer, in light and dark. It loads nothing
  from another host.
*/
:root {
  color-scheme: light dark;
  --text: #1c1b22;
  --muted: #63616d;
  --rule: #e3e1ea;
  --bg: #fbfaff;
  --surface: #ffffff;
  --accent: #5b3fd1;
  --accent-soft: #efebff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f2f1f7;
    --muted: #a5a3b1;
    --rule: #2e2c38;
    --bg: #121118;
    --surface: #1a1922;
    --accent: #a593ff;
    --accent-soft: #241f3d;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

/* The header bar and the footer, the same on every page. */
.site-header,
.site-footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.25rem;
}
.site-header {
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

/* The text column. */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}
h1 {
  font-size: 2.1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}
h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 0.4rem;
}
p {
  margin: 0.6rem 0;
}
a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}
a:hover {
  text-decoration-thickness: 2px;
}
.lead,
.date {
  color: var(--muted);
}
.lead {
  font-size: 1.15rem;
  margin: 0 0 2rem;
}
.date {
  font-size: 0.95rem;
  margin: 0 0 2rem;
}

/* The short summary at the top of a policy. */
.summary {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
}

/* An app on the home page. */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  margin: 1rem 0;
}
.card h2 {
  margin: 0 0 0.3rem;
}
.card p {
  color: var(--muted);
}

/* The contact line at the end of a policy. */
.contact {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
