/* media.hooodl.com in the Hooodl app's warm look (localmatch src/theme/warm.ts,
   docs/BRAND.md): warm ground, white cards, hairlines, soft shadows, rounded
   corners, Archivo titles. Only the story pictures (the looks) carry colour.
   Fonts are self-hosted: no requests to Google. No inline styles or scripts
   (Content-Security-Policy). */
@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("/fonts/archivo-400.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("/fonts/archivo-700.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 900; font-display: swap; src: url("/fonts/archivo-900.woff2") format("woff2"); }
@font-face { font-family: "Dela Gothic One"; font-display: swap; src: url("/fonts/dela-gothic-one.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-weight: 500; font-display: swap; src: url("/fonts/dm-mono-500.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ground: #F7F4EE; --card: #FFFFFF; --paper: #FFFDF6;
  --ink: #1A1814; --ink2: #3A362E; --muted: #6A6358; --faint: #8A8377;
  --line: #E7E1D6; --chip: #EFEAE1;
  --yellow: #FFE81A; --yellow-pale: #FFF4B0; --yellow-text: #7A5000; --red: #F0423C;
  --lilac: #C3B4FF; --sky: #9ED8FF; --sand: #F2D39B; --night: #0B0B0A;
  --display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --soft: 0 1px 2px rgba(26, 24, 20, .05), 0 10px 28px rgba(26, 24, 20, .07);
  --soft-up: 0 2px 4px rgba(26, 24, 20, .06), 0 16px 36px rgba(26, 24, 20, .10);
  --wrap: 1180px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-snap-type: y proximity; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 15.5px/1.5 var(--body);
  padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- header and tabs ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; margin: 0 calc(-1 * var(--gutter));
  padding: 8px var(--gutter) 10px; background: rgba(247, 244, 238, .94); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand b { font: 800 12px/1 var(--body); letter-spacing: .12em; background: var(--ink); color: #fff; padding: 6px 8px; border-radius: 6px; margin: 14px 0 0 -4px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.lang a { font: 800 12px/1 var(--body); letter-spacing: .08em; padding: 8px 11px; text-decoration: none; color: var(--muted); }
.lang a[aria-current] { background: var(--ink); color: #fff; }
.tabs { max-width: var(--wrap); margin: 8px auto 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; font: 800 13.5px/1 var(--body); padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink2); text-decoration: none; }
.tab:hover { background: var(--chip); }
.tab[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 640px) { .brand img { height: 34px; } }

/* ---------- looks: one costume per story, sized to their box (cqw) ---------- */
.media, .reel, .a-cover { container-type: inline-size; }
.cover { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4cqw; padding: 7cqw; height: 100%; --h: 9cqw; }
.cover[data-size="m"] { --h: 7.8cqw; }
.cover[data-size="l"] { --h: 6.6cqw; }
.cover h3 { margin: 0; overflow-wrap: anywhere; }
.cover .tease { margin: auto 0 0; font-size: 4.4cqw; line-height: 1.35; }
@keyframes pulse { 50% { opacity: .25; } }

.lk-ticker { background: #fff; }
.lk-ticker .bar { display: flex; align-items: center; gap: 2.5cqw; font: 900 4.2cqw/1 var(--body); letter-spacing: .12em; color: var(--red); }
.lk-ticker .bar i { width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
.lk-ticker h3 { font: 400 var(--h)/1.08 var(--display); }
.lk-ticker ol { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 2.4cqw; font-size: 4.1cqw; line-height: 1.3; }
.lk-ticker li { display: grid; grid-template-columns: 7cqw 1fr; gap: 2cqw; border-top: .5cqw solid var(--chip); padding-top: 2cqw; }
.lk-ticker li b { font: 500 4cqw/1.35 var(--mono); color: var(--red); }

.lk-bescheid { background: var(--paper); font-family: "Courier New", Courier, monospace; }
.lk-bescheid .gz { font-size: 3.6cqw; display: flex; justify-content: space-between; gap: 3cqw; border-bottom: .4cqw solid var(--ink); padding-bottom: 2cqw; }
.lk-bescheid .betreff { font-size: 3.8cqw; text-transform: uppercase; letter-spacing: .08em; }
.lk-bescheid h3 { font: 700 var(--h)/1.18 "Courier New", Courier, monospace; }
.lk-bescheid .tease { max-width: 62%; }
.lk-bescheid .stamp { position: absolute; right: 6cqw; bottom: 7cqw; font: 900 4.2cqw/1 var(--body); letter-spacing: .1em; color: var(--red);
  border: 1cqw double var(--red); border-radius: 50%; width: 28cqw; height: 28cqw; display: grid; place-items: center; transform: rotate(-14deg); opacity: .85; }

.lk-chat { background: var(--lilac); }
.lk-chat .chathead { font: 800 3.8cqw/1 var(--body); letter-spacing: .06em; color: var(--ink2); }
.lk-chat .bubbles { display: grid; gap: 3cqw; margin-top: auto; }
.lk-chat .bub { max-width: 88%; padding: 3cqw 4cqw; border-radius: 5cqw; line-height: 1.3; background: #fff; box-shadow: 0 .6cqw 1.6cqw rgba(26, 24, 20, .1); }
.lk-chat .bub.them { border-bottom-left-radius: 1.2cqw; font: 400 calc(var(--h) * .82)/1.15 var(--display); }
.lk-chat .bub.hm { justify-self: end; background: var(--yellow); font-weight: 700; font-size: 4.4cqw; border-bottom-right-radius: 1.2cqw; }

.lk-karte { background: var(--sand); }
.lk-karte .head { text-align: center; font: italic 700 4.4cqw/1 Georgia, serif; border-bottom: .4cqw solid var(--ink); padding-bottom: 2.4cqw; }
.lk-karte h3 { font: italic 700 var(--h)/1.12 Georgia, serif; text-align: center; }
.lk-karte dl { margin: auto 0 0; display: grid; gap: 2.4cqw; font-size: 4.3cqw; }
.lk-karte dl div { display: flex; gap: 2cqw; align-items: baseline; }
.lk-karte dt { white-space: nowrap; }
.lk-karte dl div::after { content: ""; order: 1; flex: 1; border-bottom: .6cqw dotted var(--ink); min-width: 4cqw; }
.lk-karte dd { order: 2; margin: 0; font: 500 3.6cqw/1 var(--mono); white-space: nowrap; max-width: 52%; overflow: hidden; text-overflow: ellipsis; }

.lk-durchsage { background: var(--night); color: #fff; }
.lk-durchsage .led { font: 800 4.6cqw/1.3 var(--mono); color: var(--yellow); background: #1C1B18; border-radius: 2.4cqw; padding: 3cqw; overflow: hidden; white-space: nowrap; }
.lk-durchsage .led span { display: inline-block; padding-left: 100%; animation: led 12s linear infinite; }
@keyframes led { to { transform: translateX(-100%); } }
.lk-durchsage h3 { font: 400 var(--h)/1.1 var(--display); }
.lk-durchsage .tease { color: #E6E2D6; }

/* ---------- reels rail ---------- */
.rail { margin-top: 22px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 18vw, 196px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 8px 18px 2px; scrollbar-width: thin; }
.reel { scroll-snap-align: start; position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; box-shadow: var(--soft);
  text-decoration: none; background: #fff; transition: transform .16s ease, box-shadow .16s ease; }
.reel:hover { transform: translateY(-2px); box-shadow: var(--soft-up); }
.reel .cover { padding: 9cqw 8cqw 30cqw; --h: 10.5cqw; }
.reel .cover[data-size="m"] { --h: 9cqw; }
.reel .cover[data-size="l"] { --h: 7.6cqw; }
.reel .cover .stamp, .reel .cover .tease, .reel .cover ol, .reel .cover dl, .reel .cover .hm, .reel .cover .gz, .reel .cover .head { display: none; }
.reel .chrome { position: absolute; inset: auto 0 0; padding: 7cqw; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  background: linear-gradient(transparent, rgba(11, 11, 10, .82)); color: #fff; }
.reel .play { width: 13cqw; height: 13cqw; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.reel .play svg { width: 55%; height: 55%; fill: currentColor; margin-left: 8%; }
.reel .meta { font: 800 6.4cqw/1.2 var(--body); }

/* ---------- feed: one post per screen ---------- */
.feed { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 44px; padding-block: 26px 60px; }
.feed.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: 0; justify-items: stretch; }
@media (max-width: 640px) { .feed.two { grid-template-columns: 1fr; } }
.post { width: min(100%, clamp(300px, calc((100svh - 330px) * .8), 560px)); background: #fff; border-radius: 20px; box-shadow: var(--soft);
  overflow: hidden; min-width: 0; scroll-snap-align: start; scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 116px); }
.feed.two .post { width: 100%; }
.post-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--night); display: grid; place-items: center; flex: none; }
.avatar img { width: 30px; height: auto; }
.who { min-width: 0; line-height: 1.2; }
.who b { font-weight: 800; font-size: 14px; }
.who small { display: block; font-size: 12px; color: var(--faint); }
.chip { margin-left: auto; font: 800 10.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; background: var(--chip); color: var(--ink2); border-radius: 999px; padding: 6px 9px; white-space: nowrap; }
.media { display: block; aspect-ratio: 4 / 5; text-decoration: none; }
.cap { padding: 12px 16px 16px; display: grid; gap: 8px; }
.cap p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.cap p b { font-weight: 800; }
.stat { font-size: 12.5px; color: var(--faint); }
.readlink { font: 800 13px/1 var(--body); text-decoration: none; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 10px 15px; }
.readlink:hover { background: #FFF06B; }
.ghost { font: 800 13px/1 var(--body); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; }
.empty { margin: 60px auto; max-width: 420px; text-align: center; color: var(--muted); font-size: 17px; }

/* ---------- article ---------- */
.article { max-width: 780px; margin: 0 auto; padding-block: 22px 60px; }
.back { display: inline-flex; align-items: center; gap: 6px; font: 800 14px/1 var(--body); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; background: #fff; }
.a-hero { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; align-items: start; }
@media (max-width: 700px) { .a-hero { grid-template-columns: 1fr; } .a-cover { max-width: 320px; } }
.a-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--faint); margin: 0; }
.a-meta .chip { margin-left: 0; }
.a-hero h1 { font: 800 clamp(30px, 4.6vw, 46px)/1.08 var(--body); letter-spacing: -.02em; margin: 12px 0 14px; }
.lede { font-size: 18.5px; line-height: 1.5; margin: 0; color: var(--muted); }
.a-cover { aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; box-shadow: var(--soft); }
.a-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn { font: 800 14px/1 var(--body); border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; background: #fff; text-decoration: none; }
.correction { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #FFE3E0; color: #7A1A16; font-size: 15px; }
.beats { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.beat { padding: 20px 0; border-bottom: 1px solid var(--line); }
.beat h2 { margin: 0 0 10px; font: 800 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.beat p { margin: 0; font-size: 17px; max-width: 64ch; color: var(--ink2); }
.fact { display: flex; gap: 8px; align-items: baseline; }
.fact + .fact { margin-top: 10px; }
.src { font: 500 11.5px/1 var(--mono); background: var(--chip); color: var(--ink2); border-radius: 999px; padding: 4px 7px; white-space: nowrap; text-decoration: none; }
.schmaeh { border-radius: 16px; background: var(--yellow-pale); padding: 18px 20px; }
.schmaeh p { margin: 0; font: 800 clamp(19px, 2.3vw, 23px)/1.3 var(--body); color: var(--ink); }
.schmaeh small { display: block; margin-top: 10px; font-size: 13px; color: var(--yellow-text); }
.sources { margin-top: 26px; border-radius: 20px; padding: 16px 20px 18px; background: #fff; box-shadow: var(--soft); font-size: 14.5px; }
.sources h2 { margin: 0 0 8px; font: 800 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sources ol { margin: 0; padding-left: 20px; }
.sources li { margin-bottom: 4px; overflow-wrap: anywhere; }
.sources p { margin: 12px 0 0; font-size: 13px; color: var(--faint); }
.more { margin-top: 40px; }
.more h2 { font: 800 22px/1.1 var(--body); margin: 0 0 14px; }

/* ---------- footer ---------- */
footer { margin: 0 calc(-1 * var(--gutter)); border-top: 1px solid var(--line); padding: 26px var(--gutter) 36px; color: var(--muted); font-size: 14px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; align-items: center; }
.foot-in nav { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 700; }
.foot-in a { text-decoration: none; }
.foot-in a:hover { color: var(--ink); }
.handles { color: var(--faint); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  .lk-durchsage .led span, .lk-ticker .bar i { animation: none; }
  .reel { transition: none; }
}
