/* Start page search elements, topic pages, FAQ and press kit (final plan 09.10.2026).
   Own file on purpose: styles.css is cached for up to an hour, so new page types must not depend on new rules there. */

:root {
  --noise-brown: #8a5a3c;
  --noise-pink: #b8456f;
  --noise-green: #3f7a52;
}

html[data-theme=dark] {
  --noise-brown: #cf9f7b;
  --noise-pink: #ee98b6;
  --noise-green: #8fca9f;
}

@media (prefers-color-scheme: dark) {
  html[data-theme=system] {
    --noise-brown: #cf9f7b;
    --noise-pink: #ee98b6;
    --noise-green: #8fca9f;
  }
}

/* Start page: slogan stays the eye-catcher, the H1 carries the search terms. */
.hero-copy .slogan { max-width: 720px; margin: 0 0 22px; font-size: clamp(46px, 4.4vw, 66px); font-weight: 500; letter-spacing: -.07em; line-height: 1.02; }
.hero-copy .slogan em { display: block; color: var(--clay); font-style: normal; }
.hero-copy h1 { max-width: 640px; margin: 0 0 26px; font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -.03em; line-height: 1.22; }

@media (max-width: 560px) {
  .hero-copy > .slogan { order: 0; margin: 0; font-size: clamp(35px, 9.7vw, 43px); line-height: 1.06; }
  .hero-copy > h1 { margin: 0; font-size: 20px; line-height: 1.25; }
}

/* Topic teasers and FAQ on the start page. */
.teaser-section, .faq-section { padding: 88px 0; }
.teaser-section .section-title { margin-bottom: 30px; }
.teaser-section .section-title h2, .faq-section h2 { margin-bottom: 0; font-size: clamp(32px, 4vw, 52px); }
.teaser-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.teaser { padding: 28px; border: 1px solid color-mix(in srgb, var(--line) 52%, transparent); border-radius: 12px; background: var(--surface); }
.teaser h3 { margin: 0 0 12px; font-size: clamp(22px, 2.4vw, 28px); }
.teaser p { color: var(--muted); }
.teaser-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--ink); }

.faq-wrap > * { max-width: 860px; }
.faq-wrap h2 { margin-bottom: 24px; }
.faq-item { padding: 22px 0; border-top: 1px solid color-mix(in srgb, var(--line) 52%, transparent); }
.faq-item:last-child { border-bottom: 1px solid color-mix(in srgb, var(--line) 52%, transparent); }
.faq-item h3 { margin: 0 0 8px; font-size: clamp(19px, 2vw, 22px); line-height: 1.25; letter-spacing: -.02em; }
.faq-item p { margin: 0; max-width: 68ch; color: var(--muted); font-size: 17px; line-height: 1.6; }

/* Topic pages and the press kit. */
.topic-main { padding-bottom: 80px; }
.topic-hero { padding: 40px 0 52px; border-bottom: 1px solid var(--line); }
.topic-head > * { max-width: 860px; }
.topic-head h1 { margin: 0 0 22px; font-size: clamp(38px, 6vw, 72px); letter-spacing: -.055em; overflow-wrap: break-word; hyphens: auto; }
.topic-head .lead { max-width: 720px; }
.topic-store { margin-top: 30px; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 30px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.breadcrumb li + li::before { content: '/'; margin-right: 10px; }
.breadcrumb a { color: inherit; }
.breadcrumb [aria-current=page] { color: var(--ink); }

.topic-body { padding-top: 56px; }
.topic-section { max-width: 800px; margin-bottom: 54px; }
.topic-section h2 { margin-bottom: 18px; font-size: clamp(28px, 3.4vw, 40px); }
.topic-section p, .topic-section li { max-width: 68ch; color: var(--muted); font-size: 18px; line-height: 1.65; }
.topic-section p { margin-bottom: 14px; }
.bullet-list, .topic-steps { margin: 0 0 18px; padding-left: 1.3em; }
.bullet-list li, .topic-steps li { margin-bottom: 8px; padding-left: 4px; }
.topic-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 24px 0; }
.topic-card { padding: 22px; border: 1px solid color-mix(in srgb, var(--line) 52%, transparent); border-radius: 12px; background: var(--surface); }
.topic-card h3 { margin: 6px 0 8px; font-size: 22px; line-height: 1.15; }
.topic-card p { margin-bottom: 8px; font-size: 16px; }
.topic-section .topic-tag { display: inline-block; margin: 0 0 6px; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--moss) 16%, transparent); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.4; }
.topic-section .topic-rhythm { color: var(--ink); }
.topic-section .topic-rhythm span { color: var(--muted); }
.topic-section .topic-note { padding: 14px 18px; border-left: 3px solid var(--clay); background: color-mix(in srgb, var(--surface) 80%, transparent); }
.topic-split { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; }
.topic-shot { margin: 0; }
.topic-shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 22px; }
.topic-shot figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.4; }

.noise-figure { max-width: 620px; margin: 22px 0 28px; }
.noise-chart { display: block; width: 100%; height: auto; }
.noise-chart .axis { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.noise-chart .line { fill: none; stroke-width: 4; stroke-linecap: round; }
.noise-chart .line-0 { stroke: var(--noise-brown); }
.noise-chart .line-1 { stroke: var(--noise-pink); }
.noise-chart .line-2 { stroke: var(--noise-green); }
.noise-chart text { fill: var(--muted); font-family: inherit; font-size: 13px; }
.noise-figure figcaption { color: var(--muted); font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; padding: 0; list-style: none; }
.topic-section .legend li { margin: 0; font-size: 15px; color: var(--ink); }
.swatch { display: inline-block; width: 18px; height: 6px; margin-right: 8px; border-radius: 3px; vertical-align: middle; }
.swatch-0 { background: var(--noise-brown); }
.swatch-1 { background: var(--noise-pink); }
.swatch-2 { background: var(--noise-green); }
.topic-card .swatch { display: block; width: 36px; height: 6px; margin: 0 0 12px; }

.topic-end { padding-top: 24px; }
.topic-related { max-width: 800px; margin-top: 36px; }
.topic-related h2 { margin-bottom: 14px; font-size: 24px; }
.topic-related ul { margin: 0; padding: 0; list-style: none; }
.topic-related li { margin-bottom: 4px; }
.topic-related a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.fact-list { margin: 0; }
.fact-list > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--line) 52%, transparent); }
.fact-list > div:last-child { border-bottom: 1px solid color-mix(in srgb, var(--line) 52%, transparent); }
.fact-list dt { color: var(--ink); font-weight: 600; }
.fact-list dd { margin: 0; color: var(--muted); }
.press-icon { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.press-icon img { border-radius: 26px; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; margin: 22px 0 0; padding: 0; list-style: none; }
.shot-grid a { display: block; }
.shot-grid img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; }
.topic-section .shot-label { display: block; margin-top: 8px; font-size: 14px; }

@media (max-width: 900px) {
  .teaser-grid { grid-template-columns: minmax(0, 1fr); }
  .topic-split { grid-template-columns: minmax(0, 1fr); }
  .topic-shot { max-width: 260px; }
}

@media (max-width: 560px) {
  .teaser-section, .faq-section { padding: 64px 0; }
  .topic-hero { padding: 28px 0 40px; }
  .topic-body { padding-top: 40px; }
  .topic-section p, .topic-section li { font-size: 17px; }
  .fact-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (forced-colors: active) {
  .swatch { forced-color-adjust: none; }
}

/* 200 % text: long words and headings wrap instead of widening the page. */
.topic-main :is(h1, h2, h3, p, li, summary), .info-main :is(h1, h2, h3, p, li) { overflow-wrap: break-word; hyphens: auto; }
.topic-body, .topic-section, .info-hero, .faq-section { min-width: 0; }
