@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/Atkinson-Hyperlegible-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/assets/fonts/Atkinson-Hyperlegible-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
:root {
  --bg: #fbfaf7;            
  --surface: #ffffff;
  --surface-sunken: #f3f1ea;
  --border: #e7e3da;
  --border-strong: #d6d1c6;
  --text: #211f1b;
  --text-muted: #6a655d;
  --text-faint: #8b877e;
  --ink: #26241f;          
  --water: #0f7e9b;
  --water-ink: #095e73;
  --water-tint: #e1f0f4;
  --water-rule: #1389a8;
  --power: #cf611a;
  --power-ink: #a3470e;
  --power-tint: #fbeadc;
  --power-rule: #e0681a;
  --focus: #1389a8;
  --font-display: "Space Grotesk", "Futura", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Courier New", monospace;
  --radius: 12px;
  --radius-sm: 9px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(60, 45, 15, 0.05);
  --maxw: 660px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 11px 16px;
  border-radius: var(--radius-sm); font-family: var(--font-display);
  font-weight: 700; text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, #fff);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 16px 13px;
  display: flex; flex-direction: column; gap: 12px;
}
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header-actions { display: flex; align-items: center; gap: 13px; }
.header-about {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--text-muted); text-decoration: none;
  min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap;
}
.header-about:hover { color: var(--text); text-decoration: underline; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 28px; height: 28px; flex: none;
  transform: rotate(45deg); border-radius: 6px;
  background: linear-gradient(135deg, var(--power-rule) 0 50%, var(--water-rule) 50% 100%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--text-faint); font-weight: 500; margin-top: 4px;
}
.lang-toggle { display: inline-flex; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.lang {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  padding: 9px 13px; min-height: 40px; display: inline-flex; align-items: center;
  text-decoration: none; color: var(--text-muted); background: var(--surface);
}
.lang.is-active { background: var(--ink); color: #fff; }
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  min-height: 52px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent);
}
.search-icon { font-size: 17px; line-height: 1; }
.search input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-family: var(--font-body); font-size: 17px; color: var(--text);
  padding: 13px 0; min-width: 0;
}
.search input::placeholder { color: var(--text-faint); }
.search-clear {
  border: 0; background: var(--surface-sunken); color: var(--text-muted);
  width: 34px; height: 34px; border-radius: var(--radius-pill); flex: none;
  font-size: 14px; display: grid; place-items: center;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  min-height: 44px; padding: 0 15px;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.chip:hover { border-color: var(--text-faint); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[data-source="water"].is-active { background: var(--water); border-color: var(--water); }
.chip[data-source="power"].is-active { background: var(--power); border-color: var(--power); }
.main { max-width: var(--maxw); margin: 0 auto; padding: 16px 16px 56px; }
.feed-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 4px 16px; flex-wrap: wrap; margin: 4px 2px 14px;
}
.result-count {
  margin: 0; font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.02em; color: var(--text-muted);
}
.tz-note {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em;
  color: var(--text-faint); white-space: nowrap;
}
.feed { display: flex; flex-direction: column; gap: 13px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 15px 16px 14px;
  display: flex; flex-direction: column; gap: 9px;
}
.card.is-hidden { display: none; }
.card--water { border-top-color: var(--water-rule); }
.card--power { border-top-color: var(--power-rule); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  padding: 5px 11px; border-radius: var(--radius-sm); white-space: nowrap;
}
.badge-icon { font-size: 14px; line-height: 1; }
.badge--water { background: var(--water-tint); color: var(--water-ink); }
.badge--power { background: var(--power-tint); color: var(--power-ink); }
.card-time {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  white-space: nowrap; flex: none;
}
.card-title {
  font-family: var(--font-display); font-weight: 500; font-size: 20px;
  line-height: 1.27; letter-spacing: -0.01em; color: var(--text);
  text-wrap: pretty;
}
.card-title mark { background: #ffe9a8; color: inherit; padding: 0 2px; border-radius: 3px; }
.card-body {
  margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--text-muted);
  text-wrap: pretty;
  white-space: pre-line;
}
.card-body mark { background: #ffe9a8; color: var(--text); padding: 0 2px; border-radius: 3px; }
.card-para { display: block; }
.card-para + .card-para { margin-top: 0.225em; margin-top: 0.15lh; } 
.card-body.is-prose .card-para + .card-para { margin-top: 0.75em; margin-top: 0.5lh; } 
.card-fields { display: flex; flex-direction: column; gap: 3px; margin: -4px 0 0; }
.field { font-size: 15.5px; line-height: 1.45; color: var(--text); text-wrap: pretty; }
.field-key { font-weight: 700; color: var(--text-muted); margin-inline-end: 0.4em; }
.field-key::after { content: ":"; }
.field-val mark { background: #ffe9a8; color: var(--text); padding: 0 2px; border-radius: 3px; }
.field--status { margin-top: 6px; }
.field--status .field-val { color: var(--text-muted); }
.field--etr .field-val, .status-good { font-weight: 700; color: var(--power-ink); }
.body-link {
  color: var(--water-ink); text-decoration: underline;
  text-underline-offset: 2px; word-break: break-word;
}
.card--power .body-link { color: var(--power-ink); }
.body-link:hover { text-decoration: none; }
.card-thumb {
  display: block; align-self: flex-start;
  width: auto; height: auto;
  max-width: min(100%, 300px); max-height: 200px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface);
}
.card-thumb-link { align-self: flex-start; display: inline-block; line-height: 0; }
.thumb-wrap { position: relative; display: inline-block; line-height: 0; }
.thumb-play {
  position: absolute; inset: 0; margin: auto;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(20, 22, 30, 0.55); border: 2px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.thumb-play::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.card-thumb-link:hover .thumb-play { background: rgba(20, 22, 30, 0.75); }
.card-meta {
  display: flex; flex-wrap: wrap; gap: 5px 16px;
  padding-top: 10px; margin-top: 1px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted);
}
.meta-key { font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.card-link {
  align-self: flex-start; margin-top: 3px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  text-decoration: none; color: var(--water-ink);
}
.card--power .card-link { color: var(--power-ink); }
.card-link:hover { text-decoration: underline; }
.card-tag {
  flex: none; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--power-tint); color: var(--power-ink);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.prior { margin-top: 2px; }
.prior-toggle {
  align-self: flex-start; padding: 2px 0; border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--power-ink);
}
.prior-toggle:hover { text-decoration: underline; }
.prior-toggle[disabled] { opacity: 0.5; cursor: default; }
.prior-list-wrap { margin-top: 8px; }
.prior-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prior-item {
  padding: 10px 12px; border-left: 2px solid var(--border);
  background: var(--power-tint); border-radius: 8px;
}
.prior-time {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
  margin-bottom: 4px;
}
.prior-body {
  margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-muted);
  white-space: pre-line;
}
.prior-item .card-meta { border-top-color: var(--border); }
.prior-item .card-fields { margin: 0; gap: 2px; }
.prior-item .field { font-size: 14px; line-height: 1.4; }
.prior-item .field--status { margin-top: 4px; }
.prior-error { margin: 8px 0 0; font-size: 13px; color: var(--text-muted); }
.ad-slot {
  margin: 2px 0; min-height: 118px;
  display: flex; flex-direction: column; gap: 7px;
}
.ad-top { margin: 0 0 16px; }
.ad-inline { margin: 24px 0 28px; }
.ad-slot:has(.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
.ad-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-faint); padding-left: 2px;
}
.ad-box { flex: 1; min-height: 100px; }
.skeleton { pointer-events: none; }
.sk {
  background: linear-gradient(90deg,
    var(--surface-sunken) 0%, #faf8f3 50%, var(--surface-sunken) 100%);
  background-size: 280px 100%;
  animation: lzShimmer 1.25s linear infinite;
  border-radius: 6px;
}
.sk-badge { width: 92px; height: 24px; border-radius: var(--radius-sm); }
.sk-line { height: 16px; }
.sk-line.w90 { width: 90%; } .sk-line.w70 { width: 70%; } .sk-line.w50 { width: 50%; }
@keyframes lzShimmer { 0% { background-position: -260px 0; } 100% { background-position: 260px 0; } }
.empty {
  text-align: center; padding: 48px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.empty-mark {
  width: 66px; height: 66px; border-radius: var(--radius-pill);
  background: var(--surface-sunken); display: grid; place-items: center;
  font-size: 30px; opacity: 0.9;
}
.empty h2 { font-size: 20px; font-weight: 700; }
.empty p { margin: 0; max-width: 36ch; color: var(--text-muted); font-size: 15.5px; }
.empty button {
  margin-top: 4px; padding: 12px 18px; border: 0; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: 14.5px;
}
.empty.error .empty-mark { background: var(--power-tint); }
.site-footer {
  max-width: var(--maxw); margin: 0 auto; padding: 24px 16px 40px;
  border-top: 1px solid var(--border); color: var(--text-faint); font-size: 13px;
}
.site-footer p { margin: 0 0 7px; line-height: 1.5; }
.site-footer a { color: var(--text-muted); }
.updated { margin: 18px 2px 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
.noscript-note {
  max-width: var(--maxw); margin: 16px auto; padding: 14px 16px;
  background: var(--power-tint); color: var(--power-ink);
  border-radius: var(--radius); font-size: 15px;
}
.header-inner--slim { gap: 0; padding-bottom: 14px; }
.footer-nav { display: flex; gap: 20px; margin-bottom: 12px; }
.footer-nav a {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--text-muted); text-decoration: none;
}
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.page-content h1 {
  font-family: var(--font-display); font-weight: 700; font-size: 28px;
  letter-spacing: -0.02em; line-height: 1.15; margin: 6px 0 0;
}
.page-content h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  margin: 28px 0 6px; letter-spacing: -0.01em;
}
.page-content p { margin: 0 0 4px; font-size: 16.5px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.page-content .lead { font-size: 18.5px; line-height: 1.5; margin-top: 12px; }
.page-content .note {
  color: var(--text-muted); font-size: 15.5px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--power-rule);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.src-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 9px; }
.src-list li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.src-ic { font-size: 18px; line-height: 1; }
.src-list a { color: var(--water-ink); font-weight: 700; text-decoration: none; }
.src-list a:hover { text-decoration: underline; }
.page-back { margin-top: 32px; }
.back-link {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--water-ink); text-decoration: none;
}
.back-link:hover { text-decoration: underline; }
.page-404 {
  text-align: center; padding: 56px 20px 44px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.big-404 {
  font-family: var(--font-display); font-weight: 700; font-size: 84px;
  line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--power-rule), var(--water-rule));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-404 h1 { font-size: 24px; font-weight: 700; }
.page-404 p { margin: 0; color: var(--text-muted); font-size: 16.5px; max-width: 40ch; }
.btn-primary {
  margin-top: 10px; display: inline-flex; align-items: center; min-height: 48px;
  padding: 0 22px; border-radius: var(--radius-sm); background: var(--ink);
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px;
  text-decoration: none;
}
.btn-primary:hover { background: #000; }
@media (min-width: 620px) {
  .header-inner { padding-top: 16px; padding-bottom: 15px; }
  .brand-name { font-size: 23px; }
  .card-title { font-size: 21px; }
  .page-content h1 { font-size: 32px; }
  .big-404 { font-size: 108px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition: none !important; }
  .sk { animation: none; background: var(--surface-sunken); }
}
