:root {
  color-scheme: light;
  --bg: #f6f7f3;
  --ink: #151711;
  --muted: #68705f;
  --line: #d8dccf;
  --panel: #ffffff;
  --gold: #b8872b;
  --green: #137a5b;
  --red: #b4443f;
  --blue: #255f85;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.eyebrow,
.signal-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.updated {
  color: var(--muted);
  text-align: right;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  padding: 22px 0;
}

.signal-block,
.price-strip,
.metrics article,
.drivers article,
.charts article,
.history-list button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.signal-block {
  padding: 28px;
}

.signal-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.signal-row strong {
  font-size: clamp(56px, 11vw, 112px);
  line-height: 0.95;
  color: var(--gold);
}

.signal-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
}

.signal-block p {
  max-width: 760px;
  margin-bottom: 0;
  color: #33382f;
  font-size: 18px;
  line-height: 1.6;
}

.price-strip {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.price-strip div {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: var(--panel);
}

.price-strip span,
dt {
  color: var(--muted);
  font-size: 13px;
}

.price-strip strong {
  font-size: 32px;
}

em {
  color: var(--muted);
  font-style: normal;
}

.grid,
.drivers,
.chart-grid {
  display: grid;
  gap: 16px;
}

.metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metrics article,
.drivers article,
.charts article {
  padding: 20px;
}

dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eef0e8;
  padding-bottom: 10px;
}

dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.drivers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

ul {
  margin: 0;
  padding-left: 18px;
  color: #30362d;
  line-height: 1.65;
}

.charts,
.history {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
}

.range-tabs {
  display: flex;
  gap: 8px;
}

button {
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.range-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}

.range-tabs button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

canvas {
  display: block;
  width: 100%;
  height: 260px;
}

.timeline {
  display: flex;
  gap: 4px;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  overflow-x: auto;
}

.tick {
  min-width: 12px;
  height: 18px;
  border-radius: 3px;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.history-list button {
  display: grid;
  grid-template-columns: 110px 80px 1fr;
  gap: 14px;
  width: 100%;
  padding: 14px;
  text-align: left;
}

.history-list strong {
  color: var(--gold);
}

.history-list span {
  color: var(--muted);
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

@media (max-width: 860px) {
  .topbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .updated {
    text-align: left;
  }

  .hero,
  .metrics,
  .drivers,
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 16px;
  }

  .signal-block {
    padding: 22px;
  }

  .history-list button {
    grid-template-columns: 1fr;
  }
}
