/* WebFence website. One stylesheet, no external resources (system fonts only). */

:root {
  --bg: #fbfbf9;
  --bg-alt: #f1f2ee;
  --surface: #ffffff;
  --text: #1c2321;
  --muted: #4d5754;
  --border: #d6dad4;
  --accent: #1f6b4f;
  --accent-strong: #154d39;
  --accent-contrast: #ffffff;
  --warn-bg: #fff6df;
  --warn-border: #b07f14;
  --note-bg: #eaf3ee;
  --focus: #1a5fd0;
  --radius: 10px;
  --maxw: 68rem;
  --measure: 44rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121615;
    --bg-alt: #1a1f1d;
    --surface: #1d2321;
    --text: #e7ebe8;
    --muted: #a9b3af;
    --border: #34403b;
    --accent: #6fcfa5;
    --accent-strong: #93dfbd;
    --accent-contrast: #0d1a14;
    --warn-bg: #2d2614;
    --warn-border: #c99a2e;
    --note-bg: #17271f;
    --focus: #8ab4ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 2rem 0 0.75rem; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-top: 0.5rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
h3 { font-size: 1.15rem; }
p, ul, ol, dl, table, pre { margin: 0 0 1rem; }
li + li { margin-top: 0.35rem; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-strong); }

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

code, pre, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}
code { background: var(--bg-alt); padding: 0.1em 0.3em; border-radius: 4px; overflow-wrap: anywhere; }
pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  white-space: pre-wrap;
  font-size: 0.85rem;
  line-height: 1.5;
}
pre code { background: none; padding: 0; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--focus);
  border-radius: 6px;
  z-index: 10;
}
.skip-link:focus { top: 0.75rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
.prose { max-width: var(--measure); }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand svg { width: 1.9rem; height: 1.9rem; flex: none; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li + li { margin-top: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 0.2rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

main { padding: 2rem 0 3rem; }

/* Hero */
.hero { padding: 2rem 0 1rem; }
.hero .lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 42rem; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.5rem; }
.button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-contrast); }
.button.secondary { background: transparent; color: var(--accent); }
.button.secondary:hover { background: var(--note-bg); color: var(--accent-strong); }
.button.disabled {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--muted);
  cursor: default;
}
.small { font-size: 0.92rem; color: var(--muted); }

/* Sections and cards */
.section { padding: 1.5rem 0; }
.section + .section { border-top: 1px solid var(--border); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

ol.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
ol.steps > li { counter-increment: step; margin: 0; }
ol.steps > li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.callout {
  border-left: 4px solid var(--accent);
  background: var(--note-bg);
  padding: 0.9rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1.25rem;
}
.callout.warn { border-left-color: var(--warn-border); background: var(--warn-bg); }
.callout > :last-child { margin-bottom: 0; }

.price { font-size: 2.6rem; font-weight: 750; letter-spacing: -0.02em; margin: 0; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--border); }
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }

dl dt { font-weight: 600; margin-top: 0.9rem; }
dl dd { margin: 0.2rem 0 0; }

.status {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--text);
  vertical-align: middle;
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 1.5rem 0 2rem; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; padding: 0; margin: 0 0 0.75rem; }
.site-footer li + li { margin-top: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; color: var(--muted); font-size: 0.92rem; }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  main { padding-top: 1rem; }
  .hero { padding-top: 1rem; }
}
