/* httpsmurphy.co.uk — one stylesheet for every page.
   Dark is a lifted slate, not black; orange is the only accent. */
:root {
  --bg: #15171c;
  --panel: #1c1f26;
  --panel-2: #232731;
  --line: #2c313c;
  --ink: #eceef2;
  --dim: #9ba1ae;
  --faint: #6c7280;
  --accent: #ff8a2b;
  --accent-ink: #1a1206;
  --accent-soft: rgba(255, 138, 43, .12);
  --good: #4cc38a;
  --bad: #ef6b6b;
  --warn: #f2c14e;
  --radius: 14px;
  --maxw: 1080px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f4f1; --panel: #ffffff; --panel-2: #f0eeea; --line: #e2dfd9;
    --ink: #1b1d22; --dim: #5d6370; --faint: #8b909b;
    --accent: #e06c0a; --accent-ink: #ffffff; --accent-soft: rgba(224, 108, 10, .10);
    --good: #1f9d63; --bad: #d14545; --warn: #b7860b;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f4f1; --panel: #ffffff; --panel-2: #f0eeea; --line: #e2dfd9;
  --ink: #1b1d22; --dim: #5d6370; --faint: #8b909b;
  --accent: #e06c0a; --accent-ink: #ffffff; --accent-soft: rgba(224, 108, 10, .10);
  --good: #1f9d63; --bad: #d14545; --warn: #b7860b;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 750; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dim { color: var(--dim); }
.accent { color: var(--accent); }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lede { color: var(--dim); font-size: clamp(16px, 1.6vw, 18.5px); max-width: 60ch; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { font-weight: 800; letter-spacing: -.02em; font-size: 17px; white-space: nowrap; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 7px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--dim); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--panel-2); }
.theme-btn { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); cursor: pointer; font-size: 15px; }
.theme-btn:hover { color: var(--ink); }

/* sections */
main { display: block; }
.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(36px, 6vw, 64px); }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 18px; }
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.section-head p { color: var(--dim); max-width: 62ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 11px; font-weight: 700; font-size: 15px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; transition: transform .12s ease, border-color .12s ease; }
.btn:hover { border-color: var(--faint); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.small { padding: 8px 13px; font-size: 14px; border-radius: 9px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid.three { grid-template-columns: 1fr; } .grid.two { grid-template-columns: 1fr; } }
a.card { display: flex; flex-direction: column; gap: 8px; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
a.card .go { margin-top: auto; padding-top: 14px; color: var(--accent); font-weight: 700; font-size: 14.5px; }
.card p { color: var(--dim); font-size: 15px; }

/* the live drop panel */
.pulse { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
@media (max-width: 860px) { .pulse { grid-template-columns: 1fr; } }
.pulse-main { padding: 30px; border-right: 1px solid var(--line); }
@media (max-width: 860px) { .pulse-main { border-right: 0; border-bottom: 1px solid var(--line); } }
.pulse-big { display: flex; align-items: baseline; gap: 14px; margin: 10px 0 6px; }
.pulse-big .num { font-size: clamp(64px, 11vw, 112px); font-weight: 700; line-height: .95; color: var(--accent); }
.pulse-big span:last-child { font-size: 18px; font-weight: 700; }
.meter { height: 8px; border-radius: 99px; background: var(--panel-2); margin-top: 20px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--accent); width: 0; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.meter-note { margin-top: 10px; font-size: 14px; color: var(--dim); }
.pulse-side { padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; align-content: center; }
.stat .k { font-size: 12.5px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.stat .v { font-size: 22px; font-weight: 700; margin-top: 2px; }
.stat .s { font-size: 13px; color: var(--dim); }

/* month bars + heatmap */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bars i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: var(--accent); min-height: 3px; }
.bars span { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.bars b { font: 600 12px var(--mono); color: var(--dim); }
.heat { display: grid; grid-template-columns: 44px repeat(9, 1fr); gap: 5px; align-items: center; }
.heat .h { font-size: 11.5px; color: var(--faint); text-align: center; }
.heat .d { font-size: 12.5px; color: var(--dim); font-weight: 600; }
.heat .c { aspect-ratio: 1.5 / 1; border-radius: 6px; background: var(--panel-2); display: grid; place-items: center; font: 600 12px var(--mono); color: transparent; }
.heat .c[data-n]:not([data-n="0"]) { color: var(--accent-ink); }

/* drop list */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--dim); font-size: 14px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.search { flex: 1; min-width: 200px; padding: 10px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-size: 15px; }
.drop { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.drop-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 20px; }
.drop-head .date { font-weight: 750; font-size: 16.5px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 7px; border: 1px solid var(--line); color: var(--dim); white-space: nowrap; }
.tag.pre { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.tag.live { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); font-family: var(--mono); }
.tag.oos { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); font-family: var(--mono); }
.drop-items { border-top: 1px solid var(--line); }
.drop-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.drop-item:first-child { border-top: 0; }
.drop-item .n { flex: 1; min-width: 0; font-size: 15px; }
.drop-item .n small { display: block; color: var(--faint); font-size: 12.5px; }
.drop-item .t { display: flex; gap: 6px; flex: none; }
@media (max-width: 560px) { .drop-item { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* list rows (setup, cards) */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.row-main { display: flex; align-items: center; gap: 16px; padding: 18px 20px; width: 100%; text-align: left; background: none; border: 0; color: inherit; font: inherit; }
button.row-main { cursor: pointer; }
.row-ico { flex: none; width: 44px; height: 44px; border-radius: 11px; object-fit: cover; background: var(--panel-2); display: grid; place-items: center; font-weight: 800; color: var(--dim); }
.row-body { flex: 1; min-width: 0; }
.row-body h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row-body p { color: var(--dim); font-size: 15px; margin-top: 2px; }
.pill { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--panel-2); color: var(--dim); letter-spacing: .02em; }
.pill.best { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 560px) { .row-main { flex-wrap: wrap; } .row-main .btn { width: 100%; justify-content: center; } }

/* card hit rates */
.rate { flex: none; width: 190px; display: flex; align-items: center; gap: 12px; }
.rate .track { flex: 1; height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.rate .track i { display: block; height: 100%; border-radius: 99px; background: var(--accent); width: 0; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.rate .num { width: 44px; text-align: right; font-weight: 700; font-size: 16px; }
.row.low .rate .track i { background: var(--faint); }
.caret { flex: none; color: var(--faint); transition: transform .2s ease; }
.row[open-state="1"] .caret { transform: rotate(180deg); }
.row-more { display: none; padding: 0 20px 20px 80px; }
.row[open-state="1"] .row-more { display: block; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.facts .k { font-size: 12px; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.facts .v { font-weight: 650; margin-top: 2px; }
.bin { font-family: var(--mono); letter-spacing: .06em; }
.bin .mask { color: var(--faint); }
@media (max-width: 700px) { .rate { width: 120px; } .row-more { padding-left: 20px; } .facts { grid-template-columns: 1fr; } }
.lock { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: var(--radius); padding: 18px 20px; margin-top: 18px; }
.lock p { flex: 1; min-width: 220px; font-size: 15px; }

/* ACO page */
.switch { display: inline-flex; align-self: flex-start; margin-top: 6px; padding: 4px; gap: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.switch button { padding: 9px 16px; border-radius: 9px; border: 0; background: none; color: var(--dim); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.feature h3 { margin-bottom: 6px; }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li { list-style: none; counter-increment: s; display: flex; gap: 16px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 700 14px var(--mono); }
.steps { padding: 0; margin: 0; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.figures .num { font-size: clamp(30px, 4.6vw, 44px); font-weight: 700; color: var(--accent); }
@media (max-width: 700px) { .figures { grid-template-columns: 1fr; } }

.soon { opacity: .75; }
.soon .pill { margin-left: auto; }
.note { font-size: 13.5px; color: var(--faint); }
.callout { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; color: var(--dim); max-width: 62ch; }
.callout b { color: var(--ink); }

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 44px; color: var(--faint); font-size: 13.5px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.site-foot a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* breakdown under a setup row */
.points { list-style: none; margin: 0; padding: 0 20px 18px 80px; display: grid; gap: 7px; }
.points li { position: relative; padding-left: 18px; color: var(--dim); font-size: 15px; }
.points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.points li b { color: var(--ink); font-weight: 650; }
@media (max-width: 700px) { .points { padding-left: 20px; } }
.tag.won { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); font-weight: 700; }

/* members-only rows on the hit rates page */
a.row.locked { display: block; border-style: dashed; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
a.row.locked:hover { border-color: var(--accent); }
.row.locked .blur { filter: blur(6px); user-select: none; }
.row.locked .rate .track i { background: repeating-linear-gradient(135deg, var(--accent) 0 6px, color-mix(in srgb, var(--accent) 55%, transparent) 6px 12px); }
.row.locked .caret { font-size: 13px; }
