/* The Band Research - single stylesheet */
:root {
  --bg: #161517;
  --bg-2: #1f1d21;
  --surface: #26232a;
  --line: #3a3640;
  --text: #f3eee7;
  --muted: #c9c1b7;
  --accent: #ff6f4f;
  --accent-strong: #ff8a6e;
  --accent-ink: #1a1012;
  --mustard: #ffc24b;
  --radius: 10px;
  --wrap: 72rem;
  --read: 44rem;
  --display: "Archivo Black", "Arial Black", Impact, system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent-strong); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { color: var(--mustard); }

:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--mustard);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 1.5rem; } }

/* Header */
.site-header {
  border-bottom: 4px solid var(--accent);
  background: var(--bg-2);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.brand svg { width: 2rem; height: 2rem; flex: none; }
.brand:hover { color: var(--accent-strong); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.4rem 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
}
.site-nav a:hover { background: var(--surface); color: var(--mustard); }
.site-nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

/* Main */
main { display: block; padding-bottom: 4rem; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 6.5vw, 3.6rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  hyphens: auto;
}
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  margin-top: 2.2em;
}
h3 { font-size: 1.2rem; margin-top: 1.6em; color: var(--mustard); }
p, ul, ol { margin: 0 0 1.1em; }
li { margin-bottom: 0.4em; }
strong { color: #fff; }

.lede { font-size: 1.2rem; color: var(--muted); max-width: var(--read); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(-45deg, rgba(255,111,79,0.07) 0 14px, transparent 14px 28px),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0 3.25rem;
}
.hero .kicker,
.kicker {
  display: inline-block;
  background: var(--mustard);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  margin-bottom: 1rem;
  transform: rotate(-1.5deg);
}
.hero h1 { max-width: 16ch; }
.hero h1 .hl { color: var(--accent); }
.hero .lede { color: var(--text); }
.hero-wave { display: block; width: 100%; max-width: 34rem; margin-top: 1.5rem; color: var(--accent); }

.page-head { padding: 2.5rem 0 1rem; }
.page-head .lede { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  margin: 0.25rem 0.5rem 0.25rem 0;
}
.btn:hover { background: var(--mustard); border-color: var(--mustard); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--mustard); color: var(--mustard); background: transparent; }

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1.1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.card:nth-child(even) { border-top-color: var(--mustard); }
.card .num {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  color: var(--line);
  margin-bottom: 0.5rem;
}
.card h2, .card h3 { font-size: 1.2rem; margin: 0 0 0.5rem; color: var(--text); font-family: var(--body); font-weight: 800; }
.card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.card a.stretch { color: var(--text); text-decoration: none; }
.card a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card a.stretch:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--mustard); outline-offset: 3px; }
.card:hover { border-color: var(--accent); }
.card .more { font-weight: 700; color: var(--accent-strong); font-size: 0.95rem; }

/* Sections */
.section { padding-top: 1rem; }
.section > h2:first-child { margin-top: 1.6em; }

.path {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  max-width: var(--read);
}
.path li {
  counter-increment: step;
  position: relative;
  padding: 0.9rem 1rem 0.9rem 3.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
}
.path li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 0.85rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

/* Article */
.article { max-width: var(--read); }
.article ul, .article ol { padding-left: 1.3rem; }

.breadcrumb { padding-top: 1.5rem; font-size: 0.9rem; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--text); }

.meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.5rem; }

ol.steps { counter-reset: s; list-style: none; padding-left: 0; }
ol.steps > li {
  counter-increment: s;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 0.9rem;
}
ol.steps > li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

ul.checklist { list-style: none; padding-left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 0.6rem; }
ul.checklist li { position: relative; padding-left: 2rem; }
ul.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--mustard);
  border-radius: 3px;
}
ul.checklist li::after {
  content: "";
  position: absolute;
  left: 0.38rem;
  top: 0.42em;
  width: 0.35rem;
  height: 0.65rem;
  border: solid var(--mustard);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

ol.timeline { list-style: none; padding-left: 0; border-left: 3px solid var(--accent); margin-left: 0.5rem; }
ol.timeline > li { position: relative; padding: 0 0 0.9rem 1.4rem; }
ol.timeline > li::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 0.45em;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--mustard);
}
ol.timeline .when { display: block; font-weight: 800; color: var(--mustard); }

.takeaways {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 0.5rem;
  margin: 2.5rem 0;
  box-shadow: 6px 6px 0 var(--mustard);
}
.takeaways h2 { margin-top: 0; font-size: 1.4rem; color: var(--accent-ink); }
.takeaways ul { padding-left: 1.2rem; }
.takeaways strong { color: var(--accent-ink); }

.note {
  border-left: 4px solid var(--mustard);
  background: var(--surface);
  padding: 0.9rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

.related { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 0.5rem; }
.related h2 { font-size: 1.3rem; }
.related .grid { margin-top: 0.75rem; }

.big-email { font-size: clamp(1.1rem, 4.5vw, 1.5rem); font-weight: 800; }

/* Footer */
.site-footer {
  border-top: 4px solid var(--accent);
  background: var(--bg-2);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .disclaimer { max-width: var(--read); }
.footer-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer-links a { color: var(--text); font-weight: 600; }
.footer-links a:hover { color: var(--mustard); }
.copyright { margin: 0; }

/* 404 */
.notfound { text-align: left; padding-top: 3rem; }
.notfound .code {
  font-family: var(--display);
  font-size: clamp(4rem, 22vw, 9rem);
  line-height: 1;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

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