/* RacquetVenues — parent homepage
   (Header styles live inside the <rv-header> web component’s shadow DOM —
    see rv-header.js. Keep this file scoped to host-page layout only.) */

:root {
  --paper:   #f7f5f0;
  --paper-2: #ece9e1;
  --paper-3: #e2dfd5;
  --ink:     #1a1a1a;
  --ink-2:   #3a3a38;
  --ink-3:   #6e6b63;
  --ink-4:   #9d9a91;
  --line:    #1a1a1a;
  --line-2:  #d4d0c5;
  --line-3:  #e8e5dc;

  --tennis:    #d4e157;
  --pickle:    #c6ec3f;
  --padel:     #5ed6c9;
  --squash:    #ef6a5a;
  --badminton: #b290ff;

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Reserve header height (avoid layout shift) and give the component its own
   stacking context so the dropdown always renders above page content. */
rv-header {
  display: block;
  position: relative;
  z-index: 1050;
  min-height: 59px;
  border-bottom: 1px solid var(--line-2);
  background: var(--paper);
}
rv-header:defined { border-bottom: none; min-height: 0; }

/* ---------- hero ---------- */
.p-hero {
  padding: 32px 40px 20px;
  display: grid;
  gap: 14px;
  max-width: 900px;
}
.p-hero .eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.p-hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 72px; line-height: 0.98;
  margin: 0;
  letter-spacing: -0.015em;
}
.p-hero h1 em { font-style: italic; color: var(--ink-3); }
.p-hero .lede {
  font-size: 16px; color: var(--ink-2);
  max-width: 540px;
  margin: 0;
}

/* ---------- 5-card funnel ---------- */
.funnel-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 24px 40px 48px;
}
.funnel-grid-5 .card {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--paper);
  padding: 18px 16px 16px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 260px;
  min-width: 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s, border-color 0.15s;
  overflow: hidden;
}
.funnel-grid-5 .card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}
.funnel-grid-5 .card.soon {
  cursor: default;
  opacity: 0.55;
}
.funnel-grid-5 .card.soon:hover {
  transform: none;
  border-color: var(--line-2);
}
.funnel-grid-5 .card .badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
}
.funnel-grid-5 .card .ic {
  width: 56px; height: 56px;
  object-fit: contain;
  display: block;
}
.funnel-grid-5 .card .body {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.funnel-grid-5 .card .n {
  font-family: var(--font-display);
  font-size: 26px; line-height: 1;
}
.funnel-grid-5 .card .n em {
  font-style: italic;
  color: var(--ink-3);
  font-size: 0.7em;
}
.funnel-grid-5 .card .url {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.funnel-grid-5 .card .cta {
  margin-top: 10px;
  font-size: 12px; color: var(--ink-3);
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-3);
  padding-top: 10px;
}

@media (max-width: 1100px) {
  .funnel-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .funnel-grid-5 {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 16px 24px;
  }
  .funnel-grid-5 .card {
    flex-direction: row;
    align-items: center;
    min-height: 0;
    padding: 14px 14px 14px 12px;
    border-radius: 12px;
    gap: 12px;
  }
  .funnel-grid-5 .card .ic {
    width: 40px; height: 40px;
    flex-shrink: 0;
  }
  .funnel-grid-5 .card .body {
    margin-top: 0;
    flex: 1;
    min-width: 0;
  }
  .funnel-grid-5 .card .n { font-size: 20px; }
  .funnel-grid-5 .card .cta {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
    flex: 0 0 auto;
  }
  .funnel-grid-5 .card .cta span:first-child { display: none; }
  .funnel-grid-5 .card .cta span:last-child { font-size: 18px; }
}

@media (max-width: 720px) {
  .p-hero {
    padding: 22px 18px 8px;
  }
  .p-hero h1 { font-size: 40px; }
  .p-hero .eyebrow { font-size: 10px; letter-spacing: 0.12em; }
  .p-hero .lede { font-size: 13px; }
}

/* ---------- prose (About, etc.) ---------- */
.prose {
  max-width: 720px;
  padding: 8px 40px 56px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}
.prose p { margin: 0 0 1em; }
.prose a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-4);
  padding-bottom: 1px;
}
.prose a:hover { border-bottom-color: var(--ink); }
.prose h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 2em 0 0.6em;
}
.prose ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}
.prose ul li {
  margin-bottom: 0.35em;
}
.prose .prose-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.5em;
}
.prose .prose-note {
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 1.5em;
}
.prose .prose-note strong {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-right: 6px;
}
@media (max-width: 720px) {
  .prose {
    padding: 8px 18px 40px;
    font-size: 15px;
  }
}

/* ---------- footer ---------- */
.foot {
  padding: 36px 40px 18px;
  border-top: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--ink-2);
}

.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-3);
  margin-bottom: 16px;
}

.foot-brand .foot-logo {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  display: inline-block;
}
.foot-brand .foot-logo em {
  font-style: italic;
  color: var(--ink-3);
}
.foot-brand .foot-tag {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
  max-width: 320px;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.foot-head {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.foot-col a,
.foot-col .foot-soon {
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.3;
}
.foot-col a:hover { color: var(--ink); }
.foot-col .foot-soon { color: var(--ink-4); }
.foot-col .foot-sub {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.4;
  margin-top: 2px;
}
.foot-col .foot-soon em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  vertical-align: 1px;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.foot-bottom a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-4);
  padding-bottom: 1px;
}
.foot-bottom a:hover { color: var(--ink); border-bottom-color: var(--ink); }

@media (max-width: 720px) {
  .foot { padding: 24px 18px 16px; }
  .foot-top {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 18px;
    margin-bottom: 12px;
  }
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
