/* Swipebatball — Real Cricket™ Swipe editorial site */
:root {
  --bg: #ffffff;
  --surface: #f7faf8;
  --text: #1a1f1c;
  --muted: #5c6b63;
  --border: #e2ebe6;
  --accent: #1b7f4a;
  --accent-dark: #0d4d2e;
  --accent-soft: #e8f4ee;
  --shadow: 0 8px 32px rgba(13, 77, 46, 0.08);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.02rem;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent-dark);
}

.brand img {
  width: 40px;
  height: 40px;
}

nav.primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  justify-content: flex-end;
}

nav.primary a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.25rem 0;
}

nav.primary a:hover,
nav.primary a.active {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.btn-play img {
  height: 52px;
  width: auto;
}

.btn-outline {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border: 2px solid var(--accent);
  color: var(--accent-dark);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-outline:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.btn-solid {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-solid:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 3rem 0 3.5rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 55%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero-shot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Sections */
section.block {
  padding: 3rem 0;
}

section.block.alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

h2.section-title {
  font-size: 1.65rem;
  margin: 0 0 0.5rem;
}

p.section-sub {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 62ch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery a,
.gallery figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* Two column */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Lists */
.checklist {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.checklist li {
  margin-bottom: 0.5rem;
}

/* Quotes / reviews */
.quote-card {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  background: var(--surface);
  margin-bottom: 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-card cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
}

/* Forms */
form.stacked label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

form.stacked input,
form.stacked textarea,
form.stacked select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 1rem;
  background: #fff;
}

form.stacked textarea {
  min-height: 140px;
  resize: vertical;
}

.hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* Comments */
.comment-thread {
  max-width: 720px;
}

.comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.comment .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2rem;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1.5rem;
  max-width: 70ch;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: 0.92rem;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-cookie {
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: #fff;
}

.btn-cookie.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Legal prose */
.legal {
  max-width: 720px;
}

.legal h1 {
  font-size: 1.85rem;
}

.legal h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 0.98rem;
}

.legal ul {
  padding-left: 1.25rem;
}

/* Page hero small */
.page-hero {
  padding: 2.5rem 0 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.data-table th {
  background: var(--surface);
}

/* Utility */
.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
