/*
Theme Name: MIAZGA Tools
Description: Katalog narzędzi sieciowych z symulatorem firewalla MikroTik RouterOS.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: miazga-tools
*/

:root {
  color-scheme: dark;
  --background: #10151d;
  --header: #131b26;
  --surface: #17212e;
  --line: #2a3748;
  --text: #ecf1f8;
  --muted: #aab8ca;
  --blue: #8acaff;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font: 100%/1.55 system-ui, sans-serif;
}
a { color: var(--blue); text-underline-offset: .23em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
img { max-width: 100%; height: auto; }
h1, h2 { line-height: 1.15; }
h1 { margin: 0 0 12px; font-size: clamp(2.25rem, 6vw, 4rem); letter-spacing: -.05em; }
h2 { font-size: 1.25rem; }
.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: var(--gutter); }
.site-header { background: var(--header); border-bottom: 1px solid var(--line); }
.header-row, .footer-row, .tool-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 16px;
}
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--text); font-weight: 750; text-decoration: none; }
.brand-mark { color: var(--blue); font: 700 1.4rem/1 ui-monospace, monospace; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.site-nav a, .tool-bar a { font-size: .9rem; }
.site-footer { margin-top: auto; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.catalog { padding-block: clamp(42px, 8vw, 92px) 72px; }
.catalog-intro { margin-bottom: 34px; }
.catalog-intro p, .tool-card p, .muted { color: var(--muted); margin: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 410px), 1fr)); gap: 16px; }
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(20px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.tool-card:focus-within, .tool-card:hover { border-color: #53738e; }
.tool-card .category { font: .8rem/1.5 ui-monospace, monospace; color: var(--blue); }
.tool-card h2 { margin: 12px 0 10px; font-size: clamp(1.25rem, 3vw, 1.75rem); }
.tool-card p { margin-bottom: 22px; }
.tool-action {
  margin-top: auto;
  padding: 8px 13px;
  border-radius: 8px;
  background: var(--blue);
  color: #091b2a;
  font-weight: 700;
  text-decoration: none;
}
.tool-action:hover { background: #b7dfff; color: #091b2a; }
.support-card {
  border-color: #3b5670;
  border-color: color-mix(in srgb, var(--line) 75%, var(--blue));
}
.support-card:hover, .support-card:focus-within {
  border-color: #53738e;
  border-color: color-mix(in srgb, var(--line) 55%, var(--blue));
}
.support-label { display: flex; align-items: center; gap: 8px; color: var(--blue); }
.support-label svg { flex: none; }
.support-note { margin-top: 12px; color: var(--muted); font-size: .8125rem; }
.tool-bar { border-bottom: 1px solid var(--line); }
.tool-frame { display: block; width: 100%; height: 1100px; border: 0; background: var(--background); }
.article { max-width: 820px; padding-block: 42px; overflow-wrap: anywhere; }
.article pre { overflow: auto; }
.screen-reader-text, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 50px; left: 16px; z-index: 100000; padding: 10px 16px; background: var(--surface); }
@media (max-width: 720px) {
  :root { --gutter: 14px; }
}
