/* ITMedia Security - shared design system (base). Tokens, fonts and the components every
   web surface uses. Design system of itemedia.sk: Swiss editorial, warm paper, ink, one brick
   accent, 1px rules instead of cards and shadows. No radius, no shadows, no gradients. */

/* ---------- fonts (self-hosted, latin + latin-ext) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-100-900-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-100-900-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --paper: #f4f3ef;
  --surface: #efeee9;
  --ink: #0f1110;
  --dark: #0c0d0c;
  --accent: #c93a14;
  --accent-contrast: #f4f3ef;
  --rule: #dcd9d1;
  --rule-soft: #e4e1d9;
  --body: #3a3d3a;
  --muted: #8a867d;
  --muted-2: #a5a096;
  --muted-3: #6e6a61;
  --img-bg: #e7e5df;
  --input-rule: #cfcbc2;

  --dark-text: #f4f3ef;
  --dark-muted: #7e7a70;
  --dark-body: #a9a49a;
  --dark-dim: #5f5b53;
  --dark-rule: #23251f;
  --dark-watermark: #161814;

  --status-risk: #ff5a2c;
  --status-progress: #e5c558;
  --status-ok: #6e8f5c;
  --status-ok-dark: #8fbf7a;

  --font-sans: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --fs-h1-hero: clamp(52px, 10.4vw, 178px);
  --fs-h1: clamp(44px, 8vw, 140px);
  --fs-h2-display: clamp(38px, 6.4vw, 110px);
  --fs-h2: clamp(28px, 3.6vw, 58px);
  --fs-h3: clamp(22px, 2vw, 30px);
  --fs-lead: clamp(16px, 1.25vw, 19px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-label: 10.5px;
  --fs-meta: 11px;

  --container: 1560px;
  --pad-x: clamp(20px, 4vw, 64px);
  --section-pad: clamp(70px, 9vw, 140px);
  --page-pad-top: clamp(110px, 14vh, 170px);

  --s-1: 6px;
  --s-2: 10px;
  --s-3: 16px;
  --s-4: 22px;
  --s-5: 34px;
  --s-6: 54px;
  --s-7: 90px;
  --s-8: 140px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hover: 0.32s;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: #c93a14; color: #f4f3ef; }
img { max-width: 100%; display: block; background: var(--img-bg); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: var(--pad-x); top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px;
  font-family: var(--font-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.14em;
}
.skip:focus { top: 10px; }

/* ---------- type ---------- */
.mono, .mono-tag, .meta, .btn, .chip, .kv__k, .stat__l, .label, .terminal {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}
.mono-tag, .label {
  font-size: var(--fs-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.meta { font-size: var(--fs-meta); color: var(--muted); letter-spacing: 0.04em; }
.label { display: flex; align-items: center; gap: var(--s-2); }
.label__n { color: var(--accent); }
.label__dash::before { content: "\2014"; margin: 0 var(--s-1); color: var(--muted-2); }

.h-hero, .h1, .h2-display, .h2, .h3 {
  font-family: var(--font-sans);
  color: var(--ink);
  text-wrap: balance;
}
.h-hero { font-size: var(--fs-h1-hero); font-weight: 600; font-stretch: 88%; letter-spacing: -0.05em; line-height: 0.86; }
.h1 { font-size: var(--fs-h1); font-weight: 600; font-stretch: 88%; letter-spacing: -0.05em; line-height: 0.88; }
.h2-display { font-size: var(--fs-h2-display); font-weight: 600; font-stretch: 88%; letter-spacing: -0.05em; line-height: 0.92; }
.h2 { font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; }
.h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--body); max-width: 56ch; }
.small { font-size: var(--fs-small); }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.accent { color: var(--accent); }

.dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); vertical-align: middle; flex: none;
}
.dot--ok { background: var(--status-ok); }
.dot--progress { background: var(--status-progress); }
.dot--risk { background: var(--status-risk); }
.dot--live { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-pad); border-top: 1px solid var(--rule); }
.section--flush { padding-top: 0; }
.section__head { margin-bottom: var(--s-5); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-4); row-gap: var(--s-5); }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }
.col-8-off { grid-column: 5 / span 8; }
.col-7-off { grid-column: 6 / span 7; }
@media (max-width: 900px) {
  .col-3, .col-4, .col-5, .col-7, .col-8, .col-8-off, .col-7-off { grid-column: span 12; }
}
.stack > * + * { margin-top: var(--s-3); }
.stack-lg > * + * { margin-top: var(--s-5); }

/* ---------- chips ---------- */
.chips { display: inline-flex; }
.chip {
  display: inline-block; padding: 6px 10px; border: 1px solid var(--ink);
  font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink); line-height: 1; transition: background var(--hover), color var(--hover);
}
.chip + .chip { border-left: 0; }
.chip:hover { background: var(--surface); }
.chip.is-active, .chip[aria-current="true"] { background: var(--ink); color: var(--paper); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 18px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background var(--hover), color var(--hover), border-color var(--hover), transform var(--hover) var(--ease);
  will-change: transform;
}
.btn__dash { display: inline-block; width: 14px; height: 1px; background: currentColor; transition: width var(--hover) var(--ease); }
.btn:hover .btn__dash, .btn:focus-visible .btn__dash { width: 28px; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn--secondary:hover, .btn--secondary:focus-visible { color: var(--accent); border-color: var(--accent); }
.btn--on-dark { border-color: var(--dark-text); color: var(--dark-text); }
.btn--on-dark:hover, .btn--on-dark:focus-visible { background: var(--dark-text); color: var(--dark); }
.btn--on-dark.btn--primary { background: var(--dark-text); color: var(--dark); }
.btn--on-dark.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn--lg { padding: 18px 24px; font-size: 11.5px; }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* ---------- stat row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat { padding: var(--s-4) var(--s-4) var(--s-4) 0; border-left: 1px solid var(--rule); padding-left: var(--s-4); min-width: 0; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__n { font-size: clamp(40px, 5vw, 84px); font-weight: 600; font-stretch: 80%; letter-spacing: -0.04em; line-height: 0.9; color: var(--ink); }
.stat__n sub { font-size: 0.3em; font-weight: 500; vertical-align: baseline; letter-spacing: 0; color: var(--muted); margin-left: 2px; }
.stat__l { margin-top: var(--s-2); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.stat__d { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--body); }
.stat--ok .stat__n { color: var(--status-ok); }
.stat--progress .stat__n { color: #b09532; }
.stat--risk .stat__n { color: var(--accent); }
.stat--na .stat__n { color: var(--muted); }
@media (max-width: 900px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-soft); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(2n) { border-left: 1px solid var(--rule); padding-left: var(--s-4); }
}
@media (max-width: 520px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(2n) { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-soft); }
  .stat:first-child { border-top: 0; }
}

/* ---------- KV rows ---------- */
.kv { border-top: 1px solid var(--rule); }
.kv__row { display: grid; grid-template-columns: minmax(140px, 3fr) 9fr; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.kv__k { font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.kv__v { color: var(--ink); }
.kv__v .mono { font-size: var(--fs-small); }
@media (max-width: 600px) { .kv__row { grid-template-columns: 1fr; gap: var(--s-1); } }

/* ---------- terminal ---------- */
.terminal {
  background: var(--dark); color: var(--dark-text);
  font-size: 13px; line-height: 1.7; padding: var(--s-4); overflow-x: auto;
  border-top: 1px solid var(--dark-rule);
}
.terminal--inline { padding: var(--s-3) var(--s-4); }
.terminal__line { display: flex; gap: 12px; white-space: pre-wrap; }
.terminal__line .k { color: var(--dark-muted); }
.terminal__line .ok { color: var(--status-ok-dark); }
.terminal__line .risk { color: var(--status-risk); }
.terminal__line .warn { color: var(--status-progress); }
.terminal pre { margin: 0; font: inherit; white-space: pre-wrap; word-break: break-word; color: var(--dark-body); }
.cursor::after { content: "_"; display: inline-block; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
details.evidence { margin-top: var(--s-3); }
details.evidence summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
details.evidence summary::-webkit-details-marker { display: none; }
details.evidence summary::before { content: "+"; font-family: var(--font-mono); color: var(--accent); }
details.evidence[open] summary::before { content: "\2212"; }
details.evidence .terminal { margin-top: var(--s-2); max-height: 360px; overflow: auto; }

