/* IWBS site — one stylesheet for every page. No scripts, no external fonts:
   pages must load fast and work with the strict CSP in _headers / nginx.conf. */

:root {
  --bg: #ffffff;
  --surface: #f5f7f8;
  --ink: #111827;
  --ink-soft: #4b5563;
  --line: #e5e7eb;
  --accent: #0fb8a3;
  --accent-ink: #0a8f80;
  --todo-bg: #fff3c4;
  --todo-ink: #6b4e00;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f12;
    --surface: #151a1f;
    --ink: #f5f6f7;
    --ink-soft: #a3acb6;
    --line: #262d34;
    --accent-ink: #3fd6c2;
    --todo-bg: #4a3b00;
    --todo-ink: #ffe28a;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
  color: var(--accent-ink);
}

a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 15px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

/* Content */
main {
  padding: 32px 0 56px;
}

h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 8px;
}

h2 {
  font-size: 20px;
  line-height: 1.35;
  margin: 36px 0 10px;
}

h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

.meta {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 24px;
}

.lead {
  font-size: 19px;
  color: var(--ink-soft);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 36px;
  margin-bottom: 10px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

/* Tables scroll inside themselves, never the page (phone width). */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--surface);
  font-weight: 600;
}

/* Placeholders the owner must fill before publishing — loud on purpose. */
mark.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.feature-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0;
}

.feature-list strong {
  display: block;
  margin-bottom: 4px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.site-footer a {
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  h1 {
    font-size: 25px;
  }
  .lead {
    font-size: 17px;
  }
}
