/* Tembira "Lamplight" — source of truth: tembira-app/design/BRAND.md */
:root {
  --ground: #16140F;
  --surface: #211E18;
  --raised: #2B2720;
  --hairline: #3A352C;
  --outline: #4E473B;
  --scrim: rgba(10, 9, 6, .55);

  --ink: #F3EEE4;
  --ink-soft: #C9C1B3;
  --ink-muted: #A39B8C;
  --accent: #E7B35C;
  --accent-hover: #F2C878; /* web only: link and button hover */

  --depth-kindling: #E7B35C;
  --depth-leaning-in: #D98C74;
  --depth-unguarded: #8FA6D6;

  --tone-error: #EF6F5E;
  --tone-done: #9CCBA6;
  --tone-attention: #E7B35C;
  --tone-neutral: #A39B8C;

  --font-display: 'Newsreader', Georgia, serif;
  --font-ui: 'Hanken Grotesk', system-ui, sans-serif;

  --radius-control: 14px;
  --radius-option: 16px;
  --radius-card: 20px;
  --radius-sheet: 28px;
}

/* Subset WOFF2 with a content hash in the name: rebuild with scripts/subset-fonts.sh. */
@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-regular.60c61ff5.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-medium.69cbe65b.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/newsreader-italic.7440d3e3.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/hankengrotesk-regular.68553431.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/hankengrotesk-medium.d47e98e6.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/hankengrotesk-semibold.08c154a2.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/fonts/hankengrotesk-bold.20425abc.woff2') format('woff2'); font-weight: 700; font-display: swap; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* --- Header and footer --------------------------------------------------- */

.site-header { padding: 24px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header img { display: block; height: 36px; width: auto; }
/* Language switcher: the same page in the other language (decisions/2026_10_05-19_45-czech_site_under_cs_and_en.md). */
.lang { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--hairline); border-radius: var(--radius-control); }
.lang a { display: block; padding: 7px 11px; border-radius: 11px; font-size: 13px; font-weight: 600; letter-spacing: .08em; line-height: 1; color: var(--ink-soft); text-decoration: none; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--raised); color: var(--ink); }

.site-footer { border-top: 1px solid var(--hairline); margin-top: 96px; padding: 32px 0 48px; font-size: 14px; color: var(--ink-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .credit { flex-basis: 100%; margin: 0; font-size: 12px; line-height: 1.5; }

/* --- Type ---------------------------------------------------------------- */

.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-muted); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.1; }
h2 { font-size: 34px; line-height: 1.15; }
h3 { font-size: 23px; line-height: 1.32; font-weight: 400; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 44ch; margin: 20px 0 0; }
.soft { color: var(--ink-soft); }
.muted { color: var(--ink-muted); font-size: 14px; }

/* --- Home ---------------------------------------------------------------- */

.hero { padding: 56px 0 72px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-muted); }
.proof li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }

/* Official store badges (public/brand/stores/), never redrawn or recoloured. */
.stores { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin-top: 32px; }
.store-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.store-badge img { display: block; height: 40px; width: auto; }

.section { padding: 48px 0; border-top: 1px solid var(--hairline); }

/* App screens (public/screens/<lang>/, from tembira-app's store captures). The
   captures carry the app's own ground colour, so a hairline frames them. */
.screen { display: block; width: 100%; height: auto; border: 1px solid var(--hairline); border-radius: 28px; background: var(--surface); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: center; }
.hero-shot, .side-shot { margin: 0; }
.depths-row { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; align-items: start; margin-top: 32px; }
.depths-row .depths { margin-top: 0; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: 20px; }
@media (max-width: 760px) {
  .hero-grid, .depths-row { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot, .side-shot { width: min(64vw, 260px); justify-self: center; }
  /* A row that scrolls sideways inside itself, so the page never does. */
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62vw; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 0 24px 8px; }
  .shots .screen { scroll-snap-align: center; }
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 24px; }
.card p { margin: 12px 0 0; color: var(--ink-soft); font-size: 15px; }

.depths { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.depths li { display: flex; gap: 16px; align-items: baseline; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-option); padding: 20px 24px; }
.depths .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-2px); }
.depths strong { font-family: var(--font-display); font-weight: 400; font-size: 20px; }
.depths span.soft { display: block; font-size: 15px; margin-top: 4px; }
.closing { font-family: var(--font-display); font-size: clamp(24px, 4vw, 30px); line-height: 1.3; margin: 0; max-width: 28ch; text-wrap: balance; }

/* --- FAQ (details/summary, no JavaScript) -------------------------------- */

.faq { display: grid; gap: 10px; margin-top: 32px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-option); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-family: var(--font-display); font-size: 20px; line-height: 1.3; border-radius: var(--radius-option); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; content: "+" / ""; position: absolute; top: 16px; right: 22px; font-family: var(--font-ui); font-size: 24px; line-height: 1; color: var(--accent); transition: transform .18s ease; }
.faq summary:hover::after { color: var(--accent-hover); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; }
.faq .answer p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.faq .answer p + p { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* --- Prose pages (legal, 404) -------------------------------------------- */

.prose { max-width: 680px; padding: 40px 0 0; }
.prose h1 { font-size: 34px; line-height: 1.15; }
.prose h2 { font-size: 26px; line-height: 1.2; font-weight: 400; margin: 40px 0 0; }
.prose p, .prose li { color: var(--ink-soft); }
.notice { margin-top: 24px; background: var(--raised); border: 1px solid rgba(231, 179, 92, .45); border-radius: var(--radius-option); padding: 16px 20px; color: var(--ink); }

/* --- Legal pages --------------------------------------------------------- */

.legal .eyebrow { margin-bottom: 16px; }
.legal h1 { font-size: clamp(34px, 6vw, 48px); }
.legal .muted { margin: 12px 0 0; }
.legal .lede { max-width: none; }
.legal h2 { scroll-margin-top: 24px; }
.legal h3 { font-size: 20px; line-height: 1.3; margin: 28px 0 0; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 10px; }
.legal li::marker { color: var(--ink-muted); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal code { font-size: 14px; background: var(--raised); border-radius: 6px; padding: 1px 6px; }

.toc { margin-top: 32px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); padding: 20px 24px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 32px; font-size: 15px; }
.toc li { break-inside: avoid; }
.legal .toc li + li { margin-top: 6px; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent-hover); }

/* --- About us (home, #about) -------------------------------------------- */

.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; align-items: center; }
.about p { margin: 16px 0 0; color: var(--ink-soft); max-width: 60ch; line-height: 1.55; }
.about-side { display: grid; gap: 12px; }
/* The photo of Terka and Lukáš, from roadtorespekt-content (kurz-pro-muze/img/terka-lukas.webp). */
.about .photo { display: block; width: 100%; height: auto; border-radius: var(--radius-card); }
.link-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-card); color: var(--ink); text-decoration: none; }
.link-card:hover { border-color: var(--outline); color: var(--ink); }
.link-card strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.link-card .soft { display: block; margin-top: 4px; font-size: 14px; }
.link-card .arrow { flex: none; color: var(--accent); font-size: 20px; }
.link-card:hover .arrow { color: var(--accent-hover); }
