/* DealRevs changelog, design B: the website's teal band and tokens (dealrevs-website src/styles/global.css). Light only. */
:root {
  --deep: #0e2b29;
  --canvas: #f4efe6;
  --surface: #fffdf8;
  --sunken: #f0e9de;
  --ink: #1f1a14;
  --ink-2: #544a3e;
  --ink-3: #706456;
  --on-deep: #fff9ef;
  --on-deep-2: #a9bab5;
  --on-deep-3: #93a8a2;
  --on-deep-nav: #e9dfcd;
  --border-subtle: #eee6da;
  --border: #e3d8c7;
  --teal: #0f5c58;
  --teal-dark: #0b4a47;
  --teal-pale: #e0ece8;
  --sand: #e9dcc6;
  --spark: #d9774b;
  --good: #286d42;
  --good-tint: #e4ebe1;
  --warn: #905200;
  --warn-tint: #f6ecd9;
  --display: "Gloock", Georgia, serif;
  --sans: "Readex Pro", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.band :focus-visible { outline-color: var(--sand); }
h1, h2 { text-wrap: balance; }
li { text-wrap: pretty; }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: max(20px, min(3.9vw, 56px)); }

/* Teal band: header and hero */
.band { background: var(--deep); color: var(--on-deep); }
.bar { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--sand); color: var(--deep); display: flex; align-items: center; justify-content: center; padding-bottom: 5px; font: 600 13px/1 var(--sans); letter-spacing: -0.03em; }
.mark-line { position: absolute; left: 8px; right: 8px; bottom: 7px; height: 1.5px; border-radius: 2px; background: var(--deep); opacity: 0.4; }
.mark-spark { position: absolute; left: 16.5px; bottom: 5.25px; width: 5px; height: 5px; border-radius: 50%; background: var(--spark); }
.word { font: 19px/1 var(--sans); letter-spacing: -0.02em; color: var(--on-deep); }
.word b { font-weight: 600; }
.word span { font-weight: 300; color: var(--sand); }
.main { display: flex; flex-wrap: wrap; gap: 2px; }
.main a, .signin { white-space: nowrap; height: 40px; padding: 0 12px; display: flex; align-items: center; border-radius: 10px; color: var(--on-deep-nav); text-decoration: none; }
.main a:hover, .signin:hover { color: #fffdf8; background: rgba(233, 223, 205, 0.08); }
.main a[aria-current] { color: #fffdf8; text-decoration: underline; text-decoration-color: var(--sand); text-decoration-thickness: 2px; text-underline-offset: 10px; }
.end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.btn { height: 42px; padding: 0 18px; border-radius: 12px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; transition: background 0.2s, transform 0.2s; }
.btn-sand { background: var(--sand); color: var(--deep); }
.btn-sand:hover { background: #f3e8d6; color: var(--deep); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(233, 220, 198, 0.35); color: var(--sand); font-weight: 400; }
.btn-ghost:hover { background: rgba(233, 220, 198, 0.08); color: var(--sand); }

.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 64px; padding-block: 56px 72px; }
.hero-copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.kicker { margin: 0; font-size: 16px; font-weight: 500; color: var(--sand); }
h1 { margin: 0; font: 400 clamp(44px, 5.4vw, 76px) / 0.98 var(--display); letter-spacing: -0.024em; color: var(--on-deep); }
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--on-deep-2); max-width: 560px; }
.hero-side { flex: 0 1 380px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.stats { margin: 0; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 1px solid rgba(233, 220, 198, 0.2); padding-top: 18px; }
.stats div { display: flex; flex-direction: column; gap: 4px; }
.stats dd { margin: 0; order: -1; font: 400 44px/1 var(--display); font-variant-numeric: tabular-nums; }
.stats dt { font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-deep-3); }

/* Feed with the version rail */
.body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 56px; padding-block: 72px 120px; }
.rail { flex: 1 1 220px; min-width: 0; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 48px); }
.rail-label { font: 500 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: 0 12px 8px; }
.rail-list { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.rail a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.rail a span:last-child { font-size: 13.5px; color: var(--ink-3); }
.rail a:hover { background: var(--sunken); }
.rail a[aria-current] { background: var(--teal-pale); color: var(--teal); }
.ver { font: 500 13px var(--mono); }

.feed { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.entry { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 40px 44px 44px; display: flex; flex-direction: column; gap: 32px; }
.entry-head { display: flex; flex-direction: column; gap: 14px; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.entry-meta .ver { text-decoration: none; }
.entry-meta time { font-size: 14px; color: var(--ink-2); }
.entry h2 { margin: 0; font: 400 clamp(30px, 3vw, 40px) / 1.06 var(--display); letter-spacing: -0.015em; }
.counts { display: flex; flex-wrap: wrap; gap: 8px; }
.count { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.count-new { background: var(--good-tint); color: var(--good); }
.count-improved { background: var(--teal-pale); color: var(--teal); }
.count-fixed { background: var(--warn-tint); color: var(--warn); }
.entry section { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border-subtle); padding-top: 24px; }
.entry h3 { margin: 0; font-size: 17px; font-weight: 600; }
.entry ul { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 12px; max-width: 72ch; }
.role { margin-inline-start: 6px; padding: 1px 8px; border-radius: 6px; background: var(--sunken); color: var(--ink-2); font-size: 12.5px; white-space: nowrap; }

.more { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 72px; color: var(--ink-3); font-size: 14px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--teal); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.foot { background: #0a2220; color: var(--on-deep-2); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 32px; }
.foot a { color: var(--sand); }

@media (max-width: 760px) {
  .rail { position: static; max-height: none; }
  .rail-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .rail a { flex: none; gap: 8px; }
  .entry { padding: 28px 22px 32px; gap: 24px; }
  .body { padding-block: 40px 80px; }
  .main { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .signin { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .spin { animation: none; }
  .btn { transition: none; }
}
