/* ===== TSS — The Shuffleboard Society ===== */

:root {
  --navy: #0b1f3a;
  --navy-deep: #071427;
  --off-white: #f6f3ec;
  --paper: #fffdf8;
  --accent: #e2863d;
  --accent-deep: #c76b28;
  --rope: #c9a574;
  --text: #12203a;
  --muted: #5b6b82;
  --muted-light: #93a2b8;
  --border: #dfe3ea;
  --max-w: 1140px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--muted); }

a { color: inherit; text-decoration: none; }

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

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 31, 58, 0.96);
  backdrop-filter: blur(6px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--off-white);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text .full-name {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--off-white);
}

.brand-text .tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--off-white);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.main-nav a:hover,
.main-nav a.active { opacity: 1; color: var(--accent); }

.nav-toggle { display: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-accent {
  background: var(--accent);
  color: var(--navy-deep);
}
.btn-accent:hover { background: var(--accent-deep); color: var(--off-white); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--off-white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--off-white); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--off-white);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(226,134,61,0.18), transparent 55%);
  pointer-events: none;
}

.hero h1 { color: var(--off-white); }

.hero .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero p.lede {
  color: var(--muted-light);
  font-size: 1.15rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--off-white);
  padding: 64px 0 48px;
}
.page-hero h1 { color: var(--off-white); }
.page-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
}
.page-hero p { color: var(--muted-light); max-width: 640px; }

/* ---- Countdown ---- */
.countdown {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.countdown .unit {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 88px;
  text-align: center;
}
.countdown .num {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.countdown .label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
}

/* ---- Sections ---- */
section { padding: 72px 0; }
section.alt { background: var(--paper); }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--accent-deep);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

/* ---- Stat grid ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.stat-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-card .value {
  font-family: "Fraunces", serif;
  font-size: 2.1rem;
  color: var(--navy);
  font-weight: 700;
}
.stat-card .label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Card grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .card-body { padding: 22px; }

/* ---- Placeholder photo/asset ---- */
.placeholder-media {
  aspect-ratio: 4 / 3;
  width: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(11,31,58,0.05), rgba(11,31,58,0.05) 10px, rgba(11,31,58,0.02) 10px, rgba(11,31,58,0.02) 20px);
  border: 2px dashed var(--muted-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  text-align: center;
  padding: 16px;
}
.placeholder-media .icon { font-size: 1.6rem; opacity: 0.6; }
.placeholder-media .msg { font-size: 0.82rem; font-weight: 600; max-width: 220px; }

.placeholder-media.wide { aspect-ratio: 16 / 7; }
.placeholder-media.square { aspect-ratio: 1 / 1; }
.placeholder-media.logo { aspect-ratio: 3 / 1; }

/* ---- TODO tag ---- */
.todo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff3e6;
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.todo::before { content: "◇"; }

.todo-block {
  border: 1px dashed var(--accent);
  background: #fff8f0;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0;
  color: var(--accent-deep);
  font-size: 0.92rem;
}
.todo-block strong { color: var(--accent-deep); }

/* ---- Team ---- */
.person-name { margin-bottom: 2px; }
.person-role {
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  display: block;
}

/* ---- Timeline (route) ---- */
.route-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0;
  position: relative;
}
.route-line::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--rope), var(--rope) 8px, transparent 8px, transparent 16px);
  z-index: 0;
}
.route-point {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}
.route-point .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--accent);
  margin: 0 auto 12px;
}
.route-point .place { font-weight: 700; color: var(--navy); }
.route-point .sub { font-size: 0.82rem; color: var(--muted); }

/* ---- Sponsor tiers ---- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.tier-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  border-top: 4px solid var(--tier-color, var(--accent));
}
.tier-card h3 { margin-bottom: 4px; }
.tier-card .price {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}
.tier-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.tier-card li {
  padding: 6px 0;
  border-top: 1px solid var(--border);
}
.tier-card li:first-child { border-top: none; }

/* ---- Charity blocks ---- */
.charity-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.charity-block:last-child { border-bottom: none; }

/* ---- Newsletter / CTA band ---- */
.cta-band {
  background: var(--navy);
  color: var(--off-white);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { color: var(--off-white); }
.cta-band p { color: var(--muted-light); }

.form-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.form-row input[type="email"] {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  min-width: 260px;
  font-size: 0.95rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-deep);
  color: var(--muted-light);
  padding: 56px 0 28px;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 {
  color: var(--off-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--muted-light); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}
.social-row a:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Updates / blog ---- */
.post-card .card-body .date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-deep);
  font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .charity-block { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
    background: none;
    border: none;
    color: var(--off-white);
    font-size: 1.5rem;
    cursor: pointer;
  }
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .route-line { flex-direction: column; gap: 28px; }
  .route-line::before { display: none; }
}
