/* Redfern Run Club — shared styles */

:root {
  --black: #000000;
  --cream: #FAFAF9;
  --charcoal: #191A1A;
  --orange: #FF6123;
  --ink: #0F0F0E;

  --display: "Anton", "Arial Narrow", sans-serif;
  --body: "Epilogue", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
}

/* Header */

header.site-header {
  background: var(--black);
  padding: 22px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-mark img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .name {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.logo-text .place {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 5px;
}

nav.site-nav {
  display: flex;
  gap: 26px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

nav.site-nav a {
  text-decoration: none;
  color: var(--cream);
  opacity: 0.8;
}

nav.site-nav a:hover { opacity: 1; color: var(--orange); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 32px;
  background: var(--orange);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 0;
  border: 4px solid var(--orange);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: transparent; color: var(--orange); }

.btn.btn-outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn.btn-outline:hover {
  background: var(--orange);
  color: var(--cream);
}

.btn.btn-light {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn.btn-light:hover {
  background: var(--cream);
  color: var(--black);
}

/* Hero */

.hero {
  background: var(--black);
  color: var(--cream);
  padding: 90px 0 70px;
}

.hero .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(40px, 7.2vw, 92px);
  line-height: 0.98;
  margin: 0 0 26px;
  color: var(--orange);
  max-width: 14ch;
}

.hero p.lede {
  font-family: var(--body);
  font-size: 18px;
  max-width: 46ch;
  margin: 0 0 36px;
  color: var(--cream);
  opacity: 0.85;
  text-transform: none;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Ticker */

.ticker {
  background: var(--cream);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 20px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: ticker-scroll 26s linear infinite;
}

.ticker-track span {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(20px, 3.4vw, 34px);
  color: rgba(15, 15, 14, 0.12);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Details section */

.details {
  padding: 88px 0;
}

.details-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
}

.details h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 14ch;
}

.details p.note {
  font-size: 16px;
  max-width: 56ch;
  color: var(--ink);
  margin: 0 0 24px;
}

.details ul.perks {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.details ul.perks li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
}

.details ul.perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.details h3.when-where {
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 12px;
}

.details .when-value {
  font-family: var(--body);
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 4px;
}

.details .where-value {
  font-family: var(--body);
  font-size: 16px;
  opacity: 0.75;
  margin: 0 0 20px;
}

.map-embed {
  border: 0;
  width: 100%;
  height: 220px;
  filter: grayscale(0.4) contrast(1.05);
}

.whats-on h2 {
  color: var(--orange);
  font-size: clamp(22px, 2.8vw, 30px);
  margin-bottom: 16px;
}

.whats-on p {
  font-size: 15px;
  opacity: 0.7;
  max-width: 32ch;
}

/* Community / Stay in the loop */

.community {
  background: var(--charcoal);
  color: var(--cream);
  padding: 80px 0 56px;
  text-align: center;
}

.community h2 {
  color: var(--orange);
  font-size: clamp(30px, 4.4vw, 48px);
  margin: 0 0 18px;
}

.community p {
  max-width: 52ch;
  margin: 0 auto 32px;
  opacity: 0.8;
  font-size: 16px;
}

.community .btn { margin: 0 auto; }

/* Gallery (Elfsight Instagram feed) */

.gallery {
  background: var(--charcoal);
  padding: 56px 0 88px;
}

/* Legal / static pages */

.legal {
  padding: 64px 0 88px;
}

.legal h1 {
  font-size: clamp(30px, 4.6vw, 44px);
  color: var(--ink);
  margin: 0 0 36px;
}

.legal h3 {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  color: var(--ink);
  margin: 30px 0 8px;
}

.legal p {
  margin: 0 0 12px;
  font-size: 15px;
}

.legal strong { color: var(--ink); }

.waiver-frame-wrap {
  border: 1px solid rgba(15, 15, 14, 0.12);
  overflow: hidden;
  height: 900px;
  background: #fff;
}

.waiver-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */

footer.site-footer {
  background: var(--black);
  color: var(--cream);
  padding: 32px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer .copy {
  font-size: 13px;
  opacity: 0.6;
}

.site-footer .foot-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
}

.site-footer .foot-links a {
  text-decoration: none;
  opacity: 0.75;
}

.site-footer .foot-links a:hover { opacity: 1; color: var(--orange); }

/* Mobile */

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

@media (max-width: 640px) {
  nav.site-nav { display: none; }
  .hero { padding: 56px 0 44px; }
  .waiver-frame-wrap { height: 700px; }
  .community { padding: 64px 0 40px; }
  .gallery { padding: 40px 0 64px; }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}

/* Focus visibility */

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
