/* Red House Studio: one stylesheet for all pages. Follows the system light/dark setting.
   The brand red lives in exactly one place: --red below. Everything red is derived from it. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-var.woff2) format("woff2"); }

:root {
  --red: #c8102e;                                   /* brand red */

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --measure: 40rem;

  /* light */
  --bg: #fbfaf8; --fg: #1b1a19; --muted: #5c5853; --rule: #e4e0da; --surface: #f3f0eb;
  --mark: var(--red);                               /* the house */
  --accent: var(--red);                             /* small red text, markers, focus ring */
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110; --fg: #ece9e5; --muted: #a8a29b; --rule: #2d2a27; --surface: #1b1a18;
    --accent: #e17c8c;                              /* fallback: brand red lightened for text contrast */
    --accent: color-mix(in srgb, var(--red) 55%, #fff);
  }
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; background: var(--bg); color: var(--fg);
  overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { text-decoration-thickness: 2px; text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 650; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--measure); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--bg); color: var(--fg); padding: 6px 10px; z-index: 10; }
mark.ph { background: #ffe066; color: #1a1a1a; padding: 0 0.25em; border-radius: 3px; font-size: 0.92em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ext { display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.2em; vertical-align: 0.05em; }
.email { font-weight: 550; white-space: nowrap; }

/* ---------- top bar ---------- */
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand .mark-svg { width: 24px; height: 24px; color: var(--mark); flex: none; }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.95rem; }
.bar nav a { text-decoration: none; color: var(--muted); }
.bar nav a:hover { color: var(--fg); text-decoration: underline; }

/* ---------- footer ---------- */
.foot { margin-top: 88px; border-top: 1px solid var(--rule); padding-block: 28px 40px; font-size: 0.92rem; color: var(--muted); }
.foot .row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot nav a { color: var(--fg); text-decoration: none; }
.foot nav a:hover .en, .foot nav a:hover span:first-child { text-decoration: underline; }
.foot nav .en { color: var(--muted); }
.foot .email { color: var(--fg); }
.contact-line { margin: 0; }
.colophon { margin: 14px 0 0; }

/* ---------- home ---------- */
.hero { padding-block: 48px 24px; display: grid; gap: 28px; align-items: start; }
.hero .mark-large { width: clamp(64px, 16vw, 128px); height: auto; color: var(--mark); }
@media (min-width: 760px) { .hero { grid-template-columns: auto 1fr; gap: 56px; padding-block: 80px 40px; } .hero .mark-large { margin-top: 6px; } }
.hero-text { min-width: 0; }
.kicker { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); letter-spacing: -0.03em; line-height: 1.08; max-width: 18ch; margin: 0 0 20px; }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.55; color: var(--fg); max-width: 36rem; margin: 0; }

.section { margin-top: 72px; scroll-margin-top: 24px; }
.section > h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.section-intro { max-width: 38rem; color: var(--muted); }

.projects { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
@media (min-width: 760px) { .projects { grid-template-columns: 1fr 1fr; } }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 26px 24px 22px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
.card .type { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.card h3 { font-size: 1.55rem; margin: 0; }
.card p { margin: 0; }
.card .links { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.95rem; }
.card .links a:first-child { font-weight: 600; }

.principles { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; max-width: 44rem; }
.principles li { position: relative; padding-left: 26px; }
.principles li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); }
.principles strong { display: block; font-size: 1.08rem; margin-bottom: 2px; }
.principles p { margin: 0; }
.label-sample { display: inline-block; font-size: 0.9em; font-weight: 600; padding: 1px 8px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); white-space: nowrap; }

.takedown { margin-top: 32px; max-width: 44rem; padding: 20px 22px; border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 10px; background: var(--surface); }
.takedown h3 { font-size: 1.15rem; margin: 0 0 6px; }
.takedown p { margin: 0; }

.accounts-block { margin-top: 32px; max-width: 44rem; }
.accounts-block h3 { font-size: 1.15rem; margin: 0 0 8px; }
.accounts { list-style: none; padding: 0; margin: 0; }
.accounts li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--rule); }
.accounts li:last-child { border-bottom: 1px solid var(--rule); }
.a-platform { min-width: 7rem; color: var(--muted); }

.contact-big { font-size: clamp(1.15rem, 3.6vw, 1.5rem); margin: 8px 0 12px; }
.contact-big .email { white-space: normal; overflow-wrap: anywhere; }

/* ---------- document pages (Impressum, Datenschutz) ---------- */
.doc { padding-top: 32px; }
.doc h1 { font-size: clamp(2rem, 6vw, 2.8rem); letter-spacing: -0.025em; max-width: 22ch; }
.doc h2 { font-size: 1.35rem; margin-top: 2.2em; }
.doc h3 { font-size: 1.08rem; margin-top: 1.7em; }
.doc address { font-style: normal; margin-bottom: 1em; }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li { margin-bottom: 0.35em; }
.doc a { overflow-wrap: anywhere; }
.doc .updated { color: var(--muted); font-size: 0.95rem; margin-top: 2.5em; }
.en-note { color: var(--muted); font-size: 0.98rem; max-width: var(--measure); margin: -0.2em 0 1.6em; }
.profiles { list-style: none; padding-left: 0 !important; }
.profiles li { margin-bottom: 0.4em; }
.p-platform { display: inline-block; min-width: 6.5rem; color: var(--muted); }
.draft { margin: 0 0 28px; padding: 12px 16px; border: 2px dashed #b3261e; border-radius: 8px; background: rgba(179,38,30,0.08); font-weight: 600; max-width: var(--measure); }
.draft span { display: block; font-weight: 400; font-size: 0.92rem; }
.toc { margin: 8px 0 32px; padding: 14px 18px; border: 1px solid var(--rule); border-radius: 10px; max-width: var(--measure); font-size: 0.95rem; background: var(--surface); }
.toc ol { margin: 6px 0 0; }
.toc li { margin-bottom: 0.15em; }

/* ---------- 404 ---------- */
.lost { padding-block: 80px 24px; display: grid; gap: 18px; justify-items: start; }
.lost .mark-large { width: 88px; color: var(--mark); }
.lost h1 { font-size: clamp(2rem, 7vw, 3rem); letter-spacing: -0.03em; margin: 0; }
.lost p { margin: 0; }

@media print { .bar nav, .skip { display: none; } body { background: #fff; color: #000; } .card, .takedown, .toc { background: none; } }
