/* Psst website. Direction "Late night" (Chris, 19.10.2026): for people who talk to
   their Mac at night with music on. Dry, calm, a little cheeky. One typeface, one colour.
   Not a neon developer tool, not a wellness app, not an audio company with waves.
   Dark by brand decision, single theme. slop-ok: dunkel-nach-branche Entscheidung Chris 19.10.2026 */

@font-face {
  font-family: "Red Hat Display";
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/RedHatDisplay-Variable.woff2") format("woff2");
}

:root {
  --ink: #101318;
  --ink-2: #171B22;
  --ink-3: #22272F;
  --paper: #EEF0F3;
  --mist: #A4ABB5;
  --sun: #F2B544;
  --sun-deep: #E9A832;
  --line: rgba(238, 240, 243, .12);
  --focus: #FFFFFF;
  --font: "Red Hat Display", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --measure: 62ch;
  --radius: 8px;
  --radius-lg: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 1.2rem;
  line-height: 1.55;
  font-weight: 400;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0;
}
::selection { background: var(--sun); color: var(--ink); }

.wrap { max-width: 68rem; margin: 0 auto; }

h1, h2, h3 { font-family: var(--font); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; margin-block: 1.6rem .4rem; }
p { max-width: var(--measure); margin-block: 0 1rem; }
.lead { font-size: 1.35rem; color: var(--mist); }
small, .small { font-size: 1rem; color: var(--mist); }
a { color: var(--sun); text-decoration-thickness: .06em; text-underline-offset: .18em; }
a:hover { color: var(--paper); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--ink-3); padding: .1em .35em; border-radius: 4px; }
pre { margin-block: 1.2rem; padding: 1rem 1.2rem; background: var(--ink-2); border-radius: var(--radius); overflow-x: auto; max-width: 100%; font-size: .95rem; line-height: 1.6; }
pre code { background: none; padding: 0; font-size: inherit; white-space: pre; }
ul, ol { padding-left: 1.3em; max-width: var(--measure); }
li { margin-block: .35rem; }
strong { font-weight: 700; }
svg[hidden] { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Motifs: blinking cursor, speaking bars */
.cursor::after {
  content: ""; display: inline-block; width: .07em; height: .95em; margin-left: .08em;
  background: var(--sun); vertical-align: -.1em; animation: blink 1.1s steps(1) infinite;
}
.bars { display: inline-flex; align-items: center; gap: .14em; height: 1em; vertical-align: -.12em; }
.bars i { display: block; width: .14em; height: 1em; border-radius: .1em; background: var(--sun); transform-origin: center; transform: scaleY(.45); }
.bars.live i { animation: talk 1.05s ease-in-out infinite; }
.bars.live i:nth-child(1) { animation-duration: .95s; }
.bars.live i:nth-child(2) { animation-delay: .18s; transform: scaleY(1); }
.bars.live i:nth-child(3) { animation-delay: .36s; animation-duration: 1.15s; transform: scaleY(.65); }
.bars i:nth-child(2) { transform: scaleY(1); }
.bars i:nth-child(3) { transform: scaleY(.65); }
.bars.ink i { background: var(--ink); }
/* slop-ok: pulsierender-punkt Cursor und Sprech-Balken sind Markenmotive, Chris 19.10.2026 */
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes talk { 0%, 100% { transform: scaleY(.35); } 40% { transform: scaleY(1); } 70% { transform: scaleY(.6); } }
@media (prefers-reduced-motion: reduce) {
  .cursor::after, .bars.live i { animation: none; }
}

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; color: var(--paper); text-decoration: none; }
.brand img { width: 2.4rem; height: auto; }
.top nav { display: flex; gap: 1.4rem; font-size: 1.05rem; flex-wrap: wrap; }
.top nav a { color: var(--mist); text-decoration: none; }
.top nav a:hover { color: var(--paper); text-decoration: underline; }

/* Hero */
.hero { display: grid; gap: 2.5rem 4rem; grid-template-columns: 1fr; padding-block: 3rem 4rem; align-items: center; }
@media (min-width: 60rem) { .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); padding-block: 4rem 6rem; } }
.hero > * { min-width: 0; }
.hero .lead { margin-top: 1.4rem; max-width: 40ch; }
.actions { display: grid; gap: .8rem; justify-items: start; margin-top: 2rem; }

/* Call to action: never wraps (house rule). No flex container with text as child. */
.cta {
  display: inline-block; white-space: nowrap; background: var(--sun); color: var(--ink);
  font-weight: 700; font-size: 1.2rem; line-height: 1.2; padding: .9em 1.5em; border-radius: var(--radius);
  text-decoration: none; border: 0; cursor: pointer; font-family: var(--font);
}
.cta:hover { background: var(--sun-deep); color: var(--ink); }
.cta:active { transform: translateY(1px); }
.ghost {
  display: inline-block; white-space: nowrap; background: transparent; color: var(--paper);
  font-weight: 600; font-size: 1.05rem; line-height: 1.2; padding: .7em 1.1em; border-radius: var(--radius);
  border: 1px solid var(--line); cursor: pointer; font-family: var(--font);
}
.ghost:hover { border-color: var(--mist); }
.ghost[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* The demo: a desk with three apps and a menu bar */
.demo { background: var(--ink-2); border-radius: var(--radius-lg); padding: 1.25rem; display: grid; gap: 1rem; }
.demo .menubar { display: flex; align-items: center; gap: .9rem; height: 2.3rem; padding-inline: .9rem; font-size: .9rem; border-radius: 6px; background: #2b2d33; color: #f3f3f5; }
.demo .menubar .fake { opacity: .5; }
.demo .menubar svg { width: 20px; height: 20px; flex: none; }
.demo .menubar .clock { margin-left: auto; font-variant-numeric: tabular-nums; }
.apps { display: grid; gap: .6rem; }
.app { display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: .9rem; padding: .75rem .9rem; border-radius: var(--radius); background: var(--ink-3); transition: opacity .35s; }
.app .tile { width: 2.4rem; height: 2.4rem; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 1rem; color: var(--ink); }
.app .name { font-weight: 600; line-height: 1.2; min-width: 0; }
.app .name small { display: block; font-size: .9rem; }
.app .state { font-size: .95rem; color: var(--mist); white-space: nowrap; font-variant-numeric: tabular-nums; }
.app .sound { display: inline-flex; gap: 2px; align-items: flex-end; height: 1rem; vertical-align: middle; margin-right: .4rem; }
.app .sound i { display: block; width: 3px; border-radius: 1px; background: var(--mist); height: 40%; }
.app .sound i:nth-child(2) { height: 100%; } .app .sound i:nth-child(3) { height: 70%; } .app .sound i:nth-child(4) { height: 55%; }
.demo.live .app.muted { opacity: .38; }
.demo.live .app.muted .sound i { height: 15%; }
.demo .mic { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .4rem; }
.demo .pill { display: inline-flex; align-items: center; gap: .5rem; padding: .4em .9em; border-radius: 999px; background: var(--ink-3); color: var(--mist); font-weight: 500; font-size: 1rem; }
.demo.live .pill { color: var(--paper); }
.demo .pill .bars { font-size: 1.2rem; }

/* Sections */
section { padding-block: 3.5rem; border-top: 1px solid var(--line); }
section h2 { margin-bottom: 1.4rem; }
.cols { display: grid; gap: 2rem 4rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cols.wide-left { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.cols > * { min-width: 0; }

.steps { list-style: none; padding: 0; margin: 0; max-width: 40rem; counter-reset: step; display: grid; gap: 1.2rem; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: baseline; margin: 0; }
.steps li::before { counter-increment: step; content: counter(step); font-weight: 800; font-size: 1.8rem; color: var(--sun); line-height: 1; /* slop-ok: enger-zeilenabstand Zähler, kein Fließtext */ font-variant-numeric: tabular-nums; }
.steps b { display: block; font-weight: 700; font-size: 1.25rem; margin-bottom: .2rem; }
.steps p { margin: 0; color: var(--mist); font-size: 1.1rem; }

.marks { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 1rem; margin-block: 1rem 0; max-width: 40rem; }
.marks figure { margin: 0; display: grid; gap: .5rem; justify-items: start; }
.marks .chip { width: 4.4rem; height: 4.4rem; padding: .6rem; border-radius: 10px; background: #ECEDF0; color: #1d1f24; }
.marks .chip svg { width: 100%; height: 100%; }
.marks figcaption { font-size: 1rem; color: var(--mist); }

.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; max-width: 40rem; }
.plain li { padding-left: 1.5rem; position: relative; margin: 0; }
.plain li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7rem; height: .18rem; background: var(--sun); border-radius: 1px; }

details { border-top: 1px solid var(--line); max-width: 44rem; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding-block: 1rem; font-weight: 700; font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; color: var(--sun); font-size: 1.5rem; line-height: 1; flex: none; }
details[open] summary::after { content: "–"; }
details p { color: var(--mist); font-size: 1.1rem; }
details p:last-child { padding-bottom: 1.2rem; }

.download { background: var(--ink-2); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1rem; justify-items: start; }
.download h2 { margin: 0; }
.meta { font-size: 1rem; color: var(--mist); font-variant-numeric: tabular-nums; }

footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3.5rem; font-size: 1rem; color: var(--mist); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
footer a { color: var(--mist); }
footer a:hover { color: var(--paper); }
footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* Text pages */
.page { padding-block: 2rem 4rem; }
.page h1 { font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.4rem); margin-bottom: 1.2rem; }
.page h2 { font-size: 1.5rem; margin-block: 2.2rem .6rem; }
.todo { background: var(--ink-2); border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--sun); font-weight: 600; max-width: var(--measure); }

/* Guide pages: one reading column, tables that scroll inside their own box */
.article { max-width: 46rem; padding-block: 2rem 4rem; }
.article h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); margin-bottom: 1.2rem; }
.article h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-block: 2.8rem .8rem; padding-top: 0; border: 0; }
.article .lead { margin-bottom: 1.6rem; }
.article .answer { background: var(--ink-2); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-block: 1.4rem 2rem; }
.article .answer p { margin: 0; }
.article .dated { font-size: 1rem; color: var(--mist); }
.crumbs { font-size: 1rem; color: var(--mist); padding-top: .5rem; }
.crumbs a { color: var(--mist); }
.table-wrap { overflow-x: auto; margin-block: 1.2rem 1.6rem; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
th { color: var(--mist); font-weight: 700; }
tr.us td { background: var(--ink-2); }
tr.us td:first-child { font-weight: 700; }
.next { display: grid; gap: .8rem; justify-items: start; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
