/* ============================================
   AWAY FIXTURE — Master Stylesheet

   Palette:
     Deep Navy:    #0B1A2A  (primary background)
     Pitch Green:  #2D5A3D  (accent, subtle football nod)
     Gold:         #C9A340  (warm accent, highlights)
     Cream:        #FAF8F4  (text, light backgrounds)
     Slate:        #8A9BAE  (secondary text, captions)
     Card Dark:    #112236  (card/panel backgrounds)
     Soft White:   #E8E4DD  (sidebar backgrounds)

   Typography:
     Headlines:    'Playfair Display', Georgia, serif
     Body:         'Source Sans 3', 'Segoe UI', sans-serif
     Mono/Data:    'JetBrains Mono', 'Consolas', monospace
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', 'Segoe UI', -apple-system, sans-serif;
  background-color: #0B1A2A;
  color: #FAF8F4;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #C9A340;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
a:hover {
  color: #e0c060;
}

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

::selection {
  background: rgba(201, 163, 64, 0.3);
  color: #FAF8F4;
}


/* ============================================
   SITE HEADER
   ============================================ */
.site-header {
  background: #0B1A2A;
  border-bottom: 1px solid rgba(201, 163, 64, 0.15);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(11, 26, 42, 0.92);
}

.site-header .logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #FAF8F4;
  letter-spacing: 0.04em;
}
.site-header .logo .logo-icon {
  width: 70px;
  height: 70px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.6rem;
  margin-top: -4px;
}

.site-header .logo span {
  color: #C9A340;
}

.site-header nav {
  display: flex;
  gap: 2rem;
}
.site-header nav a {
  color: #8A9BAE;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.site-header nav a:hover,
.site-header nav a.active {
  color: #FAF8F4;
}


/* ============================================
   HERO — Landing Page
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.hero .subtitle {
  font-size: 1.2rem;
  color: #C9A340;
  font-style: italic;
  margin-bottom: 2rem;
}

.hero .author-line {
  font-size: 0.95rem;
  color: #8A9BAE;
  letter-spacing: 0.05em;
}

.hero .scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: #8A9BAE;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: pulse-down 2s ease-in-out infinite;
}
.hero .scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background: #C9A340;
  margin: 0.75rem auto 0;
}

@keyframes pulse-down {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}


/* ============================================
   FIXTURE LIST — Entry Index
   ============================================ */
.fixture-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.fixture-list h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #C9A340;
}

.fixture-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(138, 155, 174, 0.12);
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}
.fixture-item:hover {
  background: rgba(201, 163, 64, 0.04);
  color: inherit;
}

.fixture-item .fixture-image {
  width: 180px;
  height: 120px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.fixture-item .fixture-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fixture-item .fixture-location {
  font-size: 0.75rem;
  color: #C9A340;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.fixture-item h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.fixture-item .fixture-preview {
  font-size: 0.9rem;
  color: #8A9BAE;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ============================================
   ENTRY PAGE — Article Layout
   ============================================ */

/* --- Entry Hero --- */
.entry-hero {
  position: relative;
  height: 55vh;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.entry-hero .hero-bg {
  filter: brightness(0.3);
}

.entry-hero .entry-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 3rem 2rem;
  margin: 0 auto;
  width: 100%;
}

.entry-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.entry-hero .entry-meta {
  color: #C9A340;
  font-style: italic;
  font-size: 1rem;
}


/* --- Article Body --- */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  margin: 3rem 0 1rem;
  color: #FAF8F4;
}

.article-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
  color: #C9A340;
}


/* --- Drop Cap --- */
.article-body > p:first-of-type::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  float: left;
  font-size: 4.2rem;
  line-height: 0.8;
  padding-right: 0.6rem;
  padding-top: 0.15rem;
  color: #C9A340;
  font-weight: 700;
}


/* --- Blockquote / Pull Quote --- */
.article-body blockquote {
  border-left: 3px solid #C9A340;
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #8A9BAE;
  font-size: 1.1rem;
}

.pull-quote {
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
  color: #C9A340;
  padding: 2.5rem 3rem;
  margin: 3rem 0;
  border-top: 1px solid rgba(201, 163, 64, 0.25);
  border-bottom: 1px solid rgba(201, 163, 64, 0.25);
  line-height: 1.5;
}


/* --- Inline Images --- */
.article-body img {
  border-radius: 4px;
  margin: 2rem 0 0.5rem;
}

.photo-caption {
  text-align: center;
  font-size: 0.8rem;
  color: #8A9BAE;
  font-style: italic;
  margin-bottom: 2rem;
  padding: 0 1rem;
}


/* --- Full Bleed Image --- */
.full-bleed {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}
.full-bleed img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 0;
}


/* --- Photo Grid --- */
.photo-grid {
  display: grid;
  gap: 0.5rem;
  margin: 2.5rem 0;
}
.photo-grid.two-up {
  grid-template-columns: 1fr 1fr;
}
.photo-grid.three-up {
  grid-template-columns: 1fr 1fr 1fr;
}
.photo-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 3px;
  margin: 0;
}


/* --- Sidebar / Callout Box --- */
.sidebar {
  float: right;
  width: 280px;
  margin: 0.5rem 0 1.5rem 2rem;
  padding: 1.25rem;
  background: #112236;
  border-left: 3px solid #2D5A3D;
  border-radius: 3px;
  font-size: 0.88rem;
  line-height: 1.6;
}
.sidebar .sidebar-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #C9A340;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.callout {
  background: #112236;
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-left: 4px solid #C9A340;
}
.callout p {
  margin-bottom: 0.5rem;
}
.callout p:last-child {
  margin-bottom: 0;
}


/* --- Tables --- */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}
.article-body table thead {
  border-bottom: 2px solid #C9A340;
}
.article-body table th {
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  color: #C9A340;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.article-body table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(138, 155, 174, 0.1);
}
.article-body table tbody tr:hover {
  background: rgba(201, 163, 64, 0.04);
}


/* --- Links within articles --- */
.article-body a {
  border-bottom: 1px solid rgba(201, 163, 64, 0.3);
  transition: border-color 0.2s;
}
.article-body a:hover {
  border-bottom-color: #C9A340;
}


/* --- Horizontal Rule / Section Break --- */
.section-break {
  text-align: center;
  margin: 3rem 0;
  color: #C9A340;
  font-size: 1.2rem;
  letter-spacing: 0.5em;
}
.section-break::before {
  content: "⬥ ⬥ ⬥";
}


/* ============================================
   ENTRY NAVIGATION
   ============================================ */
.entry-nav {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid rgba(201, 163, 64, 0.15);
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.8rem;
  color: #556677;
  border-top: 1px solid rgba(201, 163, 64, 0.08);
}
.site-footer a {
  color: #8A9BAE;
}


/* ============================================
   ABOUT SECTION (Landing Page)
   ============================================ */
.about-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.about-section .about-portrait {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.about-section .about-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-section .about-text p {
  color: #8A9BAE;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-section .about-text p:first-of-type {
  color: #FAF8F4;
}


/* ============================================
   RESPONSIVE
   ============================================ */
/* ============================================
   CROSSFADE HERO — Rotating Background Images
   ============================================ */
.hero-crossfade {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-crossfade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
  opacity: 0;
  animation: crossfade var(--cf-duration, 24s) var(--cf-delay, 0s) ease-in-out infinite;
}

/* For 3 images: each visible ~33% of the cycle */
@keyframes crossfade {
  0%    { opacity: 0; }
  5%    { opacity: 1; }
  33%   { opacity: 1; }
  38%   { opacity: 0; }
  100%  { opacity: 0; }
}

/* Stagger delays — set via inline style: --cf-delay */
/* For 3 images with 24s cycle: delays 0s, 8s, 16s */
/* For 4 images with 32s cycle: delays 0s, 8s, 16s, 24s */
/* For 2 images with 16s cycle: delays 0s, 8s */


/* ============================================
   PARALLAX BAND — Fixed Background Section
   ============================================ */
.parallax-band {
  position: relative;
  height: 45vh;
  min-height: 280px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.parallax-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 26, 42, 0.55);
}

.parallax-band .band-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.parallax-band .band-content p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-style: italic;
  color: #FAF8F4;
  max-width: 600px;
  line-height: 1.5;
}

.parallax-band .band-content .band-caption {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  color: #C9A340;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 1rem;
  font-style: normal;
}

/* Fix for mobile — parallax doesn't work well on touch devices */
@media (max-width: 768px) {
  .parallax-band {
    background-attachment: scroll;
  }
}


/* ============================================
   SELFIE STRIP — Crossfading Photo Row
   ============================================ */
.selfie-strip {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.selfie-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
}

.selfie-slot .selfie-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 500ms ease;
}

.selfie-slot .selfie-img.active {
  opacity: 1;
}

.selfie-slot .selfie-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 0.75rem 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: #FAF8F4;
  font-size: 0.8rem;
  font-style: italic;
  z-index: 2;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .site-header {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .fixture-item {
    flex-direction: column;
    gap: 0.75rem;
  }
  .fixture-item .fixture-image {
    width: 100%;
    height: 200px;
  }

  .sidebar {
    float: none;
    width: 100%;
    margin: 2rem 0;
  }

  .photo-grid.three-up {
    grid-template-columns: 1fr;
  }

  .about-section {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .about-section .about-portrait {
    margin: 0 auto;
  }

  .entry-hero h1 {
    font-size: 2rem;
  }

  .pull-quote {
    padding: 2rem 1.5rem;
    font-size: 1.2rem;
  }

  .full-bleed {
    margin-left: -1rem;
    margin-right: -1rem;
  }
}

@media (max-width: 480px) {
  .site-header nav {
    gap: 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .photo-grid.two-up {
    grid-template-columns: 1fr;
  }
}
