:root { --bg: #fbfaf7; --ink: #1c1b18; --muted: #6b675e; --line: #e4e0d6; --card: #ffffff;
        --buy: #1f7a4d; --sell: #b23b2a; --amber: #d89b1c; --c-trend: #2b6cb0; --hold: #6b675e; --accent: #b5651d; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #151412; --ink: #ece9e1; --muted: #a39e92; --line: #2e2c27; --card: #1d1c19;
          --buy: #5fc48f; --sell: #e5705a; --amber: #e9b949; --c-trend: #7fb3e6; --hold: #a39e92; --accent: #e0a05c; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
.top, main, footer { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .45rem 1.5rem; padding-top: 1.25rem; padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; letter-spacing: .01em; text-decoration: none; font-size: 1.1rem; white-space: nowrap; }
nav { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
nav a { text-decoration: none; color: var(--muted); padding: .15rem 0; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--ink); } nav a[aria-current] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
h1 { font-size: 1.7rem; margin: 2rem 0 .5rem; }
h2 { font-size: 1.15rem; margin: 2rem 0 .5rem; }
h3 { font-size: 1rem; margin: 0 0 .35rem; }
.lead { color: var(--muted); margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem 1.4rem; }
.card h2 { margin: 0; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.headline { display: flex; align-items: baseline; gap: .8rem; margin: .4rem 0 .2rem; }
.score { font-size: 1.6rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; margin-left: .3rem; }
.state { display: flex; align-items: center; gap: 1rem; margin: .7rem 0 .6rem; }
.lamps { display: flex; flex-direction: column; gap: .3rem; padding: .35rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.lamp { width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--line); }
.lamp.green, .dot.green, .zone.green { background: var(--buy); }
.lamp.amber, .dot.amber, .zone.amber { background: var(--amber); }
.lamp.red, .dot.red, .zone.red { background: var(--sell); }
.holding { font-size: 1.6rem; font-weight: 700; margin: 0; line-height: 1.2; }
.since, .trend { margin: .1rem 0; color: var(--muted); } .trend { color: var(--ink); }
.scoreline { margin: .8rem 0 .3rem; color: var(--muted); }
.bar { position: relative; display: flex; height: .55rem; margin-top: .2rem; }
.zone { opacity: .45; } .zone.red { flex: 40; border-radius: 4px 0 0 4px; } .zone.amber { flex: 20; } .zone.green { flex: 40; border-radius: 0 4px 4px 0; }
.marker { position: absolute; top: -.3rem; width: 3px; height: 1.15rem; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.ticks { position: relative; height: 1.1rem; font-size: .75rem; color: var(--muted); }
.ticks span { position: absolute; transform: translateX(-50%); } .ticks span:nth-child(1) { left: 0; transform: none; }
.ticks span:nth-child(2) { left: 40%; } .ticks span:nth-child(3) { left: 60%; } .ticks span:nth-child(4) { right: 0; transform: none; }
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .45rem; vertical-align: baseline; }
.dot.none { background: none; border: 1px solid var(--accent); }
.intro { font-size: 1.1rem; margin: 1.4rem 0 .2rem; max-width: 46rem; }
.more { color: var(--muted); margin-top: 1.2rem; }
.legend ul { list-style: none; padding: 0; margin: .4rem 0 0; } .legend li { margin: .3rem 0; }
.cycle-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; max-width: 46rem; }
.aside { font-size: .85rem; color: var(--muted); }
.strip { position: relative; height: 2.7rem; max-width: 46rem; }
.strip .track, .strip .window { position: absolute; bottom: .3rem; height: .55rem; }
.strip .track { left: 0; right: 0; border-radius: 4px; background: var(--line); }
.strip .window { background: var(--muted); opacity: .6; }
.strip .pin { position: absolute; bottom: 0; width: 3px; height: 1.15rem; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.strip .today { position: absolute; top: 0; font-size: .88rem; white-space: nowrap; transform: translateX(-50%); }
.strip .today.start { transform: none; } .strip .today.end { transform: translateX(-100%); }
.strip-labels { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; max-width: 46rem; margin: .3rem 0 .7rem; font-size: .78rem; line-height: 1.35; color: var(--muted); }
.strip-labels > span:nth-child(2) { text-align: center; } .strip-labels > span:nth-child(3) { text-align: right; } .nb { white-space: nowrap; }
.cycle .note { max-width: 46rem; } .cycle .more { margin-top: .6rem; }
.langs { max-width: 60rem; margin: 0 auto; padding: .5rem 1.25rem 0; font-size: .85rem; color: var(--muted); text-align: right; }
.langs a, .langs span { margin-left: .9rem; text-decoration: none; } .langs span { color: var(--ink); font-weight: 600; }
.notice { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--line); padding: .3rem .75rem; margin: 1rem 0 0; }
.tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: .1rem .5rem; }
.position { margin: .2rem 0; } .asof, .funding { color: var(--muted); font-size: .9rem; margin: .2rem 0; }
.credit { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.why { padding-left: 1.1rem; margin: .9rem 0; } .why li { margin: .3rem 0; }
.disclaimer { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .7rem; margin-bottom: 0; }
.delayed, .warn { background: color-mix(in srgb, var(--accent) 14%, transparent); border-left: 3px solid var(--accent); padding: .5rem .75rem; margin: .6rem 0; }
.empty { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.grid article { border-top: 1px solid var(--line); padding-top: .8rem; }
.now { margin: 0 0 .3rem; } .note { margin: 0; color: var(--muted); font-size: .88rem; }
table { border-collapse: collapse; width: 100%; margin: .8rem 0 1.5rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; color: var(--muted); font-size: .9rem; padding-bottom: .4rem; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
.returns th { font-weight: 600; } .returns td { font-size: 1.15rem; } .returns .head th { color: var(--muted); font-size: .92rem; }
.asof-line { margin-bottom: 1rem; } .prose .note + .note { margin-top: .6rem; }
.log { font-size: .92rem; } .log th { color: var(--muted); font-weight: 600; }
.prose { max-width: 44rem; } .prose li { margin: .3rem 0; }
footer { color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1rem; padding-bottom: 2rem; }
code { font: .85em ui-monospace, SFMono-Regular, Menlo, monospace; }
.log { display: block; overflow-x: auto; }
.chart { width: 100%; height: auto; display: block; margin: .4rem 0; }
.chart text { font-size: 12px; fill: var(--muted); } .chart .era { font-size: 13px; font-weight: 600; }
.chart .grid { stroke: var(--line); stroke-width: 1; } .chart .band { fill: var(--buy); opacity: .16; }
.chart .launch { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .late { fill: var(--muted); opacity: .13; } .chart .late-cap { fill: var(--muted); opacity: .75; } .chart .halving line { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .price { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.chart .line { fill: none; stroke-width: 1.8; } .chart .drop line { stroke-width: 1.2; stroke-dasharray: 3 3; }
.chart .line.hold, .chart .drop.hold line { stroke: var(--muted); } .chart .drop.hold circle { fill: var(--muted); }
.chart .line.trend, .chart .drop.trend line { stroke: var(--c-trend); } .chart .drop.trend circle { fill: var(--c-trend); }
.chart .line.funding, .chart .drop.funding line { stroke: var(--accent); } .chart .drop.funding circle { fill: var(--accent); }
.swatch { display: inline-block; width: 1.1rem; height: .28rem; margin: 0 .4rem 0 0; vertical-align: middle; border-radius: 2px; }
.swatch.hold { background: var(--muted); } .swatch.trend { background: var(--c-trend); } .swatch.funding { background: var(--accent); }
.swatch.band { height: .8rem; background: var(--buy); opacity: .3; }
.swatch.late { height: .8rem; background: var(--muted); opacity: .3; } .swatch.halving { width: 0; height: .9rem; border-left: 1px dashed var(--muted); border-radius: 0; }
.key { font-size: .88rem; color: var(--muted); margin: .2rem 0 0; } .key .swatch { margin-left: .9rem; } .key .swatch:first-child { margin-left: 0; } .key .nb { margin-right: .9rem; }
.periods { line-height: 2; } .periods a, .periods span { margin-right: .9rem; white-space: nowrap; } .periods span { font-weight: 700; }
.what { font-size: .88rem; margin: .3rem 0 .5rem; }
.what summary { display: inline-block; cursor: pointer; padding: .35rem 0; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; list-style: none; }
.what summary::-webkit-details-marker { display: none; }
.what summary::before { content: "+"; display: inline-block; width: 1em; text-decoration: none; } .what[open] summary::before { content: "\2212"; }
.what p { margin: .1rem 0 .4rem; padding: .5rem .75rem; border-left: 3px solid var(--line); max-width: 44rem; }
.what p a { color: var(--muted); white-space: nowrap; }
.words dt { font-weight: 600; margin-top: .9rem; scroll-margin-top: 1rem; } .words dd { margin: .15rem 0 0; }
.words dt:target { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.chart.narrow { display: none; } .chart.narrow text { font-size: 13px; } .chart.narrow .era { font-size: 14px; }
.log.fixed { display: table; table-layout: fixed; }
.rest { margin: -1rem 0 1.5rem; } .rest summary { cursor: pointer; padding: .5rem 0; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.rest table { margin-top: .4rem; }
.log .more { display: none; } .more td { border-bottom: 1px solid var(--line); padding-top: 0; }
.more summary { cursor: pointer; color: var(--muted); font-size: .85rem; padding: .1rem 0 .2rem; }
.more span { display: block; margin: .2rem 0; overflow-wrap: anywhere; } .more code { font-size: .8em; }
@media (max-width: 40rem) {
  .chart.wide { display: none; } .chart.narrow { display: block; }
  .log.readings { display: table; } .log .wide { display: none; } .log .more { display: table-row; }
  .log.readings tr:not(.more) td { border-bottom: 0; padding-bottom: .15rem; }
  .log.fixed th, .log.fixed td { padding-left: .3rem; padding-right: .3rem; }
}
