/* Small Biz Cyber Guide — shared styles */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1a1d23;
  --text-muted: #5a6270;
  --border: #e2e5eb;
  --accent: #0d6e6e;
  --accent-hover: #0a5555;
  --accent-soft: #e6f3f3;
  --warn-bg: #fff8e6;
  --warn-border: #e6c35c;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(26, 29, 35, 0.08);
  --max: 720px;
  --max-wide: 960px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

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

/* Header / nav */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--accent); }
.logo span { color: var(--accent); font-weight: 600; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--accent); }

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.wrap-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.25rem 2.25rem;
}
.hero-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.hero .lede {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 38rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Cards / grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }
.card a.card-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.card a.card-link:hover { text-decoration: underline; }

/* Prose */
.prose h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.15rem;
}
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.35rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--accent); }

.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p { margin: 0; }
.callout strong { color: var(--accent-hover); }

.disclosure {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.disclosure p { margin: 0; }

.placeholder-link {
  font-family: var(--mono);
  font-size: 0.85em;
  background: #f0f1f4;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  white-space: nowrap;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: #f0f2f5;
  font-weight: 600;
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfc; }

/* Stack diagram on home */
.stack-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.stack-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  box-shadow: var(--shadow);
}
.stack-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50%;
}
.stack-list h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.stack-list p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
.site-footer {
  background: #1a1d23;
  color: #c5c9d1;
  padding: 2.5rem 1.25rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}
.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.75rem;
}
.site-footer a { color: #9ecfcf; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h4 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-note {
  max-width: var(--max-wide);
  margin: 1.75rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid #333842;
  color: #8a909c;
  font-size: 0.85rem;
}

/* Meta / byline */
.byline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}
.updated { font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 600px) {
  .header-inner { padding: 0.65rem 1rem; }
  .nav { gap: 0.25rem 0.85rem; }
  .nav a { font-size: 0.875rem; }
  th, td { padding: 0.6rem 0.75rem; }
}
