/* Basketball Playbooks — draft site, mobile-first */
:root {
  --ink: #16130f;
  --ink-soft: #2a261f;
  --paper: #f4efe6;
  --card: #fffdf8;
  --rule: #d8d0c4;
  --muted: #5e584e;
  --accent: #9c1c14;
  --accent-hover: #7a140e;
  --marker: #c44b1a;
  --court: #1e3a2f;
  --shadow: 0 1px 2px rgba(22, 19, 15, 0.06), 0 10px 28px rgba(22, 19, 15, 0.06);
  --radius: 16px;
  --max: 1120px;
  --font: "Instrument Sans", "Segoe UI", sans-serif;
  --serif: "Fraunces", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.draft-banner {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.55rem 1rem;
}
.draft-banner strong { color: #f3c9a4; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
}
.logo .mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.logo .sub { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

nav.desk { display: none; }
nav.desk ul {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.desk a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
nav.desk a[aria-current="page"], nav.desk a:hover { color: var(--accent); }

.menu { display: block; }
.menu summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
}
.menu summary::-webkit-details-marker { display: none; }
.menu ul {
  position: absolute;
  right: 1rem;
  margin: 0.4rem 0 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 200px;
}
.menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
}
.menu a:hover, .menu a[aria-current="page"] { background: var(--paper); color: var(--accent); }

.hero {
  padding: 1.75rem 0 2rem;
  display: grid;
  gap: 1.25rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
h1 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: clamp(1.85rem, 6.4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.8rem;
}
.lede { font-size: 1.08rem; color: var(--ink-soft); margin: 0 0 1.15rem; max-width: 40rem; }
.updated { font-size: 0.82rem; color: var(--muted); margin: 0 0 1rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.hero-media, .figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #d7cbb8;
  box-shadow: var(--shadow);
}
.hero-media img, .figure img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.caption {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.45rem 0.7rem 0.6rem;
  background: var(--card);
}

.section { padding: 2rem 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.section .intro { color: var(--ink-soft); max-width: 42rem; margin: 0 0 1.2rem; }

.grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem 1.15rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
}
a.card:hover { border-color: #c9b9a4; }
.card h3 { margin: 0; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .kicker { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.card .more { margin-top: auto; padding-top: 0.55rem; font-weight: 600; color: var(--accent); font-size: 0.9rem; }

.prose { max-width: 42rem; }
.prose h2 { margin: 1.6rem 0 0.5rem; }
.prose h3 { margin: 1.2rem 0 0.4rem; font-size: 1.08rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 0.85rem; }
.prose ul, .prose ol { padding-left: 1.15rem; }
.prose li { margin: 0 0 0.35rem; }
.prose strong { font-weight: 650; }

.placeholder {
  border: 2px dashed #c4b39a;
  background:
    repeating-linear-gradient(-45deg, rgba(30,58,47,0.04), rgba(30,58,47,0.04) 8px, transparent 8px, transparent 16px);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin: 1rem 0 1.25rem;
}
.placeholder .label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--court);
  margin-bottom: 0.35rem;
}
.placeholder p { margin: 0 0 0.4rem; color: var(--ink-soft); }
.placeholder p:last-child { margin-bottom: 0; color: var(--muted); font-size: 0.9rem; }

.note {
  background: #efe6d6;
  border-left: 3px solid var(--marker);
  padding: 0.8rem 1rem;
  border-radius: 0 12px 12px 0;
  margin: 1rem 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.note a { font-weight: 600; }

.faq details {
  border-top: 1px solid var(--rule);
  padding: 0.75rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
.faq details p { margin: 0.5rem 0 0.2rem; color: var(--ink-soft); }

.crumbs { font-size: 0.85rem; color: var(--muted); margin: 1rem 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
  background: #ece5d8;
  padding: 2rem 0 2.4rem;
  font-size: 0.92rem;
}
.foot-grid { display: grid; gap: 1.3rem; }
.site-footer h2 { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 0.45rem; color: var(--muted); }
.site-footer h2 + ul + h2 { margin-top: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.3rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.legal { margin-top: 1.4rem; color: var(--muted); font-size: 0.8rem; }

@media (min-width: 720px) {
  .menu { display: none; }
  nav.desk { display: block; }
  .hero { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding: 2.4rem 0 2.6rem; gap: 2rem; }
  .grid-2, .grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1.3fr 1fr 1.2fr; }
  .hero-wide { grid-template-columns: 1fr; }
  .hero-wide .hero-copy { max-width: 40rem; }
  .hero-wide .hero-media { max-height: 420px; }
  .hero-wide .hero-media img { aspect-ratio: 21/8; }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  body { font-size: 1.06rem; }
}

@media (max-width: 374px) {
  .wrap { width: min(var(--max), calc(100% - 1.4rem)); }
  h1 { font-size: 1.7rem; }
}
