/* A quiet, readable strategy notebook. Existing charts and controls keep their behavior. */
:root {
  --ink: #f1eee5;
  --quiet: #b4bfb9;
  --page: #0c1413;
  --panel: #141f1c;
  --edge: #34453e;
  --accent: #e4c58b;
}
html { scroll-padding-top: 110px; }
body { color: var(--ink); }
.market-atmosphere { background: radial-gradient(ellipse at 80% 7%, #25372e, transparent 58%), var(--page); }
.market-atmosphere :is(.aurora,.market-grid,.sparks) { display: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
}
header { border-bottom-color: var(--edge); background: #0c1413f5; }
header nav a { padding-block: 8px; white-space: nowrap; }
.hero {
  grid-template-columns: minmax(0,1fr) minmax(0,1.13fr);
  align-items: center;
  min-height: 0;
  gap: clamp(28px,5.2vw,78px);
  padding-top: clamp(54px,9vw,122px);
  padding-bottom: clamp(40px,7vw,90px);
}
.hero-copy { min-width: 0; animation: none; }
.hero-identity { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; color: var(--accent); }
.hero-identity span { font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.hero-identity b { color: var(--quiet); margin-inline: 4px; }
.hero h1 { margin: 0 0 22px; font-size: clamp(35px,4.9vw,68px); line-height: 1.13; letter-spacing: -.04em; }
.hero h1 span { display: block; margin-top: 12px; color: var(--accent); font-size: .61em; letter-spacing: -.02em; }
.hero .lead { max-width: 38em; margin: 0; color: var(--quiet); font-size: clamp(14px,1.4vw,17px); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-actions .button { min-height: 48px; padding: 10px 14px; gap: 12px; border-radius: 7px; }
.hero-actions .secondary { color: var(--ink); border: 1px solid #65776a; background: #182420; }
.hero-actions .secondary:hover { border-color: var(--accent); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 7px 13px; margin: 19px 0 0; color: var(--quiet); font-size: 12px; font-variant-numeric: tabular-nums; }
.hero-meta span { display: inline-block; }
.hero-study { min-width: 0; margin: 0; padding: clamp(14px,2vw,22px); border: 1px solid #617161; border-radius: 14px; background: linear-gradient(140deg,#192823,#101b18 68%); box-shadow: 0 20px 48px #050b0977; }
.study-top,.hero-study figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.study-top b { color: var(--ink); font-size: clamp(19px,2.2vw,28px); letter-spacing: .04em; }
.study-top small { display: block; margin-top: 3px; color: var(--quiet); font-size: 10px; letter-spacing: .15em; }
.study-label { padding: 3px 8px; color: var(--accent); border: 1px solid #8e7852; border-radius: 4px; font-size: 11px; white-space: nowrap; }
.study-chart { display: block; width: 100%; height: auto; margin: 8px 0; }
.study-grid { fill: none; stroke: #34453e; stroke-width: .8; }
.study-range { fill: #65847214; }
.study-channel { fill: none; stroke: #8b9b90; stroke-dasharray: 4 6; }
.study-channel.upper,.study-guide,.study-break { fill: none; stroke: var(--accent); }
.study-key,.study-callout { fill: var(--quiet); font-size: 16px; font-weight: 700; }
.study-key.upper,.study-callout { fill: var(--accent); }
.candle-up { fill: #ee7c77; stroke: #ee7c77; }
.candle-down { fill: #82a9ed; stroke: #82a9ed; }
.candle-up path,.candle-down path { stroke-width: 1.6; }
.hero-study figcaption { border-top: 1px solid var(--edge); padding-top: 11px; font-size: 12px; color: var(--quiet); }
.hero-study figcaption i { display: inline-block; width: 15px; border-top: 1px dashed var(--accent); vertical-align: middle; }
.hero-study figcaption a { color: var(--accent); text-underline-offset: 3px; }
.study-index { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.study-index a { border-block: 1px solid var(--edge); border-inline-start: 1px solid var(--edge); padding: 17px clamp(12px,2.4vw,28px); color: var(--ink); background: #15211d; text-decoration: none; }
.study-index a:first-child { border-radius: 9px 0 0 9px; }
.study-index a:last-child { border-inline-end: 1px solid var(--edge); border-radius: 0 9px 9px 0; }
.study-index a:hover { background: #25332b; }
.study-index small,.study-index b { display: block; }
.study-index small { margin-bottom: 5px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.study-index b { font-size: clamp(12px,1.4vw,15px); line-height: 1.55; }
.origin-book { display: flex; gap: 14px; align-items: center; padding: 13px 15px; margin-block: 18px; border: 1px solid var(--edge); border-radius: 8px; background: var(--panel); }
.origin-book img { width: 42px; height: auto; }
.origin-book :is(span,strong,small) { display: block; }
.origin-book span { color: var(--accent); font-size: 11px; }
.origin-book strong { font-size: 14px; }
.origin-book small { color: var(--quiet); }
.chart-scroll-track { min-height: calc(1000px + 130vh); }
#research { background: linear-gradient(145deg,#182620,#101a18 64%); border-block: 1px solid var(--edge); }
.evidence-grid article { background: #192620; border: 1px solid var(--edge); border-radius: 9px; min-width: 0; }
.evidence-grid article:first-child { border-color: #9e8357; }
.evidence-grid strong { font-variant-numeric: tabular-nums; }
.evidence-grid .money-stat { font-size: clamp(22px,2.6vw,34px) !important; }
.research-details a { color: var(--accent); text-underline-offset: 3px; }
.tool-grid .tool { background: linear-gradient(145deg,#1c2b25,#131e1a); border-color: var(--edge); border-radius: 10px; }
.tool-grid .release-status { border-color: #837049; border-radius: 7px; }
.tool-grid .release-status:hover { background: #2c392c; border-color: var(--accent); }
.tool-conditions { margin: 20px 0; padding: 16px 18px; border: 1px solid var(--edge); border-left: 3px solid #bda270; border-radius: 7px; background: var(--panel); }
.tool-conditions b { color: var(--accent); }
.tool-conditions p { margin: 5px 0 0; color: var(--quiet); font-size: 14px; line-height: 1.8; }
.motion-off .chart-scroll-track { min-height: 0; }
@media (prefers-reduced-motion: reduce) { .chart-scroll-track { min-height: 0; } }
@media (max-width: 780px) {
  html { scroll-padding-top: 136px; }
  .hero { grid-template-columns: minmax(0,1fr); padding-top: 35px; padding-bottom: 28px; }
  .hero .lead { max-width: 48em; }
  .hero-study { max-width: 640px; width: 100%; }
  .study-index a { padding: 12px 8px; }
  .study-index small { letter-spacing: .04em; }
  .origin { gap: 24px; }
}
@media (max-width: 430px) {
  header nav { gap: 9px; }
  header nav a { font-size: 12px; }
  .hero-identity { margin-bottom: 16px; }
  .hero h1 { margin-bottom: 16px; }
  .hero-actions { margin-top: 18px; }
  .hero-actions .button { flex: 1 1 125px; font-size: 12px; }
  .hero-study figcaption { font-size: 11px; }
  .evidence-grid .money-stat { font-size: 21px !important; }
}
