/* Fusetrail website. Brand colours and fonts from 08_branding. Fonts are self-hosted (no Google Fonts). */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0B0B0C;
  --board: #15171B;
  --board-2: #1B1E23;
  --line: #2B2F36;
  --paper: #E8E3D9;
  --paper-shade: #D3CCBF;
  --paper-ink: #1A1A1C;
  --paper-muted: #5A554D;
  --ember: #E8742A;
  --ember-light: #F6A55B;
  --ember-core: #FFF1DC;
  --ember-dark: #B9541A;
  --stamp: #A8372A;
  --cold: #7F9DBC;
  --text: #ECE8E1;
  --muted: #A3A096;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
/* soft vignette and film grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232,116,42,0.07), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, header, footer { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: var(--ember-light); text-underline-offset: 3px; }
a:hover { color: var(--ember-core); }
:focus-visible { outline: 2px solid var(--ember-light); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.kicker { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); margin: 0 0 14px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(11,11,12,0.86); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { height: 26px; width: auto; }
.wordmark { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; letter-spacing: 0.17em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; }
.nav a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; padding: 12px 18px; border-radius: 2px; border: 1px solid var(--ember);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-solid { background: var(--ember); color: var(--ink); }
.btn-solid:hover { background: var(--ember-light); border-color: var(--ember-light); color: var(--ink); }
.btn-line { color: var(--ember-light); background: transparent; }
.btn-line:hover { background: rgba(232,116,42,0.12); color: var(--ember-core); }
.nav .btn { color: var(--ink); padding: 9px 14px; font-size: 0.72rem; }
.nav .btn:hover { color: var(--ink); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* Hero */
.hero { padding: 104px 0 72px; }
.hero h1 { font-weight: 500; font-size: clamp(2.6rem, 7.2vw, 5.4rem); line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 28px; max-width: 14ch; }
.hero h1 em { color: var(--ember); font-weight: 400; }
.hero .lede { font-size: clamp(1.08rem, 2vw, 1.3rem); color: #CFCBC3; max-width: 36rem; margin: 0 0 36px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }

.fuse { position: relative; height: 2px; margin: 72px 0 0; background: linear-gradient(90deg, var(--ember-dark), rgba(232,116,42,0.25) 70%, transparent); }
.fuse::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--ember-core); box-shadow: 0 0 10px 3px var(--ember), 0 0 26px 8px rgba(232,116,42,0.45);
  animation: burn 7s cubic-bezier(.45,.05,.55,.95) infinite;
}
@keyframes burn { 0% { left: 0; opacity: 0; } 6% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }


/* Hero art: brand fuse trail with spark (desktop). Phones get the simple line. */
.hero .wrap { position: relative; }
.hero .wrap > :not(.hero-art) { position: relative; z-index: 1; }
.hero-art { display: none; }
@media (min-width: 901px) {
  .hero { padding-bottom: 40px; }
  .hero .wrap { padding-bottom: 120px; }
  .hero .fuse { display: none; }
  .hero-art { display: block; position: absolute; z-index: 0; left: 24px; right: 24px; top: 0; bottom: 0; width: calc(100% - 48px); height: 100%; pointer-events: none; overflow: visible; }
}
.hero-art .marks circle { fill: #C4473A; }
.hero-art .ticks text { fill: #8D8A82; font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; text-anchor: middle; }
.hero-art .runner { fill: #FFF1DC; filter: drop-shadow(0 0 6px #E8742A) drop-shadow(0 0 14px #E8742A); }
.hero-art .rays line { stroke: #F6A55B; stroke-width: 3.5; stroke-linecap: round; }
.hero-art .glow { transform-box: fill-box; transform-origin: center; animation: flicker 3.2s ease-in-out infinite; }
.hero-art .rays { transform-box: fill-box; transform-origin: center; animation: spin 24s linear infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; transform: scale(1); } 30% { opacity: 0.78; transform: scale(0.94); } 55% { opacity: 0.95; transform: scale(1.04); } 75% { opacity: 0.82; transform: scale(0.97); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sprungziele nicht unter der festen Kopfleiste verstecken */
[id] { scroll-margin-top: 88px; }

/* Sections */
section { padding: 72px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; margin: 0; }
.section-head .note { color: var(--muted); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.band { background: var(--board); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Case file (paper folder) */
.folder { position: relative; margin-top: 30px; }
.folder-tab {
  position: absolute; top: -30px; left: 0; height: 30px; padding: 0 18px; display: flex; align-items: center;
  background: var(--paper-shade); color: var(--paper-ink); border-radius: 4px 4px 0 0;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.paper {
  position: relative; background: var(--paper); color: var(--paper-ink); border-radius: 0 4px 4px 4px;
  padding: clamp(20px, 4vw, 40px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7), 0 2px 0 var(--paper-shade) inset;
}
.paper a { color: var(--ember-dark); }
.paper a:hover { color: var(--stamp); }
.stamp {
  position: absolute; top: 22px; right: 26px; transform: rotate(-7deg);
  font-family: var(--cond); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--stamp); border: 3px solid var(--stamp); padding: 0 12px; border-radius: 3px; opacity: 0.85;
  mix-blend-mode: multiply;
}
.file-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3.5vw, 40px); align-items: start; }
.thumb { position: relative; display: block; border-radius: 3px; overflow: hidden; background: #000; box-shadow: 0 10px 24px -10px rgba(0,0,0,0.6); }
.thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s ease; }
.thumb:hover img { transform: scale(1.025); }
.thumb .play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  background: rgba(11,11,12,0.72); border: 2px solid var(--ember-core); display: grid; place-items: center;
  transition: background 0.15s;
}
.thumb:hover .play { background: var(--ember); }
.thumb .play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--ember-core); }
.thumb .runtime { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,0.82); color: #fff; font-family: var(--mono); font-size: 0.74rem; padding: 2px 6px; border-radius: 2px; }
.file-meta { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-muted); margin: 0 0 10px; padding-right: 110px; }
.file-title { font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; margin: 0 0 14px; }
.file-sum { margin: 0 0 22px; color: #2C2A27; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid #B9B1A3; border-bottom: 1px solid #B9B1A3; margin: 0 0 22px; }
.figures div { padding: 12px 10px 12px 0; }
.figures div + div { padding-left: 12px; border-left: 1px solid #C9C1B3; }
.figures b { display: block; font-family: var(--cond); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1; color: var(--paper-ink); }
.figures span { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-muted); margin-top: 6px; line-height: 1.35; }
.figures i { font-style: normal; color: var(--stamp); }
.paper .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.paper .btn-solid { color: var(--ink); }
.paper .btn-line { color: var(--ember-dark); border-color: var(--ember-dark); }
.paper .btn-line:hover { background: rgba(185,84,26,0.1); color: var(--stamp); }
.chapters { margin: 30px 0 0; padding: 22px 0 0; border-top: 1px dashed #B9B1A3; }
.chapters h3 { font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-muted); margin: 0 0 12px; }
.chapters ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.chapters li { break-inside: avoid; display: flex; gap: 14px; padding: 4px 0; font-size: 1rem; }
.chapters li a { display: flex; gap: 14px; color: inherit; text-decoration: none; }
.chapters li a:hover { color: var(--stamp); }
.chapters time { font-family: var(--mono); font-size: 0.82rem; color: var(--ember-dark); min-width: 3.4em; padding-top: 2px; }

/* Next file teaser */
.next {
  margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px dashed #3A3F47; border-radius: 4px; padding: 22px 26px; background: rgba(21,23,27,0.6);
}
.next .label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.redact { display: inline-block; height: 0.95em; background: #2A2D33; vertical-align: -0.1em; border-radius: 1px; }
.next h3 { font-weight: 500; font-size: 1.4rem; margin: 0; }
.next { border-color: rgba(232,116,42,0.45); background: linear-gradient(110deg, rgba(232,116,42,0.08), rgba(21,23,27,0.6) 55%); }
.next-main { flex: 1 1 380px; min-width: 0; }
.next-copy { margin: 12px 0 0; color: #CFCBC3; font-size: 1rem; max-width: 34rem; }
.next-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.next-buy .price { font-family: var(--cond); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--ember-core); }
.next-buy small { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Status board */
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.col { background: var(--board-2); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 3px; padding: 22px 22px 8px; }
.col.confirmed { --c: var(--ember-light); }
.col.reported { --c: var(--cold); }
.col.unknown { --c: var(--stamp); }
.chip { display: inline-block; font-family: var(--cond); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c); margin-bottom: 4px; }
.col .def { font-size: 0.92rem; color: var(--muted); margin: 0 0 14px; line-height: 1.45; }
.col ul { list-style: none; margin: 0; padding: 0; }
.col li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.5; }
.col li small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* Case log (timeline) */
.log { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; max-width: 820px; }
.log::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--ember), var(--ember-dark) 40%, var(--line)); }
.log li { position: relative; padding: 0 0 30px; }
.log li::before { content: ""; position: absolute; left: -28px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 2px solid var(--ember); }
.log li:first-child::before { background: var(--ember-core); border-color: var(--ember); box-shadow: 0 0 10px 2px rgba(232,116,42,0.7); }
.log .when { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tag { display: inline-block; margin-left: 10px; text-transform: uppercase; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; padding: 1px 6px; border: 1px solid var(--line); border-radius: 2px; color: var(--ember-light); vertical-align: 1px; }
.log p { margin: 4px 0 0; }

/* Method */
.method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: m; }
.method div { border-top: 1px solid var(--line); padding-top: 18px; }
.method div::before { counter-increment: m; content: "0" counter(m); display: block; font-family: var(--cond); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--ember); margin-bottom: 12px; }
.method h3 { font-weight: 500; font-size: 1.2rem; margin: 0 0 8px; }
.method p { margin: 0; color: #C7C3BB; font-size: 0.98rem; }

/* Sources */
details.sources { border: 1px solid var(--line); border-radius: 3px; background: var(--board-2); }
details.sources summary { cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); display: flex; justify-content: space-between; gap: 12px; }
details.sources summary::-webkit-details-marker { display: none; }
details.sources summary::after { content: "+"; color: var(--ember); font-size: 1.1rem; line-height: 1; }
details.sources[open] summary::after { content: "\2212"; }
details.sources ol { margin: 0; padding: 4px 22px 22px 52px; columns: 2; column-gap: 40px; }
details.sources li { break-inside: avoid; padding: 5px 0; font-size: 0.95rem; color: #C7C3BB; overflow-wrap: anywhere; }
.fineprint { color: var(--muted); font-size: 0.92rem; margin: 18px 0 0; max-width: 60rem; }

/* Subscribe band */
.cta { text-align: center; padding: 88px 0; }
.cta h2 { font-weight: 500; font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.1; margin: 0 0 14px; }
.cta p { color: var(--muted); margin: 0 0 30px; }

.cta .kicker { color: var(--ember); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-weight: 500; font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 32px; }
.legal h2 { font-weight: 500; font-size: 1.35rem; margin: 40px 0 10px; }
.legal p, .legal li { color: #D5D1C9; }
.legal .kicker { color: var(--ember); }
.fill { background: rgba(232,116,42,0.16); color: var(--ember-core); padding: 0 4px; border-radius: 2px; font-family: var(--mono); font-size: 0.9em; }

/* Responsive */
@media (max-width: 900px) {
  .status-grid { grid-template-columns: 1fr; }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .file-grid { grid-template-columns: 1fr; }
  .file-meta { padding-right: 0; margin-top: 4px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .nav a:not(.btn) { display: none; }
  .wordmark { font-size: 0.9rem; letter-spacing: 0.14em; }
  .hero { padding: 64px 0 52px; }
  .fuse { margin-top: 52px; }
  section { padding: 56px 0; }
  .stamp { top: auto; bottom: 16px; right: 14px; font-size: 1.15rem; }
  .figures { grid-template-columns: 1fr; }
  .figures div, .figures div + div { padding: 10px 0; border-left: 0; }
  .figures div + div { border-top: 1px solid #C9C1B3; }
  .chapters ol, details.sources ol { columns: 1; }
  details.sources ol { padding-left: 40px; }
  .method { grid-template-columns: 1fr; }
  .next-buy { align-items: flex-start; width: 100%; }
  .next-buy .btn { width: 100%; justify-content: center; }
  .chapters { padding-bottom: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fuse::after { animation: none; left: 100%; opacity: 0.9; }
  .thumb img { transition: none; }
  .hero-art .runner { display: none; }
  .hero-art .glow, .hero-art .rays { animation: none; }
}
