/* gurewitsch.it — shared stylesheet
   Design system: "Cockpit" per decisions.md #22 (dark technical, IBM Plex,
   amber reserved for primary CTAs). Plain CSS, no framework (#14).
   Palette WCAG-AA-verified 2026-07-21 — re-run the checklist contrast check
   if any token changes. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/plex-sans-400.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/plex-sans-600.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/plex-mono-400.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/plex-mono-600.woff2) format('woff2');
}

:root {
  --ground: #0b1322;
  --panel: #101a2d;
  --panel-up: #16233b;
  --line: #24334d;
  --ink: #e8eef7;
  --soft: #96a5bb;
  --amber: #f0a23c;
  --amber-bright: #ffb44f;
  --amber-dim: #b87e2f;
  --green: #46b37a;
  --green-line: #2e6b4e;
  --on-amber: #14100a;
  --max: 74rem;
  --measure: 38rem;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: 'IBM Plex Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.62;
  font-size: 1.04rem;
}

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

::selection { background: var(--amber); color: var(--on-amber); }

[id] { scroll-margin-top: 4.5rem; }

/* ---------- header / nav ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 19, 34, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav .brand {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}
.nav .brand::after { content: "_"; color: var(--amber); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nav .brand::after { animation: none; } }

.nav ul {
  display: flex;
  gap: 1.3rem;
  list-style: none;
  margin-left: auto;
  flex-wrap: wrap;
  align-items: center;
}

.nav a { font-family: var(--mono); color: var(--soft); text-decoration: none; font-size: 0.84rem; text-transform: lowercase; }
.nav a:hover { color: var(--amber); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--amber); }
.nav .lang { border: 1px solid var(--line); border-radius: 3px; padding: 0.1rem 0.5rem; }

.nav .nav-cta {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  border-radius: 3px;
  padding: 0.35rem 0.85rem;
  white-space: nowrap;
}
.nav .nav-cta:hover { background: var(--amber); color: var(--on-amber); }

/* ---------- hero ---------- */

.hero {
  border-bottom: 1px solid var(--line);
  background: radial-gradient(60rem 28rem at 85% -10%, rgba(240, 162, 60, 0.07), transparent 60%);
}

.hero .inner { max-width: var(--max); margin: 0 auto; padding: 4.5rem 1.25rem 3.5rem; }

.hero .crumb {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--amber);
  letter-spacing: 0.02em;
}

.hero h1 {
  margin-top: 1.4rem;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.015em;
  max-width: 46rem;
  text-wrap: balance;
}
.hero h1.long { font-size: clamp(1.45rem, 3vw, 2.1rem); line-height: 1.25; max-width: 44rem; }

.hero p.lede {
  margin-top: 1.6rem;
  max-width: 40rem;
  font-size: 1.14rem;
  color: var(--soft);
}
.hero p.lede strong { color: var(--ink); font-weight: 600; }

.hero .cta-row { margin-top: 2.2rem; }

.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- facts strip (index hero) ---------- */

.facts {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
.facts > div { border-right: 1px solid var(--line); padding: 1rem 1.2rem 0.2rem 0; }
.facts > div:last-child { border-right: 0; }
.facts .k {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.facts .v { margin-top: 0.2rem; font-weight: 600; font-size: 1rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.68rem 1.4rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  color: var(--ink);
}
/* primary + accent = the amber CTAs; ghost + quiet = neutral line buttons */
.btn.primary, .btn.accent { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.btn.primary:hover, .btn.accent:hover { background: var(--amber-bright); border-color: var(--amber-bright); }
.btn.ghost:hover, .btn.quiet:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- sections ---------- */

section.block { border-bottom: 1px solid var(--line); }
section.block > .inner { max-width: var(--max); margin: 0 auto; padding: 3.6rem 1.25rem 4rem; }
section.block.alt { background: var(--panel); }
section.block:last-of-type { border-bottom: 0; }

.kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber);
}

section.block h1,
section.block h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
  max-width: 40rem;
  text-wrap: balance;
}

section.block p { max-width: var(--measure); margin-top: 1.2rem; color: var(--soft); }
section.block p strong { color: var(--ink); font-weight: 600; }
section.block a { color: var(--amber); }

section.block ul.points {
  margin: 1.2rem 0 0 1.2rem;
  max-width: var(--measure);
  color: var(--soft);
}
section.block ul.points li { margin-top: 0.7rem; }
section.block ul.points li::marker { color: var(--amber); }
section.block ul.points strong { color: var(--ink); }

.offer-cta { margin-top: 1.8rem; display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.offer-cta .note { font-size: 0.9rem; color: var(--soft); }
.offer-cta .note a { color: var(--amber); }

/* ---------- module board (index services) ---------- */

.board {
  margin-top: 2rem;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  grid-template-columns: repeat(6, 1fr);
}
.mod {
  background: var(--panel);
  padding: 1.4rem 1.5rem 1.6rem;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.alt .mod { background: var(--ground); }
.mod:hover { background: var(--panel-up); }
.mod.wide { grid-column: span 3; }
.mod-head { display: flex; align-items: center; gap: 0.8rem; }
.mod-head .code { font-family: var(--mono); font-size: 0.78rem; color: var(--soft); }
.chip {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--soft);
  white-space: nowrap;
}
.chip.hot { border-color: var(--amber-dim); color: var(--amber); background: rgba(240, 162, 60, 0.08); }
.chip.run { border-color: var(--green-line); color: var(--green); background: rgba(70, 179, 122, 0.07); }
.mod h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.mod p { font-size: 0.94rem; margin-top: 0; color: var(--soft); flex: 1; }
.mod p.stack {
  flex: none;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  border-top: 1px dashed var(--line);
  padding-top: 0.6rem;
}
.mod a.more { font-family: var(--mono); font-size: 0.85rem; color: var(--amber); text-decoration: none; }
.mod a.more:hover { text-decoration: underline; }

/* ---------- featured panel (index NIS2 spotlight) ---------- */

.feature {
  margin-top: 2rem;
  border: 1px solid var(--amber-dim);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(240, 162, 60, 0.06), transparent 40%), var(--panel);
  padding: 2rem 2rem 2.2rem;
}
.feature .mono-tag { font-family: var(--mono); font-size: 0.78rem; color: var(--amber); }
.feature h3 {
  margin-top: 0.6rem;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 600;
  max-width: 38rem;
  text-wrap: balance;
}
.feature .offer-cta { margin-top: 1.6rem; }

/* ---------- about (portrait-ready per #23) ---------- */

.about-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.about-grid.has-portrait { grid-template-columns: 13rem 1fr; }
.portrait img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  filter: grayscale(1) contrast(1.05);
}

.profile-links { margin-top: 1.4rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.profile-links a { font-family: var(--mono); font-size: 0.9rem; color: var(--amber); font-weight: 400; text-decoration: none; }
.profile-links a:hover { text-decoration: underline; }

/* ---------- contact ---------- */

.contact-grid {
  margin-top: 1.8rem;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.contact-grid .item { background: var(--panel); padding: 1.3rem 1.5rem; min-width: 0; }
.alt .contact-grid .item { background: var(--ground); }
.contact-grid .item .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.contact-grid .item a { display: block; margin-top: 0.35rem; color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-grid .item a:hover { color: var(--amber); }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding: 1.6rem 1.25rem 2.2rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--soft);
}

footer.site .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

footer.site a { color: var(--soft); text-decoration: none; text-transform: lowercase; }
footer.site a:hover { color: var(--amber); }
footer.site a[aria-current="page"] { color: var(--ink); }
footer.site .spacer { flex: 1; }

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .board { grid-template-columns: 1fr 1fr; }
  .mod, .mod.wide { grid-column: span 1; }
  .mod:last-child { grid-column: span 2; }
}

@media (max-width: 640px) {
  .nav ul { gap: 0.9rem; }
  .hero .inner { padding: 3rem 1.25rem 2.6rem; }
  section.block > .inner { padding: 2.5rem 1.25rem 2.8rem; }
  .board { grid-template-columns: 1fr; }
  .mod, .mod.wide, .mod:last-child { grid-column: span 1; }
  .mod-head { flex-wrap: wrap; }
  .facts > div { border-right: 0; }
  .feature { padding: 1.4rem 1.25rem 1.6rem; }
  .about-grid.has-portrait { grid-template-columns: 1fr; }
  .about-grid.has-portrait .portrait { max-width: 13rem; }
}
