:root {
  --accent: #6E1E24; 
}
body {
  margin: 0;
  padding: 0;
  background: #fdfdfd;
  font-family: 'Georgia', serif;
  color: #1a1a1a;
  opacity: 0;
  transition: opacity 0.8s ease;
}
body.loaded {
  opacity: 1;
}
.header-link,
.tagline-link {
  all: unset; /* removes all default styles */
  cursor: pointer;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}
p.spaced {
  margin-top: 1.2em;
}

.header-link:hover,
.tagline-link:hover {
  color: var(--accent); /* your red */
  letter-spacing: 0.02em;
}
header {
  text-align: center;
  padding-top: 2rem;
}

#header-image {
  width: 100%;           /* Makes it span full width */
  max-height: 300px;     /* Controls vertical size */
  object-fit: cover;     /* Crops excess without stretching */
  display: block;
  margin: 0 auto;        /* Optional: center if image is smaller than full width */
}

/* Mobile optimization */
@media (max-width: 600px) {
  h1 :hover {
    color: #111; 
    transition: color 0.3s ease;
    font-size: 2rem;
  }
    .tagline :hover {
      color: var(--accent);
      font-size: 1rem;
    }
    .intro {
      font-size: 0.95rem;
      line-height: 1.6;
      padding: 0 1rem;
    }
  header-image {
    object-position: top;
    max-height: 160px ;
  }
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: #111;
}

h2 {
  font-size: 1.6em;
  margin-top: 2em;
}

h3 {
  font-size: 1.3em;
  margin-top: 1.5em;
  opacity: 0.8;
}

.fragment-title {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-date {
  font-size: 0.8em;
  opacity: 0.6;
  margin-bottom: 1em;
}


.tagline {
  font-style: italic;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.intro {
  text-align: center;
  max-width: 40ch;
  margin: 3rem auto 5rem auto;  /* more space below */
  font-size: 1rem;
  line-height: 1.65;
  color: #444;
}
.enter-link {
  display: inline-block;
  font-family: var(--header-font);
  font-size: 1.1em;
  color: var(--text);
  text-decoration: none;
  margin-top: 2em;
  transition: color 0.3s ease, letter-spacing 0.2s ease;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.enter-link:hover {
  color: var(--accent);
  letter-spacing: 0.05em;
}
.fragments-button {
  display: inline-block;
  margin-top: 2rem;
  color: #111;
  border: 1px solid #111;
  padding: 0.4em 0.8em;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.fragments-button:hover {
  background-color: #111;
  color: #fff;
}
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  margin-top: 4rem;
  padding-bottom: 2rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(5px);
  animation: fadeInUp 1.2s ease-out-forwards;
  animation-delay: 0.5s;
  color: var(--accent);
}
.back-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-top: 2rem;
  border: 1px solid var(--accent);
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.contact-button {
  display: inline-block;
  margin-top: 1rem;
  color: #eee;
  border: 1px solid #eee;
  padding: 0.3em 0.8em;
  font-size: 0.95em;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-button:hover {
  background-color: #eee;
  color: #111;
}

.back-button:hover {
  background-color: var(--accent);
  color: #fff;
}