/* husora.dev
 *
 * No webfonts, deliberately. A page whose subject is that this product does
 * not send your data anywhere should not open a connection to a font CDN to
 * render that sentence -- Google Fonts sees the reader's IP and the referring
 * page, and "the privacy policy told Google you read the privacy policy" is
 * the kind of detail that is small, true, and impossible to defend once
 * noticed. System stacks cost one fewer request and nothing in legibility.
 *
 * Sans for structure, serif for the long read. The policy is ~2,500 words of
 * continuous prose and a serif measure carries that better than a UI face;
 * the home page is short and sits in the sans.
 */

:root {
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  /* Verdigris on warm paper. Chosen to read as household infrastructure --
     copper that has been on a roof a while -- rather than as a launch. */
  --bg:      #fbfaf8;
  --surface: #ffffff;
  --text:    #1a1d1c;
  --muted:   #5c625f;
  --accent:  #2e6a5e;
  --rule:    #e4e2dd;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #131615;
    --surface: #1a1e1d;
    --text:    #e9eae8;
    --muted:   #99a19d;
    --accent:  #78c4b4;
    --rule:    #272c2a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 42rem;      /* ~68 characters at this size */
  margin: 0 auto;
  padding: 3.5rem 1.5rem 6rem;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- masthead ------------------------------------------------------- */

.masthead { margin-bottom: 3rem; }

.wordmark {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
.wordmark a { color: var(--text); text-decoration: none; }

.tagline {
  color: var(--muted);
  margin: 0.35rem 0 0;
  font-size: 1rem;
}

/* ---- headings ------------------------------------------------------- */

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin: 0 0 0.5rem;
  text-wrap: balance;
}

h2 {
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  text-wrap: balance;
}

/* ---- long-form policy body ------------------------------------------ */

.prose { font-family: var(--serif); font-size: 1.05rem; line-height: 1.68; }
.prose h1, .prose h2, .prose .meta { font-family: var(--sans); }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.35rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 650; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.08em 0.32em;
  overflow-wrap: break-word;
}
@media (prefers-color-scheme: dark) {
  code { background: #10201c; border-color: #24352f; }
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
  line-height: 1.5;
}
.meta strong { color: var(--text); font-weight: 600; }

/* ---- home page ------------------------------------------------------ */

.lede { font-size: 1.2rem; line-height: 1.5; margin: 0 0 1.75rem; }

.status {
  border-left: 3px solid var(--accent);
  padding: 0.1rem 0 0.1rem 1rem;
  margin: 2rem 0;
  color: var(--muted);
}
.status strong { color: var(--text); }

.points { list-style: none; padding: 0; margin: 2rem 0; }
.points li {
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}
.points li:last-child { border-bottom: 1px solid var(--rule); }
.points b { display: block; font-weight: 620; margin-bottom: 0.15rem; }
.points span { color: var(--muted); }

footer {
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

@media (max-width: 30rem) {
  body { font-size: 16px; }
  .wrap { padding: 2.5rem 1.15rem 4rem; }
  h1 { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
