:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --bg: #ffffff;
  --alt: #f5f5f7;
  --line: #d2d2d7;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --bg: #000000;
    --alt: #161617;
    --line: #424245;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }

.strip {
  background: var(--alt);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
}
.header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { font-weight: 600; font-size: 19px; letter-spacing: 0.02em; text-decoration: none; }
.nav { display: flex; gap: 24px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }

main.wrap { padding-top: 56px; padding-bottom: 72px; min-height: 60vh; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.07; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 16px; }
h2 { font-size: 28px; line-height: 1.14; letter-spacing: -0.02em; font-weight: 600; margin: 48px 0 12px; }
h3 { font-size: 21px; font-weight: 600; margin: 32px 0 8px; }
p { margin: 0 0 16px; }
.lede { font-size: clamp(19px, 2.6vw, 24px); line-height: 1.3; color: var(--muted); max-width: 640px; margin-bottom: 32px; }
.prose { max-width: 680px; }
.prose ul { padding-left: 22px; }
.updated { color: var(--muted); font-size: 14px; }

.widget { margin: 24px 0 8px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.widget .tradingview-widget-container { width: 100%; }
.widget .tradingview-widget-container__widget { min-height: 500px; }
.widget-tall .tradingview-widget-container__widget { height: min(78vh, 720px); min-height: 460px; }
.tradingview-widget-copyright { font-size: 12px; color: var(--muted); padding: 8px 14px; border-top: 1px solid var(--line); }
.widget-note { color: var(--muted); font-size: 13px; margin: 8px 2px 0; }
.widget .widget-blocked ~ .tradingview-widget-container__widget { min-height: 0; height: 0; }
.widget-blocked { padding: 48px 22px; text-align: center; color: var(--muted); font-size: 15px; }
.widget-blocked button { margin-top: 12px; }

button {
  font: inherit; font-size: 14px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  border-radius: 980px; padding: 7px 18px;
}
button.primary { background: var(--text); color: var(--bg); border-color: var(--text); }

.footer { background: var(--alt); border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; margin: 0 0 16px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.fine { font-size: 12px; line-height: 1.5; margin: 0 0 10px; max-width: 820px; }

.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  max-width: 560px; margin: 0 auto;
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; box-shadow: 0 8px 30px rgba(0,0,0,.18);
  font-size: 14px;
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 10px; }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; }
