/* CSS Variables - Dark Theme (Original WordPress Design) */
:root {
  --color-background: #1a1a1a;
  --color-text: #ffffff;
  --color-text-secondary: #cccccc;
  --color-accent: #999999;
  --color-border: #333333;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-heading: "Libre Franklin", -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1000px;
  --header-image: url('/media/2026/new-cover-image.jpg');
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-size: 16px;
  position: relative;
}

/* Fixed Header Background Image */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--header-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* On non-homepage pages, show only a banner slice with dark overlay */
body:not(.page-home)::before {
  height: 300px;
  background-position: center 15%;
  /* Add dark overlay for better text readability */
  background-image:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.5) 100%
    ),
    var(--header-image);
}

/* Site Header - overlaid on the fixed background */
.site-header {
  position: relative;
  padding: 2rem 0 1rem;
  background: transparent;
  border-bottom: none;
  z-index: 10;
}

.site-branding {
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}

.site-branding h1 {
  margin: 0 0 0.25rem;
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-branding a {
  color: var(--color-text);
  text-decoration: none;
}

.site-branding a:hover {
  color: var(--color-text-secondary);
}

.site-description {
  color: var(--color-text);
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 400;
}

/* Navigation */
.main-navigation {
  margin-top: 1.5rem;
  text-align: center;
}

.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-navigation a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.main-navigation a:hover {
  color: var(--color-accent);
}

/* Layout Container */
main {
  position: relative;
  z-index: 1;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Homepage: Let the hero image breathe, content starts below */
.page-home main {
  margin-top: 60vh;
  padding: 0;
}

/* Homepage: Full-width content with gradient background */
.page-home .page {
  width: 100%;
  max-width: 100%;
  padding: 4rem 0;
  background: linear-gradient(to bottom,
    rgba(26, 26, 26, 0) 0%,
    rgba(26, 26, 26, 0.7) 20%,
    rgba(26, 26, 26, 0.95) 40%,
    rgba(26, 26, 26, 1) 60%,
    rgba(26, 26, 26, 1) 100%);
  min-height: 100vh;
}

.page-home .page h1,
.page-home .page-content {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Non-homepage: No background box, just content */
body:not(.page-home) main {
  margin-top: 0;
  padding-top: 320px;
}

body:not(.page-home) .page {
  background: transparent;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 20px;
}

.page h1 {
  font-size: 2.5rem;
  margin: 0 0 2rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.page-content h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-content h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
}

.page-content h4 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
}

.page-content p {
  margin: 0 0 1.5rem;
}

.page-content a {
  color: #4a9eff;
  text-decoration: underline;
}

.page-content a:hover {
  color: #6eb3ff;
}

.page-content ul,
.page-content ol {
  margin: 0 0 1.5rem;
  padding-left: 2rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

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

.page-content img {
  margin: 2rem 0;
  border-radius: 2px;
}

figure {
  margin: 2rem 0;
}

figcaption {
  font-size: 0.9rem;
  color: var(--color-accent);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Gutenberg Block: Gallery */
.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.wp-block-gallery li {
  margin: 0;
}

.wp-block-gallery img {
  margin: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gutenberg Block: Columns */
.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.wp-block-column {
  min-width: 0;
}

/* Gutenberg Block: Cover (Hero Sections on Homepage) */
.wp-block-cover {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  padding: 3rem 2rem;
  margin: 2rem 0;
  color: white;
  border-radius: 2px;
  overflow: hidden;
}

/* On homepage, make cover block part of the gradient flow */
.page-home .wp-block-cover {
  margin: 2rem 0;
  min-height: 60vh;
}

.wp-block-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.wp-block-cover > * {
  position: relative;
  z-index: 2;
}

.wp-block-cover h2,
.wp-block-cover p {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Gutenberg Block: Group */
.wp-block-group {
  margin: 2rem 0;
}

/* Gutenberg Block: Separator */
hr,
.wp-block-separator {
  border: none;
  border-top: 2px solid var(--color-border);
  margin: 3rem 0;
}

/* Footer */
.site-footer {
  border-top: 2px solid var(--color-border);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--color-accent);
  font-size: 0.9rem;
  background-color: var(--color-background);
}

.site-footer p {
  margin: 0.5rem 0;
}

.site-footer a {
  color: var(--color-accent);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  body::before {
    background-position: center center;
  }

  body:not(.page-home)::before {
    height: 200px;
  }

  .page-home main {
    margin-top: 50vh;
  }

  .site-branding h1 {
    font-size: 2rem;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .page {
    padding: 2rem 0;
  }

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

  .page-content {
    font-size: 1rem;
  }

  .page-content h2 {
    font-size: 1.5rem;
  }

  .page-content h3 {
    font-size: 1.25rem;
  }

  .wp-block-gallery {
    grid-template-columns: 1fr;
  }

  .wp-block-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .wp-block-cover {
    min-height: 300px;
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  main,
  .site-footer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .site-branding h1 {
    font-size: 1.75rem;
  }

  .page h1 {
    font-size: 1.75rem;
  }

  .page-content {
    font-size: 0.95rem;
  }
}

/* Print Styles */
@media print {
  body::before {
    display: none;
  }

  .site-header,
  .main-navigation,
  .site-footer {
    display: none;
  }

  .page {
    padding: 0;
    background: white;
    color: black;
  }

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