/* Tapelark — the tapelark.com theme, from the Claude Design project "Tapelark Website"
   and its brand kit: label cream paper, deck black, tape teal, leader orange, record red.
   Archivo (expanded for headlines and the wordmark) and IBM Plex Mono (labels, counters,
   paths) are served from /assets/fonts — no third-party requests. All design decisions
   live in the tokens below; restyle by editing tokens, never selectors (cms-spec.md §10.1). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-variable.woff2") format("woff2");
}
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-600.woff2") format("woff2"); }

:root {
  /* Type */
  --font-sans: "Archivo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --stretch-wordmark: 125%;
  --stretch-display: 115%;
  --stretch-heading: 112%;
  --text-hero: clamp(44px, 6.4vw, 84px);
  --text-h2: clamp(32px, 4vw, 52px);
  --text-h1: clamp(36px, 5vw, 64px);
  --text-lede: clamp(18px, 1.6vw, 21px);
  --text-body: 18px;
  --text-m: 16px;
  --text-s: 15px;
  --text-label: 13px;
  --tracking-label: 0.12em;
  --tracking-display: -0.035em;
  --tracking-heading: -0.03em;

  /* Colour — the brand kit */
  --paper: #F4EEE2;        /* Label Cream: backgrounds */
  --paper-raised: #F8F4EC; /* chips, the trial card */
  --paper-deep: #E9E1D0;
  --card: #FFFFFF;
  --ink: #1B1A17;          /* text, the dark buttons */
  --deck: #221F1B;         /* Deck Black: dark panels */
  --text-2: #3A362F;       /* ledes and body copy */
  --muted: #5A544B;        /* labels, notes */
  --on-dark: #F4EEE2;
  --on-dark-2: #C9C0B0;
  --on-dark-3: #8F877A;
  --teal: #1F7582;         /* Tape Teal: accent, links, eyebrows */
  --teal-strong: #15545D;
  --teal-tint: rgba(31, 117, 130, 0.1);
  --on-teal-2: #E3EEEE;
  --orange: #E8743B;       /* Leader Orange: stripes and the beak, never text */
  --record: #D70015;       /* Record Red: recording only */
  --record-dot: #FF453A;
  --record-text: #FF8A80;  /* record red as text on dark panels */
  --success: #17702F;
  --line: rgba(27, 26, 23, 0.1);
  --line-strong: rgba(27, 26, 23, 0.16);
  --nav-bg: rgba(244, 238, 226, 0.92);
  --shadow-lift: 0 30px 60px rgba(40, 30, 15, 0.25);
  --shadow-card: 0 0 0 1px var(--line);

  /* Layout */
  --page-width: 1160px;
  --measure: 44em;
  --gutter: 24px;
  --section-gap: clamp(72px, 10vw, 120px);
  --radius-s: 6px;
  --radius: 12px;
  --radius-l: 16px;
  --radius-xl: 22px;
}

/* Base ------------------------------------------------------------------------ */

* { box-sizing: border-box; }
html { color-scheme: light; scroll-padding-top: 80px; overflow-x: clip; }
/* Long words (German compounds) never widen the page: headings break at syllables, text wraps. */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.prose, .lede, .hero-tagline, .feature-body > p, .section-head p { overflow-wrap: break-word; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-m);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-strong); text-decoration: underline; text-underline-offset: 0.15em; }
::selection { background: rgba(31, 117, 130, 0.22); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 8px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; }
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--page-width); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--teal);
}
.mono { font-family: var(--font-mono); }

/* Buttons: pills with a record dot -------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 24px;
  border-radius: 27px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}
.pill:hover { color: var(--paper); background: #000; text-decoration: none; }
.pill .rec { width: 12px; height: 12px; border-radius: 50%; background: var(--record-dot); box-shadow: 0 0 0 4px rgba(255, 69, 58, 0.25); flex: none; }
.pill-light { background: var(--paper); color: var(--ink); }
.pill-light:hover { background: #fff; color: var(--ink); }
.pill-light .rec { background: var(--record); box-shadow: none; }
.pill-small { height: 38px; padding: 0 16px; border-radius: 19px; font-size: 14px; font-weight: 600; gap: 8px; }
.pill-small .rec { width: 8px; height: 8px; box-shadow: none; }

/* Navigation -------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.wordmark:hover { color: var(--ink); text-decoration: none; }
.wordmark img { width: 30px; height: 30px; }
.wordmark span { font-stretch: var(--stretch-wordmark); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.site-nav .nav-desktop { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 24px; flex-wrap: wrap; font-weight: 500; font-size: var(--text-s); }
.site-nav ul a { color: var(--ink); }
.site-nav ul a[aria-current="page"] { color: var(--teal); }

/* Hero ---------------------------------------------------------------------------- */

.hero {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 {
  margin: 0;
  font-stretch: var(--stretch-display);
  font-weight: 800;
  font-size: var(--text-hero);
  line-height: 0.96;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
.hero-tagline { margin: 0; font-size: var(--text-lede); line-height: 1.5; color: var(--text-2); max-width: 34em; text-wrap: pretty; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-notes { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-mono); font-size: var(--text-label); color: var(--text-2); }
.hero-art { display: flex; justify-content: center; }
.hero-art > img { border-radius: var(--radius-l); box-shadow: var(--shadow-card); }

/* The cassette: pure CSS, reels turn unless reduced motion is asked for. */
.cassette {
  width: min(100%, 520px);
  aspect-ratio: 1.6;
  border-radius: var(--radius-xl);
  background: var(--deck);
  position: relative;
  box-shadow: var(--shadow-lift);
  transform: rotate(-3deg);
}
.cassette-label { position: absolute; inset: 6%; border-radius: var(--radius); background: #F7F2E7; color: var(--ink); overflow: hidden; }
.cassette-head { height: 18%; display: flex; align-items: center; gap: 12px; padding: 0 5%; }
.cassette-head b { font-stretch: var(--stretch-wordmark); font-weight: 800; font-size: clamp(14px, 2vw, 20px); }
.cassette-head i { flex: 1; height: 1px; background: rgba(27, 26, 23, 0.3); }
.cassette-head span { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: var(--tracking-label); }
.cassette-stripe-1 { height: 5%; background: var(--orange); }
.cassette-stripe-2 { height: 3%; background: var(--teal); }
.cassette-lines { padding: 3% 5% 0; font-family: var(--font-mono); font-size: clamp(10px, 1.3vw, 13px); color: var(--text-2); display: flex; justify-content: space-between; }
.cassette-window { position: absolute; left: 16%; right: 16%; bottom: 10%; height: 38%; border-radius: 999px; background: #2B2621; display: flex; align-items: center; justify-content: space-around; }
.reel { width: 24%; aspect-ratio: 1; border-radius: 50%; background: #5A3F2B; display: flex; align-items: center; justify-content: center; }
.reel-hub { width: 50%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); position: relative; }
.reel-hub i { position: absolute; left: 44%; top: 4%; width: 12%; height: 22%; background: #2B2621; border-radius: 2px; transform-origin: 50% 209%; }
.reel-hub i:nth-child(2) { transform: rotate(60deg); }
.reel-hub i:nth-child(3) { transform: rotate(120deg); }
.reel-hub i:nth-child(4) { transform: rotate(180deg); }
.reel-hub i:nth-child(5) { transform: rotate(240deg); }
.reel-hub i:nth-child(6) { transform: rotate(300deg); }
.reel-hub b { position: absolute; left: 33%; top: 33%; width: 34%; height: 34%; border-radius: 50%; background: #2B2621; }
@keyframes tlspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .reel-hub { animation: tlspin 2.4s linear infinite; }
  .reel + .reel .reel-hub { animation-duration: 3s; }
}

/* Sources strip ------------------------------------------------------------------- */

.sources { padding-top: 16px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sources-label { font-family: var(--font-mono); font-size: var(--text-label); color: var(--muted); margin-right: 6px; }
.sources ul { list-style: none; margin: 0; padding: 0; display: contents; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 19px;
  border: 1px solid rgba(27, 26, 23, 0.2);
  background: var(--paper-raised);
  font-weight: 500;
  font-size: var(--text-s);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }
.chip:nth-child(6n+1)::before { background: var(--orange); }
.chip:nth-child(6n+2)::before { background: var(--teal); }
.chip:nth-child(6n+3)::before { background: #9A6E00; }
.chip:nth-child(6n+4)::before { background: #4B4B52; }
.chip:nth-child(6n+5)::before { background: #B3261E; }
.chip:nth-child(6n+6)::before { background: #2F6FB5; }

.sources + .features { padding-top: clamp(24px, 4vw, 48px); }
.screenshot img { display: block; width: 100%; border-radius: var(--radius-l); box-shadow: var(--shadow-card), 0 40px 80px rgba(40, 30, 15, 0.18); }

/* Features: text and a visual side by side, alternating ----------------------------- */

.features { padding-top: clamp(72px, 10vw, 128px); padding-bottom: 24px; display: flex; flex-direction: column; gap: clamp(64px, 8vw, 104px); }
.feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 16px; align-items: center; }
.feature-body { display: contents; }
.feature > *, .feature-body > * { grid-column: 1; margin: 0; }
.feature .feature-visual { grid-column: 2; grid-row: 1 / span 8; }
.feature:nth-of-type(even) > *, .feature:nth-of-type(even) .feature-body > * { grid-column: 2; }
.feature:nth-of-type(even) .feature-visual { grid-column: 1; }
.feature h2 { font-stretch: var(--stretch-heading); font-weight: 800; font-size: var(--text-h2); line-height: 1; letter-spacing: var(--tracking-heading); text-wrap: balance; }
.feature-body > p { font-size: var(--text-body); line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.feature .eyebrow { align-self: end; }
@media (max-width: 880px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature > *, .feature-body > *, .feature:nth-of-type(even) > *, .feature:nth-of-type(even) .feature-body > * { grid-column: 1; }
  .feature .feature-visual, .feature:nth-of-type(even) .feature-visual { grid-column: 1; grid-row: auto; margin-top: 16px; }
}

/* Visuals used inside feature content (written as HTML in content/features/*.md). */
.track-list { background: var(--card); border-radius: var(--radius-l); box-shadow: var(--shadow-card); overflow: hidden; list-style: none; margin: 0; padding: 0; }
.track-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid rgba(27, 26, 23, 0.07); }
.track-list li:first-child { border-top: 0; }
.track-n { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--teal); background: var(--teal-tint); border-radius: 5px; text-align: center; padding: 3px 0; }
.track-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.track-text strong { font-size: var(--text-m); }
.track-text span { font-size: var(--text-label); color: var(--muted); }
.track-status { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--teal); }
.track-status.is-saved { color: var(--success); }
.track-status.is-rec { color: #B3261E; }

.stream-card { background: var(--deck); color: var(--on-dark); border-radius: var(--radius-l); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.stream-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: var(--tracking-label); color: var(--record-text); text-transform: uppercase; }
.stream-head::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--record-dot); }
.stream-files { margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 14px; line-height: 1.9; color: var(--on-dark-2); overflow-wrap: anywhere; }
.stream-files li + li { color: var(--on-dark-3); }
.stream-head, .stream-tags { margin: 0; }
.stream-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.stream-tags span { font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border-radius: var(--radius-s); background: rgba(244, 238, 226, 0.08); }

.name-template { display: flex; flex-direction: column; gap: 12px; }
.name-template code { display: block; border-radius: var(--radius); padding: 16px 18px; font-family: var(--font-mono); font-size: var(--text-s); overflow-wrap: anywhere; }
.name-template .template { background: var(--card); box-shadow: var(--shadow-card); color: var(--ink); }
.name-template .template b { color: var(--teal); font-weight: 400; }
.name-template .result { background: var(--teal); color: var(--paper); }
.name-template .becomes { align-self: center; font-family: var(--font-mono); font-size: var(--text-label); color: var(--muted); }

/* Pro: side B ------------------------------------------------------------------------ */

.pro {
  border-radius: 20px;
  background: var(--teal);
  color: var(--paper);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 28px;
}
.pro-head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.pro-head .eyebrow { color: var(--paper); }
.pro-head h2 { margin: 0; font-stretch: var(--stretch-heading); font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); line-height: 1; letter-spacing: var(--tracking-heading); }
.pro-item { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(244, 238, 226, 0.3); padding-top: 16px; }
.pro-item h3 { margin: 0; font-size: 19px; }
.pro-item p { margin: 0; font-size: var(--text-m); line-height: 1.5; color: var(--on-teal-2); }

/* Sections with a heading block -------------------------------------------------------- */

.section { padding-top: var(--section-gap); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section-head h2, .section-title {
  margin: 0;
  font-stretch: var(--stretch-heading);
  font-weight: 800;
  font-size: var(--text-h2);
  line-height: 1;
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}
.section-head p:not(.eyebrow) { margin: 0; font-size: var(--text-body); line-height: 1.55; color: var(--text-2); }

/* The fine print, up front */
.fine-print { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid rgba(27, 26, 23, 0.14); }
.principles .n { font-family: var(--font-mono); font-size: var(--text-label); font-weight: 600; color: var(--teal); padding-top: 3px; }
.principles h3 { margin: 0 0 4px; font-size: 18px; }
.principles p { margin: 0; font-size: var(--text-m); line-height: 1.5; color: var(--text-2); }

/* Pricing -------------------------------------------------------------------------------- */

.pricing { display: flex; flex-direction: column; gap: 32px; }
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.plan { border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 18px; background: var(--paper-raised); color: var(--ink); box-shadow: 0 0 0 1px rgba(27, 26, 23, 0.14); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-name { margin: 0; font-weight: 700; font-size: 20px; }
.plan-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; opacity: 0.8; text-transform: uppercase; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price strong { font-stretch: var(--stretch-heading); font-weight: 800; font-size: 52px; letter-spacing: var(--tracking-heading); line-height: 1; }
.plan-price .price-mark { font-size: 24px; font-weight: 700; align-self: flex-start; margin-left: -6px; }
.plan-period { font-size: var(--text-s); opacity: 0.8; }
.plan-tagline { margin: 0; font-size: var(--text-s); opacity: 0.85; }
.plan-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: var(--text-s); line-height: 1.4; flex: 1; }
.plan-features li { display: flex; gap: 10px; }
.plan-features li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.plan-cta { height: 50px; border-radius: 25px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--text-s); background: var(--ink); color: var(--paper); }
.plan-cta:hover { color: var(--paper); text-decoration: none; opacity: 0.92; }
.plan-cta[aria-disabled="true"] { opacity: 0.55; }
.plan.is-featured { background: var(--ink); color: var(--paper); box-shadow: none; }
.plan.is-featured .plan-cta { background: var(--paper); color: var(--ink); }
.plan[data-plan="pro"] { background: var(--teal); color: var(--paper); box-shadow: none; }
.plan[data-plan="pro"] .plan-cta { background: var(--paper); color: var(--teal-strong); }
.pricing-notes { display: flex; flex-direction: column; gap: 4px; }
.pricing-note { margin: 0; font-family: var(--font-mono); font-size: var(--text-label); color: var(--muted); }
.upgrades { margin-top: 24px; }

/* FAQ: native disclosure, no JavaScript ------------------------------------------------- */

.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.faq-list { display: flex; flex-direction: column; }
.faq-list details { border-top: 1px solid rgba(27, 26, 23, 0.16); padding: 18px 0; }
.faq-list details:last-child { border-bottom: 1px solid rgba(27, 26, 23, 0.16); }
.faq-list summary { list-style: none; display: flex; gap: 16px; align-items: center; min-height: 28px; cursor: pointer; font-weight: 700; font-size: 19px; line-height: 1.3; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { flex: 1; }
.faq-list summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(31, 117, 130, 0.35); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 400; font-size: 18px; color: var(--teal); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list .prose { margin-top: 10px; font-size: var(--text-m); line-height: 1.6; color: var(--text-2); max-width: var(--measure); }
.faq-list .prose > :last-child { margin-bottom: 0; }

/* Download block --------------------------------------------------------------------------- */

.download-block { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.deck {
  border-radius: 24px;
  background: var(--deck);
  color: var(--on-dark);
  padding: clamp(32px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.deck .eyebrow { color: var(--record-text); display: flex; align-items: center; gap: 8px; }
.deck .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--record-dot); }
.deck h2 { margin: 0; font-stretch: var(--stretch-display); font-weight: 800; font-size: clamp(36px, 5.4vw, 72px); line-height: 0.98; letter-spacing: var(--tracking-display); max-width: 13em; text-wrap: balance; }
.deck .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.deck .note { font-family: var(--font-mono); font-size: var(--text-label); color: var(--on-dark-2); }

/* Inner pages ---------------------------------------------------------------------------------- */

.page { padding-top: clamp(40px, 7vw, 88px); padding-bottom: var(--section-gap); }
.page-header { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 0 0 40px; }
.page-header h1 { margin: 0; font-stretch: var(--stretch-display); font-weight: 800; font-size: var(--text-h1); line-height: 1; letter-spacing: var(--tracking-display); text-wrap: balance; }
.lede { margin: 0; font-size: var(--text-lede); line-height: 1.5; color: var(--text-2); max-width: 36em; }
.page .pricing { margin-bottom: 56px; }

.prose { max-width: var(--measure); font-size: 17px; line-height: 1.65; color: var(--text-2); }
.prose h2, .prose h3 { color: var(--ink); line-height: 1.15; margin: 1.8em 0 0.5em; }
.prose h2 { font-stretch: var(--stretch-heading); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.prose h3 { font-size: 20px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin: 0.25em 0; }
.prose strong { color: var(--ink); }
.prose em { color: var(--muted); }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--paper-deep); padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }
.prose pre { background: var(--deck); color: var(--on-dark); padding: 16px 18px; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose blockquote { margin: 0 0 1em; padding-left: 16px; border-left: 3px solid var(--orange); }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: var(--text-m); }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line-strong); }
.prose th { font-family: var(--font-mono); font-size: var(--text-label); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line-strong); margin: 2em 0; }

/* About */
.about-card { display: flex; align-items: center; gap: 20px; margin: 0 0 28px; }
.about-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; margin: 0; }
.about-name { margin: 0; font-stretch: var(--stretch-heading); font-size: 22px; font-weight: 800; color: var(--ink); }
.about-role { margin: 0; font-family: var(--font-mono); font-size: var(--text-label); color: var(--muted); }

/* Press kit: downloadable brand assets */
.prose .press-grid { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.prose .press-grid li { margin: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; }
.prose .press-grid img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: repeating-conic-gradient(#E6E0D4 0 25%, #EFEAE0 0 50%) 0 0 / 16px 16px; border-radius: 0; }
.prose .press-grid p { margin: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font-size: var(--text-s); line-height: 1.4; }
.prose .press-grid small { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.prose .swatches { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.prose .swatches li { margin: 0; border-radius: var(--radius); padding: 48px 14px 12px; font-family: var(--font-mono); font-size: 12px; line-height: 1.4; box-shadow: var(--shadow-card); }
.prose .swatches strong { display: block; font-family: var(--font-sans); font-size: 16px; color: inherit; }

/* Release notes ---------------------------------------------------------------------------------- */

.release-meta { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-family: var(--font-mono); font-size: var(--text-label); color: var(--muted); }
.version-chip, .tag-chip { font-family: var(--font-mono); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 5px; background: var(--teal-tint); color: var(--teal); }
.tag-chip { background: rgba(232, 116, 59, 0.14); color: #8A3F12; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 24px; border-left: 2px solid var(--line-strong); max-width: var(--measure); }
.release-item { position: relative; padding: 0 0 40px; }
.release-item::before { content: ""; position: absolute; left: -31px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--paper); }
.release-title { margin: 6px 0 0; font-size: 24px; letter-spacing: -0.02em; }
.release-title a { color: var(--ink); }
.release-desc { margin: 6px 0 0; color: var(--text-2); }
.backlink { margin-top: 32px; font-family: var(--font-mono); font-size: var(--text-label); }
.empty { color: var(--muted); font-size: var(--text-body); }
.pagination { display: flex; gap: 16px; align-items: center; margin-top: 32px; font-family: var(--font-mono); font-size: var(--text-label); }
.post-list { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.post-card { padding: 20px 0; border-top: 1px solid var(--line-strong); }
.meta { margin: 0 0 4px; font-family: var(--font-mono); font-size: var(--text-label); color: var(--muted); }
.tags { margin-left: 8px; }
.tag { margin-right: 8px; }
.summary { margin: 6px 0 0; color: var(--text-2); }
.cover { width: 100%; height: auto; border-radius: var(--radius); margin: 0 0 24px; }

/* Footer ------------------------------------------------------------------------------------------- */

.site-footer { border-top: 1px solid rgba(27, 26, 23, 0.12); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; }
.footer-row .wordmark { gap: 8px; }
.footer-row .wordmark img { width: 22px; height: 22px; }
.footer-row .wordmark span { font-size: 16px; }
.footer-row nav { margin-left: auto; }
.footer-row ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 20px; flex-wrap: wrap; }
.footer-row ul a { color: var(--text-2); }
.footer-note { margin: 0; }
.footer-note a { text-decoration: underline; text-underline-offset: 0.15em; }
.lang-switch ul { gap: 6px; }
.lang-switch a { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; color: var(--muted); }
:root[lang="en"] .lang-switch a[hreflang="en"], :root[lang="de"] .lang-switch a[hreflang="de"] { background: var(--ink); color: var(--paper); }

/* Phones, tablets and the "send link" action --------------------------------------------------------- */

/* The nav button says "Get it" on phones. */
.nav-cta .label-narrow { display: none; }
/* The phone menu: a native disclosure, so it works without JavaScript. */
.nav-menu { display: none; }
.nav-menu summary { list-style: none; width: 44px; height: 44px; margin-right: -8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary i { width: 20px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.nav-menu[open] summary i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu[open] summary i:nth-child(2) { opacity: 0; }
.nav-menu[open] summary i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
.nav-menu ol { list-style: none; margin: 0; padding: 0; counter-reset: menu; }
.nav-menu li { counter-increment: menu; }
.nav-menu a { display: flex; align-items: center; justify-content: space-between; height: 56px; border-bottom: 1px solid var(--line); color: var(--ink); font-stretch: var(--stretch-heading); font-weight: 700; font-size: 22px; }
.nav-menu a::after { content: counter(menu, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--text-label); font-weight: 400; color: var(--teal); }
.nav-menu a:hover { text-decoration: none; color: var(--teal); }

/* "Send link to my Mac": site.js turns the download buttons into it on phones and tablets. */
.send-note { display: none; margin: 0; font-family: var(--font-mono); font-size: var(--text-label); line-height: 1.5; color: var(--text-2); text-align: center; }
.is-send-device .send-note { display: block; }
.is-send-device .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
.is-send-device .hero-actions .hero-notes { display: none; }
.is-send-device .hero-actions .pill, .is-send-device .deck .pill { justify-content: center; height: auto; min-height: 56px; padding-top: 10px; padding-bottom: 10px; border-radius: 28px; white-space: normal; text-align: center; line-height: 1.2; }
.is-send-device .deck .actions { align-self: stretch; }
.is-send-device .deck .pill { flex: 1; }

/* The dock: a sticky "send link" bar on phones and tablets once the hero is scrolled past. */
.dock { position: fixed; left: 12px; right: 12px; margin: 0 auto; max-width: 560px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 6; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 32px; background: rgba(27, 26, 23, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--paper); box-shadow: 0 12px 30px rgba(27, 26, 23, 0.3); transform: translateY(0); transition: transform 0.25s, opacity 0.25s; }
.dock[hidden] { display: none; }
.dock.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; }
.dock img { width: 28px; height: 28px; }
.dock p { flex: 1; min-width: 0; margin: 0; display: flex; flex-direction: column; }
.dock b { font-size: var(--text-s); }
.dock p span { font-family: var(--font-mono); font-size: 11px; color: var(--on-dark-2); }
.dock-btn { height: 44px; padding: 0 18px; border-radius: 22px; background: var(--paper); color: var(--ink); display: flex; align-items: center; font-weight: 700; font-size: 14px; white-space: nowrap; }
.dock-btn:hover { color: var(--ink); text-decoration: none; }
.has-dock .site-footer { padding-bottom: 88px; }

/* Tablets (phones keep the single column set at 880px above) */
@media (max-width: 1099px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .cassette { width: min(100%, 460px); }
  .pro { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
  .plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
  .plan-price strong { font-size: 44px; }
}
@media (min-width: 881px) and (max-width: 1099px) {
  .feature:nth-of-type(even) > *, .feature:nth-of-type(even) .feature-body > * { grid-column: 1; }
  .feature:nth-of-type(even) .feature-visual { grid-column: 2; }
}

/* Phones */
@media (max-width: 759px) {
  .site-nav .wrap { gap: 20px; padding: 10px 20px; flex-wrap: nowrap; }
  .nav-desktop { display: none; }
  .nav-cta { margin-left: auto; height: 40px; border-radius: 20px; }
  .nav-cta .label-wide { display: none; }
  .nav-cta .label-narrow { display: inline; }
  .nav-menu { display: block; }
  .sources { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sources::-webkit-scrollbar { display: none; }
  .sources-label, .chip { flex: none; white-space: nowrap; }
  .chip { height: 40px; border-radius: 20px; }
  .stream-card, .plan { padding: 22px; }
  .stream-files, .name-template code { font-size: 13px; }
  .faq-list summary { font-size: 17px; }
}

/* Print ---------------------------------------------------------------------------------------------- */

@media print {
  .site-nav, .site-footer, .hero-art, .download-block, .skip-link { display: none; }
  body { background: #fff; }
}
