/* Spectrum Holding — spectrumholding.eu */

/* ---------- fonts (self-hosted: no third-party requests) ---------- */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/archivo-400.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/archivo-500.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/archivo-600.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/archivo-700.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/jost-300.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/jost-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: 500; font-display: swap; src: url("fonts/plex-mono-500.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --deep: #2A3E51;
  --deep-2: #233444;
  --ink: #2A3E51;
  --ink-strong: #1E2E3C;
  --muted: #686868;
  --faint: #9AA1A6;
  --hair: #DDE2E6;
  --hair-strong: #C4CCD2;
  --accent: #F04956;
  --accent-ink: #D6333F;
  --on-deep: #EAF0F4;
  --on-deep-muted: #94A8B6;
  --on-deep-hair: #46586A;
  --shell: 1140px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D171E;
    --surface: #14212B;
    --deep: #0A1219;
    --deep-2: #101C25;
    --ink: #DDE6EC;
    --ink-strong: #EAF0F4;
    --muted: #9BADBA;
    --faint: #7A8D9B;
    --hair: #223441;
    --hair-strong: #2E4351;
    --accent: #FF5D69;
    --accent-ink: #FF7A84;
    --on-deep: #EAF0F4;
    --on-deep-muted: #8FA3B2;
    --on-deep-hair: #24363F;
  }
}
:root[data-theme="dark"] {
  --bg: #0D171E;
  --surface: #14212B;
  --deep: #0A1219;
  --deep-2: #101C25;
  --ink: #DDE6EC;
  --ink-strong: #EAF0F4;
  --muted: #9BADBA;
  --faint: #7A8D9B;
  --hair: #223441;
  --hair-strong: #2E4351;
  --accent: #FF5D69;
  --accent-ink: #FF7A84;
  --on-deep: #EAF0F4;
  --on-deep-muted: #8FA3B2;
  --on-deep-hair: #24363F;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
[hidden] { display: none !important; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 32px; }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); color: var(--ink);
  padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- masthead + hero band ---------- */

.band {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: var(--on-deep);
  isolation: isolate;
}
.prism {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(900px, 82%); z-index: 0; pointer-events: none;
}
.band > .shell { position: relative; z-index: 1; }

.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 26px 0;
  border-bottom: 1px solid var(--on-deep-hair);
}

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--on-deep); }
.logo .mark { display: block; height: 27px; width: auto; }
.logo .word {
  font-family: "Jost", "Futura", "Century Gothic", Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding-top: 2px;
}
.logo .word b { font-weight: 600; letter-spacing: 0.03em; }
.logo .word span { font-weight: 300; }
.logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

.lang { display: flex; align-items: center; gap: 2px; }
.lang a { color: var(--on-deep-muted); text-decoration: none; padding: 5px 9px; border-radius: 2px; }
.lang a[aria-current="true"] { color: var(--on-deep); background: rgba(255, 255, 255, 0.09); }
.lang a:hover { color: var(--on-deep); }
.lang a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang i { color: var(--on-deep-hair); font-style: normal; }

.hero { padding: 104px 0 96px; max-width: 800px; }
.hero .eyebrow { color: var(--on-deep-muted); margin: 0 0 26px; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.06; letter-spacing: -0.025em;
  font-weight: 600; margin: 0; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  margin: 30px 0 0; max-width: 54ch;
  font-size: 18px; line-height: 1.65; color: var(--on-deep-muted);
}

/* German sets longer: more line length so headings break evenly */
:root:lang(de) .hero { max-width: 920px; }
:root:lang(de) .sec-head { max-width: 700px; }

/* page band (legal pages) */
.band.slim .hero { padding: 66px 0 72px; }
.band.slim .hero h1 { font-size: clamp(30px, 4vw, 44px); }

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

section { padding: 104px 0 112px; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.sec-head .eyebrow { color: var(--accent-ink); margin: 0 0 16px; }
.sec-head h2 {
  font-size: clamp(26px, 3vw, 34px); line-height: 1.15;
  letter-spacing: -0.02em; font-weight: 600; margin: 0; text-wrap: balance;
}
.rule { height: 1px; background: var(--hair); border: 0; margin: 0; }

/* ---------- portfolio ---------- */

.ventures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.venture {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: 28px 28px 26px;
  text-decoration: none; color: inherit;
  transition: border-color 160ms ease, transform 160ms ease;
}
.venture:hover { border-color: var(--hair-strong); transform: translateY(-2px); }
.venture:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.well { height: 34px; display: flex; align-items: flex-end; margin-bottom: 22px; color: var(--ink-strong); }
.well svg { display: block; width: auto; }
.well.sm svg   { height: 27px; }
.well.sit svg  { height: 18px; margin-bottom: 3px; }
.well.nine svg { height: 24px; margin-bottom: 1px; }

.venture .kind { color: var(--faint); margin: 0 0 12px; }
.venture p { margin: 0 0 26px; color: var(--muted); font-size: 15px; line-height: 1.62; }
.venture .go {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  color: var(--accent-ink);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 12px; letter-spacing: 0.04em;
}
.venture .go svg { transition: transform 160ms ease; }
.venture:hover .go svg { transform: translateX(3px); }

/* ---------- prose (legal pages) ---------- */

.prose { max-width: 68ch; padding: 76px 0 96px; }
.prose h2 {
  font-size: 21px; font-weight: 600; letter-spacing: -0.01em;
  margin: 52px 0 14px; padding-top: 26px; border-top: 1px solid var(--hair);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 16px; font-weight: 600; margin: 26px 0 8px; }
.prose p { margin: 0 0 16px; color: var(--muted); }
.prose ul { margin: 0 0 16px; padding-left: 20px; color: var(--muted); }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid var(--hair-strong); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose .updated { color: var(--faint); margin-bottom: 40px; }

.facts { display: grid; grid-template-columns: minmax(180px, max-content) 1fr; gap: 10px 32px; margin: 0 0 8px; }
.facts dt { color: var(--faint); font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: 0.04em; padding-top: 3px; }
.facts dd { margin: 0; color: var(--ink); }

/* ---------- contact + footer ---------- */

.contact { background: var(--deep-2); color: var(--on-deep); padding: 76px 0; }
.contact-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.contact h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 0; }
.contact .eyebrow { color: var(--on-deep-muted); margin: 0; }
.contact a.mail {
  color: var(--on-deep); font-size: 19px; text-decoration: none;
  border-bottom: 1px solid var(--accent); padding-bottom: 3px;
}
.contact a.mail:hover { color: var(--accent); }

footer {
  background: var(--deep-2); color: var(--on-deep-muted);
  border-top: 1px solid var(--on-deep-hair); padding: 34px 0 40px;
}
.foot { display: flex; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; }
.foot .legal { display: flex; flex-direction: column; gap: 6px; }
.foot .links { display: flex; gap: 22px; align-items: flex-start; }
.foot a { color: var(--on-deep-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.foot a:hover { color: var(--on-deep); border-bottom-color: var(--on-deep-hair); }
.foot .tab { font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .ventures { grid-template-columns: 1fr; }
  .hero { padding: 76px 0 84px; }
  section { padding: 68px 0; }
  .prose { padding: 56px 0 72px; }
  .prism { width: 100%; opacity: 0.5; }
}
@media (max-width: 620px) {
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 14px; }
}
@media (max-width: 520px) {
  .shell { padding: 0 20px; }
  .logo .word { font-size: 20px; }
  .logo .mark { height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
