/* girlhoop.com — design system
   Palette draws from hardwood, court lines, leather, and the orange of the ball.
   Type pairs a confident editorial serif display with a grounded geometric body. */

:root {
  --ink: #14100d;
  --ink-2: #2a221c;
  --paper: #f7f1e6;
  --paper-2: #efe6d4;
  --line: #1a1613;
  --hardwood: #b8742a;
  --hardwood-dark: #8a4f14;
  --ball: #e8622c;
  --court: #d9a86a;
  --court-line: #fafafa;
  --accent: #d4145a;
  --accent-2: #7a1345;
  --muted: #6b5d4e;
  --gold: #d9b15f;
  --shadow: 0 30px 60px -30px rgba(20,16,13,.35);
  --grid: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-2); text-decoration: none; border-bottom: 1px solid rgba(212,20,90,.3); transition: border .15s, color .15s; }
a:hover { color: var(--accent); border-bottom-color: var(--accent); }

h1, h2, h3, h4 {
  font-family: "Fraunces", "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 .5em 0;
}
h1 { font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 700; font-style: italic; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; }
h4 { font-size: 1.1rem; font-family: "Inter", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--hardwood-dark); }

.display-serif { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 600; }
.mono-tag { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--hardwood-dark); }

.container { max-width: var(--grid); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* ------ Top nav ------ */
.topbar {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  position: static;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem clamp(1.25rem, 4vw, 3rem);
  max-width: 1440px; margin: 0 auto;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900; font-style: italic;
  font-size: 1.55rem; letter-spacing: -.03em;
  color: var(--ink); border: none;
  display: inline-flex; align-items: center; gap: .5rem;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f4884a, #c44e18 70%);
  position: relative; box-shadow: inset -2px -3px 0 rgba(0,0,0,.2);
}
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; background: rgba(20,16,13,.55);
}
.brand-mark::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.brand-mark::after { top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); }
.nav { display: flex; gap: clamp(.75rem, 2vw, 1.6rem); align-items: center; }
.nav a {
  border: none; color: var(--ink-2); font-weight: 500; font-size: .95rem;
  position: relative; padding: .2rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after { transform: scaleX(1); }

/* ------ Hero ------ */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--ink);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 85% 20%, rgba(232,98,44,.18), transparent 60%),
    radial-gradient(ellipse 60% 60% at 10% 90%, rgba(212,20,90,.14), transparent 70%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  z-index: 0;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr .9fr; gap: 3rem; align-items: end; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { margin-top: .3em; }
.hero .kicker { display: flex; gap: .6rem; align-items: center; color: var(--hardwood-dark); }
.hero .kicker::before {
  content: ""; width: 42px; height: 2px; background: var(--hardwood-dark);
}
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 60ch; color: var(--ink-2); margin-top: 1.2rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2rem;
  border-left: 3px solid var(--ball); padding: 0 0 0 1.4rem;
}
.hero-stats .n { font-family: "Fraunces", serif; font-weight: 700; font-style: italic; font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1; color: var(--ball); }
.hero-stats .l { font-size: .88rem; color: var(--ink-2); margin-top: .35rem; text-transform: uppercase; letter-spacing: .08em; }

.court-svg { position: absolute; right: -200px; bottom: -160px; width: 720px; opacity: .08; z-index: 1; pointer-events: none; }

/* ------ Section headers ------ */
.section { padding: clamp(4rem, 7vw, 7rem) 0; border-bottom: 1px solid rgba(20,16,13,.12); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.section-head .eyebrow { font-family: "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; color: var(--hardwood-dark); }
.section-head h2 { max-width: 22ch; }
.section-head .pull { max-width: 34ch; color: var(--ink-2); font-size: 1.05rem; }

/* ------ Cards / grids ------ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fffdf7;
  border: 1px solid rgba(20,16,13,.12);
  padding: 1.4rem 1.4rem 1.5rem;
  transition: transform .15s ease, box-shadow .2s ease, border-color .15s;
  position: relative;
  border-radius: 2px;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--ball); }
.card h3 { margin: .15rem 0 .4rem; }
.card .meta { font-size: .85rem; color: var(--muted); }
.card .tag { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: .2rem .55rem; background: var(--ink); color: var(--paper); border-radius: 2px; font-weight: 600; }

.card.feature { background: var(--ink); color: var(--paper); }
.card.feature h3, .card.feature h4 { color: var(--paper); }
.card.feature .meta { color: rgba(247,241,230,.7); }
.card.feature a { color: var(--gold); border-bottom-color: rgba(217,177,95,.4); }

/* League pill row */
.league-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.league-pill {
  padding: .5rem 1rem; font-size: .85rem;
  background: transparent; border: 1px solid var(--ink);
  border-radius: 999px; color: var(--ink);
  font-weight: 500; transition: all .12s;
}
.league-pill:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.league-pill.active { background: var(--accent); color: var(--paper); border-color: var(--accent); }

/* ------ Team table ------ */
.team-table-wrap { overflow-x: auto; border: 1px solid var(--ink); background: #fffdf7; }
.team-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.team-table th {
  text-align: left; padding: .85rem 1rem; background: var(--ink); color: var(--paper);
  font-family: "Inter", sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; font-size: .75rem;
  cursor: pointer; user-select: none;
}
.team-table th:hover { background: var(--hardwood-dark); }
.team-table td { padding: .75rem 1rem; border-top: 1px solid rgba(20,16,13,.08); vertical-align: middle; }
.team-table tr:hover td { background: rgba(232,98,44,.05); }
.team-table .team-name { font-weight: 600; color: var(--ink); }
.team-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: .45rem; vertical-align: middle;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}

.search-wrap {
  display: flex; gap: .75rem; flex-wrap: wrap; align-items: center;
  margin-bottom: 1rem; padding: 1rem; background: var(--paper-2);
  border: 1px solid var(--ink);
}
.search-wrap input, .search-wrap select {
  padding: .55rem .8rem; font: inherit; font-size: .95rem;
  border: 1px solid var(--ink); background: #fff; color: var(--ink);
}
.search-wrap input { flex: 1; min-width: 220px; }
.search-wrap .count { margin-left: auto; font-size: .85rem; color: var(--muted); }

/* ------ CTA / footer ------ */
.cta-band {
  background: var(--ink); color: var(--paper); padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232,98,44,.22), transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(212,20,90,.2), transparent 55%);
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: var(--paper); max-width: 20ch; }
.cta-band a { color: var(--gold); border-bottom-color: rgba(217,177,95,.3); }

.btn {
  display: inline-block; padding: .8rem 1.4rem;
  background: var(--accent); color: var(--paper) !important;
  font-weight: 600; border: none !important;
  text-transform: uppercase; letter-spacing: .08em; font-size: .88rem;
  transition: background .15s;
}
.btn:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--paper) !important; border: 1px solid var(--paper) !important; }
.btn.ghost:hover { background: var(--paper); color: var(--ink) !important; }

footer {
  background: var(--ink); color: rgba(247,241,230,.85);
  padding: 3.5rem 0 2rem;
}
footer h4 { color: var(--paper); }
footer a { color: var(--gold); border: none; }
footer a:hover { color: var(--ball); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; font-size: .95rem; }
.footer-bottom {
  border-top: 1px solid rgba(247,241,230,.12);
  padding-top: 1.5rem; font-size: .85rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  color: rgba(247,241,230,.6);
}

/* ------ Timeline / list strips ------ */
.strip {
  display: grid; grid-template-columns: 160px 1fr auto; gap: 1.5rem;
  padding: 1.3rem 0; border-bottom: 1px solid rgba(20,16,13,.12); align-items: start;
}
.strip:last-child { border-bottom: none; }
.strip .year { font-family: "Fraunces", serif; font-weight: 700; font-style: italic; font-size: 1.8rem; color: var(--ball); line-height: 1; }
.strip .body h3 { margin-bottom: .2rem; }
.strip .body p { margin: .2rem 0; color: var(--ink-2); }
.strip .side { color: var(--muted); font-size: .85rem; text-align: right; }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr; } .strip .side { text-align: left; } }

/* ------ Decorative divider: court lines ------ */
.court-div {
  height: 60px; position: relative; overflow: hidden;
  background: var(--paper-2);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.court-div svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ------ Utilities ------ */
.u-spacer-sm { height: 1.5rem; } .u-spacer { height: 3rem; } .u-spacer-lg { height: 5rem; }
.u-center { text-align: center; }
.u-muted { color: var(--muted); }
.u-small { font-size: .88rem; }
.u-bordered-top { border-top: 1px solid var(--ink); }
.chip {
  display: inline-block; padding: .22rem .55rem;
  background: var(--paper-2); color: var(--ink-2);
  font-size: .78rem; font-weight: 500;
  border: 1px solid rgba(20,16,13,.2);
  border-radius: 999px;
}
