/* Reset some default browser styles */
body {
  margin: 0;
  font-family: 'EB Garamond', serif;
  background-color: #101010;
  color: #e6e6e6;
}

h1, h2, h3 {
  letter-spacing: 0.6px;
}

/* Main content wrapper */
main {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Header */
header {
  text-align: center;
  padding: 40px 20px 20px;
}

header h1 {
  margin: 0;
  font-size: 2.8rem;
  letter-spacing: 2px;
}

/* Divider line */
hr {
  border: none;
  height: 1px;
  background: #333;
  margin: 20px auto 40px;
  width: 80%;
}

/* Paragraph text */
p {
  line-height: 1.6;
  font-size: 1.1rem;
}

/* HEADER WITH LOGO */
.site-header {
  text-align: center;
  padding: 40px 20px 10px;
}

.logo {
  max-width: 520px;
  width: 90%;
  height: auto;
}

/* EVENTS */
.event-card {
  background: #1a1a22;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.event-card img {
  width: 100%;
  display: block;
}

.event-card h3 {
  margin: 15px;
}

.event-card p {
  margin: 0 15px 15px;
}

.event-card.past {
  opacity: 0.6;
  filter: grayscale(40%);
}

.event-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.poster-page {
  text-align: center;
  margin: 40px auto;
}

.poster-image {
  max-width: 900px;
  width: 95%;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

/* TIMELINE BASE */
.timeline {
  position: relative;
  margin: 80px auto;
  max-width: 1000px;
  display: flex;
  justify-content: center; /* 👈 key change */
  align-items: center;
  gap: 80px;               /* controls spacing between circles */
}

/* The horizontal line */
.timeline {
  position: relative;
}

/* THE MAIN LINE (base) */
.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -80px;
  width: calc(100% + 160px);
  height: 2px;
  transform: translateY(-50%);

  background: linear-gradient(
    90deg,
    rgba(166,124,88,0) 0%,
    rgba(166,124,88,0.4) 50%,
    rgba(166,124,88,0) 100%
  );
}

/* MOVING ENERGY WAVE */
.timeline::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  transform: translateY(-50%);

  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 35%,
    rgba(255,215,120,0.9) 50%,
    transparent 65%,
    transparent 100%
  );

  filter: blur(4px);
  animation: lineWave 4s ease-in-out infinite alternate;
}

@keyframes lineWave {
  0%   { transform: translateY(-50%) translateX(-30%); }
  100% { transform: translateY(-50%) translateX(30%); }
}


/* Each event point */
.timeline-item {
  position: relative;
  z-index: 1;
}

/* Small circle image */
.timeline-dot {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid #A67C58;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Image inside circle */
.timeline-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Glass shine layer */
.timeline-dot::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0.75) 50%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
}

.timeline-dot:hover::after {
  animation: shineSweep 0.9s ease forwards;
}

/* Sizes */
.timeline-dot.small  { width: 70px;  height: 70px; }
.timeline-dot.medium { width: 95px;  height: 95px; }
.timeline-dot.large  { width: 125px; height: 125px; }

.timeline-dot:hover {
  transform: scale(1.15);
  border-color: #aaa;
}

.event-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;

  z-index: 5000;
  cursor: pointer;
}

.event-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.event-modal img {
  width: auto;
  height: auto;
  max-width: 1000px;
  max-height: none;
  border-radius: 0; /* 👈 removes curved edges */
  display: block;
  box-shadow: 0 30px 80px rgba(0,0,0,0.9);

  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.event-modal.active img {
  opacity: 1;
  transform: scale(1);
}

body {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* TOP & BOTTOM FIXED BARS */
.top-bar,
.bottom-bar {
  position: fixed;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #111, #1a1a1a, #111);
  color: #A67C58;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  letter-spacing: 1px;
  z-index: 6000;
  backdrop-filter: blur(6px);
  border-top: 1px solid #A67C58;
  border-bottom: 1px solid #A67C58;
}

/* Top position */
.top-bar {
  top: 0;
}

/* Bottom position */
.bottom-bar {
  bottom: 0;
}



/* EVENTS INTRO BLOCK */
.events-intro {
  max-width: 900px;
  margin: 0 auto 50px auto;
  text-align: center;
}

/* MONTH HEADER ROW */
.month-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 19px;
}

/* Divider below month names */
.month-divider {
  width: 100%;
  height: 1px;
  margin: 14px auto 24px auto; /* space above & below */
  background: linear-gradient(
    to right,
    rgba(124,84,56,0),
    rgba(124,84,56,0.8),
    rgba(124,84,56,0)
  );
}

/* Base month style */
.month {
  font-family: 'EB Garamond', serif;
  letter-spacing: 2px;
}

/* JANUARY + MARCH */
.month.muted {
  font-size: 2rem;              /* ~4x larger */
  color: rgba(255,255,255,0.4); /* ~40% opacity */
}

/* FEBRUARY (featured month) */
.month.featured {
  font-size: 4rem;              /* ~6x larger */
  color: #A67C58;               /* your gold */
}

/* Paragraphs */
.events-intro p {
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 16px;
}

/* Final patience line */
.muted-note {
  color: rgba(255,255,255,0.4); /* same as JANUARY */
  margin-top: 25px;
  font-style: italic;
}



/* Footer text below events timeline */
.events-footer-text {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: center;
}

/* Muted informational note (same as JANUARY color) */
.events-footer-text .muted-note {
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}

/* Normal paragraph */
.events-footer-text p {
  line-height: 1.7;
  margin-bottom: 18px;
  opacity: 0.9;
}

/* Final call-to-action */
.events-callout {
  font-size: 2em;          /* ~2x size */
  letter-spacing: 1px;
  margin-top: 30px;
  color: #e6e6e6;
}

/* Event series label above logos */
.event-series-title {
  text-align: center;
  margin-top: 40px;        /* space from “HERE'S TO SOME EVENTFUL TIMES” */
  margin-bottom: 20px;     /* space before the faded banner */
  font-size: 1.3em;
  letter-spacing: 1.5px;
  color: #A67C58;
}

/* Event series banner (bottom of events page) */
.event-series-banner {
  position: relative;

  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  padding: 20px 0 30px 0;

  background: linear-gradient(
    to bottom,
    rgba(16,16,16,0) 0%,
    rgba(16,16,16,0.85) 35%,
    rgba(16,16,16,1) 100%
  );
}

/* Logo container */
.event-series-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;

  max-width: 1200px;
  margin: 0 auto;
}

/* Individual logos */
.event-series-logos img {
  width: 150x;
  height: 150px;
  object-fit: contain;

  opacity: 0.85;
  transition: opacity 0.3s ease;
}

/* Subtle hover polish */
.event-series-logos img:hover {
  opacity: 1;
}


/* Remove extra bottom spacing on Events page */
.event-series-banner {
  margin-bottom: 0;
}

.events-footer-text {
  margin-bottom: 0;
}

/* Remove bottom padding only on Events page */
.events-page {
  margin-bottom: -40px;
}



/* Wrapper for Home page content */
.home-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 60px;
}

/* Main Home title (FEBRUARY style, slightly smaller) */
.home-title {
  font-size: 2.8em;
  letter-spacing: 2px;
  color: #A67C58;
  margin-bottom: 25px;
}

/* Disclaimer (JANUARY color + italic) */
.home-disclaimer {
  color: rgba(255,255,255,0.4);
  margin-bottom: 30px;
  font-style: italic;
}

/* Section titles (Guild Rules, Members) */
.home-section-title {
  font-size: 2em;
  letter-spacing: 1.5px;
  color: #A67C58;
  margin: 40px 0 20px 0;
}

/* Section divider */
.section-divider {
  width: 60%;
  margin: 50px auto;
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(166,124,88,0),
    rgba(166,124,88,0.6),
    rgba(166,124,88,0)
  );
}

/* Section divider for main categories (shorter, tighter) */
.section-divider-small {
  width: 45%;
  margin: 70px auto;          /* creates space between categories */
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(166,124,88,0),
    rgba(166,124,88,0.8),
    rgba(166,124,88,0)
  );
}


/* Emphasized line */
.home-emphasis {
  font-size: 1.2em;
  letter-spacing: 1px;
  margin-top: 25px;
}


/* Ranks section */
.ranks-list {
  margin-top: 25px;
}

/* Individual rank block */
.rank-item {
  margin-bottom: 22px;   /* space between ranks */
}

/* Rank titles */
.rank-title {
  color: #A67C58;        /* same as Guild Rules */
  font-weight: bold;
  letter-spacing: 1px;
}


/* Members grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  margin-top: 40px;
}

/* Individual member card */
.member-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* Avatar */
.member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #A67C58;
  flex-shrink: 0;
  transition: filter 0.25s ease, box-shadow 0.25s ease;
}

.member-avatar:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 0 2px rgba(166,124,88,0.35);
}


/* Text container */
.member-info {
  text-align: left;
}

/* Character name */
.member-name {
  color: #A67C58; /* same as Guild Rules */
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* Rank */
.member-rank {
  color: rgba(255,255,255,0.4); /* same as JANUARY */
  font-size: 0.9em;
  margin-top: 2px;
}

/* Quote */
.member-quote {
  font-style: italic;
  margin-top: 6px;
  font-size: 0.95em;
}


@media (max-width: 900px) {
  .members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .members-grid {
    grid-template-columns: 1fr;
  }
}



/* ===== GALLERY (SAFE BASE) ===== */

.gallery-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0px 20px 40px;
  text-align: center;
}

.gallery-title {
  margin-bottom: 10px;
}

.gallery-intro {
  margin-bottom: 0px;
  font-style: italic;
}



/* Gallery title */
.gallery-title {
  color: #7c5438;          /* FEBRUARY color */
  font-size: 2rem;       /* larger, title-level */
  margin-bottom: 8px;      /* tight spacing */
}

/* Gallery intro text */
.gallery-intro {
  margin: 0;
  padding: 0;           /* removes extra gap */
  line-height: 1.6;
  max-width: 800pcx;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
}

/* Highlighted phrase */
.gallery-highlight {
  color: rgba(255,255,255,0.4);          /* same FEBRUARY color */
  font-style: italic;
}




/* ===== GALLERY GRID (FORCED) ===== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
  max-width: 900px;      /* keeps thumbnails from getting too big */
  margin-left: auto;
  margin-right: auto;
}

.gallery-item {
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}



/* Gallery thumbnails */
.gallery-item {
  aspect-ratio: 1 / 1;         /* forces square */
  overflow: hidden;
  border: 1px solid #7c5438;   /* FEBRUARY brown */
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/* Hover zoom */
.gallery-item:hover img {
  transform: scale(1.06);
}


/* Gallery modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gallery-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.gallery-modal.active img {
  transform: scale(1);
}




/* ===== LUMBERCHKIN PAGE ===== */

.lumberchkin-wrap {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0px 20px 40px;
}

.lumberchkin-title {
  margin-bottom: 50px;
  color: #A67C58; /* your site’s brown (borders / titles) */
}

.lumberchkin-text {
  max-width: 700px;
  margin: 0 auto 30px;
}

.lumberchkin-image {
  max-width: 100%;
  max-height: 420px;          /* 👈 MAIN CONTROL – adjust freely */
  height: auto;
  object-fit: contain;
  border: 1px solid #A67C58;  /* brown border */
}



/* Lumberchkin split layout */
.lumberchkin-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-top: 20px;
}

/* Text block */
.lumberchkin-text {
  text-align: left;
  line-height: 1.7;
}

/* Image */
.lumberchkin-image {
  max-width: 100%;
  height: auto;
}




@keyframes timelinePulse {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes shineSweep {
  from { left: -75%; }
  to   { left: 130%; }
}

hr {
  display: none;
}

html, body {
  background-color: #101010;
  background-image: url("/images/site-background.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 120% auto;
}

hr.section-divider-small {
  width: 45%;
  margin: 70px auto;
  border: none;
  height: 1px;

  background: linear-gradient(
    to right,
    rgba(166,124,88,0),
    rgba(166,124,88,0.8),
    rgba(166,124,88,0)
  );
}


/* FORCE section dividers to display */
hr.section-divider-small {
  display: block !important;

  width: 45%;
  height: 1px;
  margin: 70px auto;

  border: none !important;
  background: linear-gradient(
    to right,
    rgba(166,124,88,0),
    rgba(166,124,88,0.8),
    rgba(166,124,88,0)
  );
}



/* ===== SITE NAVIGATION ===== */

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 14px;
  padding: 16px 0;
  position: relative;
}

/* Feathered lines */
.site-nav::before,
.site-nav::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(166,124,88,0),
    rgba(166,124,88,0.6),
    rgba(166,124,88,0)
  );
}

.site-nav::before {
  top: 0;
}

.site-nav::after {
  bottom: 0;
}

.nav-link {
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A67C58;
  text-decoration: none;
  padding: 6px 4px;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: #A67C58;
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-link:hover {
  color: #d6b08a;
}

.nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ===== MOBILE FIXES ===== */
@media (max-width: 1024px) {

  /* GENERAL PAGE WIDTH */
  .page {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* FIX BACKGROUND JUMPING */
  body {
    background-attachment: scroll;
  }

  /* EVENTS PAGE TIMELINE */
  .timeline {
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    max-width: 100%;
    margin: 40px auto;
  }

  /* HIDE THE HORIZONTAL LINE ON MOBILE */
  .timeline::before {
    display: none;
  }

  /* CENTER EVENT CIRCLES */
  .timeline-item {
    display: flex;
    justify-content: center;
  }

  /* EVENT SERIES LOGOS */
  .event-series {
    padding-bottom: 40px;
  }

  /* NAVIGATION BUTTONS */
  .site-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  /* MEMBER GRID */
  .members-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* GALLERY GRID */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

/* FIX MONTH HEADER ON MOBILE */
.month-row {
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.month.featured {
  font-size: 2.6rem; /* reduced for mobile */
}

.month.muted {
  font-size: 1.4rem;
}

}

/* FIX iPad / tablet background repaint bug */
@media (hover: none) and (pointer: coarse) {
  body {
    background-attachment: scroll !important;
  }
}