/* TLStas Security — tlstas.eu
   Geen externe bronnen, geen JavaScript. Alles 'self' (zie /_headers voor CSP). */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #101a2b;
  --muted: #55607a;
  --line: #dcd8cf;
  --accent: #0a6e5f;
  --accent-ink: #ffffff;
  --accent-soft: #e2f0ec;
  --radius: 14px;
  --wrap: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1420;
    --surface: #131d2c;
    --ink: #e9edf3;
    --muted: #9aa6ba;
    --line: #243044;
    --accent: #4fd1b5;
    --accent-ink: #06231d;
    --accent-soft: #12302c;
  }
}

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

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

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4rem;
}
.brand {
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
}
.brand b { font-family: var(--mono); color: var(--accent); font-weight: 700; }
.brand span { color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .lang {
  font-family: var(--mono); font-size: .8rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem;
}
.nav .lang:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 44rem) {
  .nav a:not(.lang):not(.keep) { display: none; }
  .nav { gap: 1rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5rem); }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero .wrap { grid-template-columns: 1.25fr 1fr; gap: 4rem; } }

.eyebrow {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 750; }
h1 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 1.4rem; font-size: 1.15rem; color: var(--muted); max-width: 34rem; }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.3rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid var(--ink); color: var(--ink);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.1); color: var(--accent-ink); }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
  font-family: var(--mono); font-size: .88rem;
}
.panel-title { color: var(--muted); padding-bottom: .9rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line); }
.panel li { display: flex; gap: .75rem; padding-block: .55rem; align-items: baseline; }
.panel li + li { border-top: 1px dashed var(--line); }
.panel li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---------- Sections ---------- */
section { padding-block: clamp(3rem, 7vw, 5rem); }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 720; }
.section-head p { margin-top: 1rem; color: var(--muted); }

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
@media (min-width: 56rem) { .cards { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
}
.alt .card { background: var(--bg); }
.icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  margin-bottom: 1.1rem;
}
.icon svg { width: 1.4rem; height: 1.4rem; }
h3 { font-size: 1.2rem; font-weight: 680; }
.card p { margin-top: .6rem; color: var(--muted); font-size: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.tags li {
  font-family: var(--mono); font-size: .75rem;
  border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem; color: var(--muted);
}

.steps { display: grid; gap: 1.25rem; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.steps li { counter-increment: step; border-top: 2px solid var(--accent); padding-top: 1.1rem; }
.steps li::before {
  content: "0" counter(step); display: block;
  font-family: var(--mono); font-size: .85rem; color: var(--accent); margin-bottom: .5rem;
}
.steps p { margin-top: .5rem; color: var(--muted); font-size: 1rem; }

.about { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .about { grid-template-columns: 1fr 1.4fr; gap: 4rem; } }
.about .body p + p { margin-top: 1rem; }
.about .body { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-box {
  background: var(--ink); color: var(--bg);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.75rem, 5vw, 3.5rem);
}
.contact-box p { margin-top: 1rem; max-width: 36rem; opacity: .8; }
.contact-box .btn { border-color: var(--bg); color: var(--bg); }
.contact-box .btn:hover { border-color: var(--accent); color: var(--accent); }
.contact-box .btn.primary { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.contact-box .btn.primary:hover { color: var(--ink); filter: brightness(.92); }
.btn svg { width: 1.1rem; height: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 2.5rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .privacy { text-align: right; } }
.site-footer strong { color: var(--ink); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  .site-header, .actions, .skip { display: none; }
  body { background: #fff; color: #000; }
}
