/* Stroud Bridge Club: one shared stylesheet for every page.
   Colours are set once, just below. Change them here and the whole site follows. */
:root {
  --green: #1d4a38;        /* bridge-table green */
  --green-deep: #143427;
  --felt: #e9f0ea;         /* pale green panels */
  --cream: #faf8f3;        /* page background */
  --ink: #1c2420;          /* body text */
  --muted: #55605a;
  --red: #a6232a;          /* card red: buttons */
  --red-dark: #861a20;
  --line: #d8ddd7;
  --radius: 10px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid #e0a82e; outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 700; color: var(--green-deep); margin: 0 0 0.6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }

.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink); padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--green); color: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 0.18); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.7rem; }
.brand { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; }
.brand:hover { color: #fff; }
.suit { color: #fff; margin-right: 0.15em; }
.site-header nav ul { display: flex; flex-wrap: wrap; gap: 0.1rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: #fff; text-decoration: none; font-size: 0.97rem; padding: 0.3rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-header nav a:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--red); color: #fff; text-decoration: none; font: 600 1rem/1 var(--sans);
  padding: 0.95rem 1.6rem; border: 0; border-radius: 999px; cursor: pointer;
}
.btn:hover { background: var(--red-dark); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--green-deep); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgb(10 36 26 / 0.92) 0%, rgb(10 36 26 / 0.78) 55%, rgb(10 36 26 / 0.45) 100%); }
.hero-inner { position: relative; z-index: 2; padding-block: clamp(3rem, 8vw, 6rem); max-width: 46rem; margin-left: max(1.25rem, calc((100% - 1120px) / 2)); }
.hero h1 { color: #fff; }
.hero a { color: #fff; }
.hero a.btn:hover { color: #fff; }
.lead { font-family: var(--serif); font-size: 1.5rem; }

/* ---------- sections ---------- */
.section { padding-block: clamp(2.8rem, 6vw, 4.5rem); }
.tint { background: var(--felt); }
.two-col { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .two-col { grid-template-columns: 5fr 6fr; gap: 3.5rem; } }
.photo { margin: 0; }
.photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 6px 20px rgb(0 0 0 / 0.15); }

/* ---------- calendar ---------- */
.calendar { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.calendar li { display: grid; gap: 0.1rem 1.2rem; grid-template-columns: 1fr; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .calendar li { grid-template-columns: 16rem 1fr; } }
.when { color: var(--green-deep); }

/* ---------- session cards ---------- */
.cards { display: grid; gap: 1.6rem; grid-template-columns: 1fr; margin-top: 1.8rem; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body p:last-child { margin: auto 0 0; padding-top: 0.6rem; }

/* ---------- results list ---------- */
.results-wrap { margin-bottom: 2rem; align-items: center; }
.results { list-style: none; margin: 0; padding: 0; columns: 2 24rem; column-gap: 3rem; }
.results li { break-inside: avoid; padding: 0.55rem 0; border-bottom: 1px solid #c9d3cb; }
.results a + a { margin-left: 0.9rem; }

/* ---------- contact form ---------- */
.contact-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; padding: 0.8rem 0.9rem; border: 1px solid #9aa59d; border-radius: 8px; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid #e0a82e; outline-offset: 0; border-color: var(--green); }
.req { color: var(--red); }
.hp { position: absolute; left: -9999px; }

/* ---------- inner pages ---------- */
.page-banner { position: relative; background: var(--green-deep); color: #fff; min-height: 14rem; display: flex; align-items: flex-end; overflow: hidden; }
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgb(10 36 26 / 0.88), rgb(10 36 26 / 0.35)); }
.page-banner .container { position: relative; z-index: 2; padding-block: 2.2rem; }
.page-banner h1 { color: #fff; margin: 0; }
.plain { list-style: none; padding: 0; margin: 0 0 1em; }
.plain li { padding: 0.15rem 0; }
.note { color: var(--muted); font-style: italic; }
.lead-dark { font-family: var(--serif); font-size: 1.25rem; color: var(--muted); }

.top-ten { counter-reset: place; list-style: none; padding: 0; margin: 0 0 2.5rem; }
.top-ten li { counter-increment: place; display: flex; align-items: baseline; gap: 0.9rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.top-ten li::before { content: counter(place); font: 700 1.2rem var(--serif); color: var(--red); min-width: 1.8rem; }
.top-ten .pair { flex: 1; }
.top-ten .score { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--green-deep); }
.two-photos { display: grid; gap: 1.6rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 700px) { .two-photos { grid-template-columns: 1fr 1fr; } }
.two-photos figure { margin: 0; }
.two-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.two-photos figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.98rem; }

.policy h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.policy h2 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: 0.4em; }
.policy ul { padding-left: 1.3rem; }
.policy li { margin-bottom: 0.6rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--green); color: #e9f0ea; padding-block: 2.2rem; text-align: center; }
.site-footer p { margin: 0.2rem 0; }
.site-footer a { color: #fff; }
.brand-foot { font-family: var(--serif); font-size: 1.3rem; color: #fff; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
