/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */

:root {
  /* Typography */
  --font-heading: 'Dr Sugiyama', cursive;
  --font-body: 'Crimson Pro', serif;

  /* Font Sizes */
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem;  /* 36px */
  --text-5xl: 3rem;     /* 48px */
  --text-6xl: 4rem;     /* 64px */

  /* Colors */
  --color-text-light: rgba(255, 255, 255, 0.95);
  --color-text-medium: rgba(255, 255, 255, 0.85);
  --color-text-dim: rgba(255, 255, 255, 0.65);
  --color-overlay: rgba(0, 0, 0, 0.3);
  --color-overlay-dark: rgba(0, 0, 0, 0.5);

  /* Spacing */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 0.75rem;  /* 12px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 1.5rem;   /* 24px */
  --space-xl: 2rem;     /* 32px */
  --space-2xl: 3rem;    /* 48px */
  --space-3xl: 4rem;    /* 64px */

  /* Layout */
  --content-max-width: 450px;
  --content-padding: var(--space-xl);

  /* Effects - soft shadows that bleed equally from all sides (no offset) */
  --shadow-sm: 0 0 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 0 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 0 16px rgba(0, 0, 0, 0.4);
  --shadow-text: 0 0 12px rgba(0, 0, 0, 0.5);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   Base Styles
   ============================================ */

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-light);
  overflow-x: hidden;
}

/* ============================================
   Hero Section - Full Screen Background
   ============================================ */

.hero {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic Viewport Height for mobile */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding-top: 10vh;
  padding-bottom: var(--space-3xl);
}

.hero-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================
   Content Panel - Container (no background)
   ============================================ */

.content-panel {
  position: relative;
  width: 90%;
  max-width: var(--content-max-width);
  padding: var(--content-padding);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* ============================================
   Typography - Heading
   ============================================ */

.title {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.title-line {
  display: block;
}

/* Main title line - much larger */
.title-main {
  font-size: 5rem;  /* 80px base, will scale up */
}

/* Subtitle line - smaller */
.title-sub {
  font-size: 2.5rem;  /* 40px base, will scale up */
}

/* ============================================
   Credits
   ============================================ */

.credits {
  font-size: var(--text-sm);
  color: var(--color-text-medium);
  font-style: italic;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.credit-line {
  margin-bottom: var(--space-xs);
}

/* ============================================
   Expandable Description (outside box)
   ============================================ */

.description {
  text-align: left;
  cursor: pointer;
  position: relative;
  align-self: flex-start;  /* Prevent expansion from pushing content up */
}

.description-content {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-light);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.description-content p {
  margin-bottom: var(--space-md);
}

.description-content .full-text {
  display: none;
  margin-top: 0;
}

.description-content.expanded .full-text {
  display: block;
}

.expand-btn {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-light);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  margin-top: var(--space-xs);
  padding: 0;
  border: none;
  background: none;
  transition: opacity var(--transition-fast);
  cursor: pointer;
  letter-spacing: 0.05em;
}

.expand-btn::after {
  content: ' →';
  display: inline-block;
  transition: transform var(--transition-fast);
}

.expand-btn:hover,
.expand-btn:focus {
  opacity: 0.7;
}

.expand-btn:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
}

/* Rotate arrow when expanded */
.description-content.expanded ~ .expand-btn::after {
  content: ' ↑';
}

/* ============================================
   Event Card (inside box with background)
   ============================================ */

.event-card {
  background: var(--color-overlay);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
  .event-card {
    background: var(--color-overlay-dark);
  }
}

/* ============================================
   Event Details (date/venue)
   ============================================ */

.event-details {
  text-align: left;
}

.venue {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.datetime {
  font-size: var(--text-xl);
  color: var(--color-text-medium);
  display: block;
}

/* ============================================
   Event Participants
   ============================================ */

.event-participants {
  text-align: left;
}

.participants-label {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  margin-bottom: var(--space-xs);
  text-transform: lowercase;
}

.participants-list {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-medium);
}

/* ============================================
   Event Links / Buttons
   ============================================ */

.event-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--color-text-light);
  border-radius: 2px;
  transition: all var(--transition-base);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.btn:hover,
.btn:focus {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:focus-visible {
  outline: 2px solid var(--color-text-light);
  outline-offset: 4px;
}

.btn:active {
  transform: translateY(0);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  position: relative;
  padding: var(--space-xl) var(--space-xl) var(--space-xl);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  margin-top: var(--space-xl);
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-md);
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  height: 60px;
  width: auto;
  opacity: 1;
  transition: transform var(--transition-fast);
  /* Display logos with their original colors */
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-link {
  font-size: var(--text-xs);
  color: var(--color-text-medium);
  transition: color var(--transition-fast);
}

.footer-link:hover,
.footer-link:focus {
  color: var(--color-text-light);
  text-decoration: underline;
}

.footer-link:focus-visible {
  outline: 2px solid var(--color-text-light);
  outline-offset: 2px;
}

/* ============================================
   Responsive Design - Tablet
   ============================================ */

@media (min-width: 768px) {
  :root {
    --text-base: 1.125rem; /* 18px */
    --content-padding: var(--space-2xl);
  }

  .title-main {
    font-size: 7rem;  /* 112px on tablet */
  }

  .title-sub {
    font-size: 3.5rem;  /* 56px on tablet */
  }

  .content-panel {
    width: 85%;
  }

  .event-links {
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .btn {
    flex: 1 1 auto;
    min-width: 160px;
    white-space: nowrap;
  }

  .hero {
    padding-top: 8vh;
  }
}

/* ============================================
   Responsive Design - Desktop
   ============================================ */

@media (min-width: 1024px) {
  :root {
    --content-max-width: 550px;
  }

  .title-main {
    font-size: 9rem;  /* 144px on desktop */
  }

  .title-sub {
    font-size: 4.5rem;  /* 72px on desktop */
  }

  .hero {
    justify-content: flex-end;
    align-items: center;
    padding-right: 5vw;
    padding-top: 0;
  }

  .content-panel {
    width: auto;
    max-width: var(--content-max-width);
  }

  .footer {
    padding: var(--space-xl) var(--space-3xl);
  }
}

/* ============================================
   Responsive Design - Large Desktop
   ============================================ */

@media (min-width: 1440px) {
  .hero {
    padding-right: 8vw;
  }

  :root {
    --content-max-width: 600px;
  }
}

/* ============================================
   Mobile-specific Adjustments
   ============================================ */

@media (max-width: 767px) {
  .content-panel {
    margin: var(--space-xl) auto;
  }

  .title-main {
    font-size: var(--text-4xl);  /* 36px on mobile */
  }

  .title-sub {
    font-size: var(--text-2xl);  /* 24px on mobile */
  }

  .venue {
    font-size: var(--text-xl);
  }

  .datetime {
    font-size: var(--text-lg);
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .hero-background {
    display: none;
  }

  .content-panel {
    background: white;
    color: black;
  }

  .footer {
    position: static;
    background: none;
  }

  .expand-btn {
    display: none;
  }

  .description-content .full-text {
    display: block !important;
  }
}
