/* OwnerSec design system — calm, trustworthy UK SME cybersecurity */
:root {
  --ink: #0c1a2e;
  --ink-soft: #1a2d45;
  --navy: #152238;
  --text: #1c2a3a;
  --text-muted: #5a6b7d;
  --text-faint: #7a8b9c;
  --bg: #f7f5f1;
  --bg-elevated: #ffffff;
  --bg-tint: #eef3f6;
  --border: #d8e0e8;
  --border-strong: #b8c5d4;
  --accent: #0d7a6f;
  --accent-hover: #0a635a;
  --accent-soft: #e4f3f1;
  --accent-border: #b8ddd8;
  --warn-bg: #faf6ee;
  --warn-border: #e0d4b8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(12, 26, 46, 0.04), 0 8px 24px rgba(12, 26, 46, 0.06);
  --shadow-sm: 0 1px 3px rgba(12, 26, 46, 0.06);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --measure: 42rem;
  --page: 68rem;
  --header-h: 4rem;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ——— Layout ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner,
.site-footer__inner,
.container {
  width: min(100% - 2rem, var(--page));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { color: var(--ink); text-decoration: none; }
.logo__mark {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
}
.logo__word span { color: var(--accent); font-weight: 700; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.35em;
}

.site-footer {
  margin-top: 4.5rem;
  padding: 2.5rem 0 2.75rem;
  border-top: 1px solid var(--border);
  background: var(--bg-tint);
  color: var(--text-muted);
  font-size: 0.88rem;
}
.site-footer__inner {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}
.site-footer a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.site-footer a:hover { color: var(--accent); }
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}
.site-footer__meta { margin: 0; max-width: 36rem; line-height: 1.55; }
.site-footer__legal {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ——— Typography ——— */
h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.22;
}
h1 { font-size: clamp(1.85rem, 4.2vw, 2.55rem); margin: 0 0 1rem; }
h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.55rem);
  margin: 2.4rem 0 0.85rem;
  padding-top: 0.35rem;
}
h3 { font-size: 1.12rem; margin: 1.6rem 0 0.55rem; }
p { margin: 0 0 1.05rem; }
.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  max-width: 38rem;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}
.kicker::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

ul, ol { margin: 0 0 1.2rem; padding-left: 1.25rem; }
li { margin-bottom: 0.45rem; }
li::marker { color: var(--accent); }
strong { font-weight: 650; color: var(--ink-soft); }

/* ——— Hero / home ——— */
.hero {
  padding: 3rem 0 2.5rem;
}
@media (min-width: 768px) {
  .hero { padding: 4.25rem 0 3.25rem; }
}
.hero__grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.35fr 0.9fr;
    gap: 3rem;
    align-items: end;
  }
}
.hero h1 { margin-bottom: 1.1rem; max-width: 14ch; }
.hero__panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.4rem;
}
.hero__panel h2 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  padding: 0;
  font-family: var(--font-sans);
  font-weight: 650;
  letter-spacing: -0.01em;
}
.hero__panel ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.hero__panel li { margin-bottom: 0.55rem; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--accent-soft);
}
.btn--affiliate {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
}
.btn--affiliate:hover { background: var(--ink-soft); color: #fff; }

.section {
  padding: 2.25rem 0;
}
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section__head h2 {
  margin: 0;
  padding: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}
.section__link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.section__link:hover { text-decoration: underline; }

.who {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .who { grid-template-columns: repeat(3, 1fr); }
}
.who__card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.who__card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.who__card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.guide-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  min-height: 100%;
}
.guide-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}
.guide-card__meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}
.guide-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-family: var(--font-serif);
}
.guide-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}
.guide-card__more {
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.money-band {
  margin-top: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .money-band {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.money-band h2 {
  margin: 0 0 0.4rem;
  padding: 0;
  font-size: 1.25rem;
}
.money-band p { margin: 0; color: var(--text-muted); max-width: 38rem; }

/* ——— Article ——— */
.article-wrap {
  width: min(100% - 2rem, var(--measure));
  margin: 0 auto;
  padding: 2.25rem 0 1rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.05rem;
  margin: 1.35rem 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.callout--warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  border-left-color: #b0893a;
}
.callout p:last-child { margin-bottom: 0; }

.cta-box {
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin: 1.35rem 0;
}
.cta-box__label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.55rem;
}
.cta-box p { margin: 0 0 0.75rem; font-size: 0.92rem; color: var(--text-muted); }
.cta-box p:last-of-type { margin-bottom: 0.85rem; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.25rem 0 1.5rem;
  display: block;
  overflow-x: auto;
}
.prose th, .prose td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  vertical-align: top;
}
.prose th {
  background: var(--bg-tint);
  font-weight: 650;
  color: var(--ink);
}
.prose td { background: var(--bg-elevated); }
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.faq dt {
  font-weight: 650;
  color: var(--ink);
  margin-top: 1rem;
}
.faq dd {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}
.checklist {
  list-style: none;
  padding-left: 0;
}
.checklist li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.55rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.95rem;
  height: 0.95rem;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  background: var(--bg-elevated);
}

.page-hero {
  width: min(100% - 2rem, var(--page));
  margin: 0 auto;
  padding: 2.5rem 0 1rem;
}
.page-hero .lead { margin-bottom: 0; }
.narrow {
  width: min(100% - 2rem, var(--measure));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.disclosure-inline {
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
}

@media (max-width: 560px) {
  html { font-size: 16px; }
  .nav { gap: 0.15rem 0.85rem; }
  .nav a { font-size: 0.85rem; }
  .hero { padding-top: 2rem; }
}
