/* ============================================
   WE PLAY PICKLEBALL — shared styles
   Palette pulled from the court itself:
   deep court blue, chalk line white, optic-yellow
   ball, a rust-clay accent for morning light.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;900&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --court:  #143B4A;   /* deep court blue */
  --court-2:#0E2C38;   /* darker court shade, for depth */
  --chalk:  #F4F1E6;   /* chalk line white */
  --optic:  #D7DF23;   /* optic ball yellow-green */
  --clay:   #C4592B;   /* morning rust-clay accent */
  --ink:    #1B211C;   /* near-black text */
  --line:   #7C8A80;   /* muted sage line/secondary text */

  --display: 'Big Shoulders Display', sans-serif;
  --body: 'Source Serif 4', serif;
  --mono: 'IBM Plex Mono', monospace;

  --max: 880px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Eyebrow / score-call labels ----
   Pickleball servers call the score before every serve
   ("0-0-2" style). We borrow that cadence as a structural
   device for section labels throughout the site. */
.call {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 10px;
}

/* ---- Header / nav ---- */
.site-header {
  background: var(--court);
  color: var(--chalk);
  border-bottom: 4px solid var(--optic);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--chalk);
}
.logo span { color: var(--optic); }
.site-nav a {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--chalk);
  margin-left: 24px;
  opacity: 0.85;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: opacity .15s, border-color .15s;
}
.site-nav a:hover,
.site-nav a:focus-visible { opacity: 1; border-color: var(--optic); }
.site-nav a.current { border-color: var(--optic); opacity: 1; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(180deg, var(--court) 0%, var(--court-2) 100%);
  color: var(--chalk);
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* faint court-line motif */
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(244,241,230,0.05) 118px 120px);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(40px, 8vw, 74px);
  line-height: 0.98;
  margin: 0 0 20px;
  max-width: 11ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--optic);
}
.hero p.lede {
  font-family: var(--body);
  font-size: 20px;
  max-width: 46ch;
  color: rgba(244,241,230,0.88);
  margin: 0 0 32px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 12px 20px;
  border: 2px solid var(--optic);
  color: var(--optic);
  transition: background .15s, color .15s;
}
.btn:hover, .btn:focus-visible { background: var(--optic); color: var(--court-2); }
.btn.solid { background: var(--optic); color: var(--court-2); }
.btn.solid:hover { background: var(--chalk); border-color: var(--chalk); }

/* ---- Section rhythm ---- */
section { padding: 64px 0; }
h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(28px, 4.5vw, 40px);
  margin: 0 0 28px;
  letter-spacing: 0.01em;
}
.section-alt { background: var(--court); color: var(--chalk); }
.section-alt .call { color: var(--optic); }

/* ---- Journey / about ---- */
.journey p { max-width: 62ch; }
.journey p + p { margin-top: 16px; }

/* ---- Tally scorecard (signature element) ----
   A hand-scored session log, styled like chalk tally
   marks on a court-side clipboard. */
.tally {
  margin-top: 40px;
  border: 1px solid rgba(244,241,230,0.25);
}
.tally-row {
  display: grid;
  grid-template-columns: 110px 1fr 90px;
  gap: 16px;
  align-items: baseline;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(244,241,230,0.15);
  font-family: var(--mono);
  font-size: 14px;
}
.tally-row:last-child { border-bottom: none; }
.tally-row .date { color: var(--optic); }
.tally-row .note { font-family: var(--body); font-size: 16px; color: var(--chalk); }
.tally-row .result { text-align: right; letter-spacing: 0.05em; color: rgba(244,241,230,0.7); }

/* ---- Blog cards ---- */
.post-grid {
  display: grid;
  gap: 28px;
}
.post-card {
  border-top: 3px solid var(--court);
  padding-top: 18px;
}
.post-card .call { margin-bottom: 6px; }
.post-card h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 24px;
  margin: 0 0 8px;
}
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--clay); }
.post-card p { margin: 0; color: var(--ink); max-width: 60ch; }
.post-card .read-more {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clay);
  text-decoration: none;
}

/* ---- Find me ---- */
.find-me {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.find-me dt {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clay);
  margin: 0 0 4px;
}
.find-me dd { margin: 0 0 20px; font-size: 17px; }

/* ---- Post page ---- */
.post-header {
  background: var(--court);
  color: var(--chalk);
  padding: 56px 0 40px;
}
.post-header h1 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.02;
  margin: 8px 0 0;
}
.post-body { padding: 48px 0 72px; }
.post-body p { max-width: 66ch; margin: 0 0 18px; }
.post-body h2 { font-size: 26px; margin-top: 40px; }
.back-link {
  display: inline-block;
  margin-bottom: 48px;
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--clay);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--court-2);
  color: rgba(244,241,230,0.6);
  padding: 32px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-nav a { margin-left: 0; margin-right: 18px; }
  .find-me { grid-template-columns: 1fr; }
  .tally-row { grid-template-columns: 1fr; gap: 4px; }
  .tally-row .result { text-align: left; }
}

/* ---- Focus states ---- */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}
