/* wwwebhosting.com: one small stylesheet, system fonts, no third parties. */

:root {
  --paper: #f6f3ec;
  --paper-2: #ece7db;
  --card: #fffdf8;
  --ink: #1b1f22;
  --ink-2: #4a5156;
  --rule: #d9d2c3;
  --accent: #1d5b4f;
  --accent-ink: #ffffff;
  --link: #1d5b4f;
  --mark: #b4471f;
  --focus: #b4471f;
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 42rem;
  --wide: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14181b;
    --paper-2: #1b2024;
    --card: #1d2327;
    --ink: #ebe7df;
    --ink-2: #b3b8bb;
    --rule: #333b40;
    --accent: #7cc4b2;
    --accent-ink: #0f1517;
    --link: #8fd0bf;
    --mark: #f08a5d;
    --focus: #f08a5d;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
}

img { max-width: 100%; height: auto; }

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

.skip {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--paper); padding: 0.5rem 0.75rem; z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 1.5rem; } }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.wordmark { font: 700 1.2rem/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.www { color: var(--mark); font-family: var(--mono); font-size: 0.92em; letter-spacing: 0.02em; }
.nav { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.75rem 0; }
.nav a:hover { color: var(--link); text-decoration: underline; }

/* Type */
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); margin: 0.5rem 0 1rem; font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3.4vw, 1.75rem); margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }
.lede { font-size: clamp(1.12rem, 2.4vw, 1.3rem); color: var(--ink-2); max-width: var(--measure); margin: 0 0 1rem; }

/* Home */
.hero { padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.hero h1 { max-width: 18ch; }
.section-title { margin-top: 0.5rem; font-size: 1rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.home-prose { max-width: var(--measure); }

/* Guide cards */
.cards { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; gap: 1rem; }
@media (min-width: 44rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.25rem 1.25rem 1rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.card:hover { border-color: var(--accent); }
.card:hover h3 a { text-decoration: underline; }
.card p { margin: 0 0 0.5rem; color: var(--ink-2); font-size: 0.97rem; }

/* Articles */
.article { padding-top: 1.5rem; padding-bottom: 3rem; }
.article > * { max-width: var(--measure); }
.article > .more { max-width: none; }
.crumbs { font-size: 0.9rem; color: var(--ink-2); margin-top: 0.5rem; }
.crumbs a { color: var(--ink-2); }
.byline { font-size: 0.92rem; color: var(--ink-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 0.6rem 0; margin: 1.5rem 0; }
.byline a { color: var(--ink); }

.toc { background: var(--paper-2); border-radius: 6px; padding: 1rem 1.25rem; margin: 0 0 2rem; }
.toc-title { margin: 0 0 0.4rem; font-weight: 700; font-size: 0.95rem; }
.toc ul { margin: 0; padding-left: 1.25rem; }
.toc li { margin: 0.2rem 0; }

.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose li { margin: 0.35rem 0; }
.prose li > p { margin: 0; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 3px; overflow-wrap: anywhere; }
.prose pre { background: var(--paper-2); padding: 1rem; border-radius: 6px; overflow-x: auto; font-size: 0.9rem; }
.prose pre code { background: none; padding: 0; }
.prose strong { font-weight: 650; }
.prose blockquote { margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1rem; border-left: 3px solid var(--mark); color: var(--ink-2); }

.prose .table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 700; background: var(--paper-2); }

.note { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 4px; padding: 0.9rem 1.1rem; margin: 1.5rem 0; }
.note p:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 1.1rem; height: 1.1rem;
  border: 2px solid var(--accent); border-radius: 3px;
}

.sources { border-top: 1px solid var(--rule); margin-top: 2.5rem; }
.sources h2 { font-size: 1.15rem; margin-top: 1.5rem; }
.sources ul { padding-left: 1.2rem; font-size: 0.95rem; }
.ai-note { font-size: 0.88rem; color: var(--ink-2); }

.help {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2.5rem 0;
}
.help h2 { margin-top: 0; font-size: 1.35rem; }
.help p { color: var(--ink-2); }
.help p:last-child { margin-bottom: 0; }
.button {
  display: inline-block;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none;
  padding: 0.75rem 1.2rem; border-radius: 6px; min-height: 44px;
}
.button:hover { text-decoration: underline; }

.more h2 { font-size: 1.35rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--paper-2); margin-top: 2rem; padding: 2.5rem 0 1rem; font-size: 0.95rem; color: var(--ink-2); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 2fr 1fr; } }
.footer-mark { font: 700 1.1rem/1 var(--serif); color: var(--ink); margin: 0 0 0.75rem; }
.footer-title { font-weight: 700; color: var(--ink); margin: 0 0 0.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.35rem 0; }
.site-footer a { color: var(--ink-2); }
.legal { border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 1rem; font-size: 0.85rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.table-wrap table { min-width: 32rem; }
.table-wrap:focus-visible { outline-offset: 4px; }
