:root {
  --main-bg: #d4c9b4; /* Irish Cream */
  --button-bg: #25330f; /* Spruce */
  --button-hover: #4a5a3a; /* Lighter olive for better accessibility */
  --headline: #25330f; /* Spruce */
  --text: #1a1a1a; /* Darker for better contrast/readability */
  --button-text: #fff; /* White */
  --footer: #6b6952; /* Darker for accessibility */
}

body {
  background: var(--main-bg);
  color: var(--text);
  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  width: 100%;
  padding: 2rem 1rem;
}

/* Intro */
.intro {
  margin-top: 56px;
  margin-bottom: 48px; /* Increased spacing */
  max-width: 580px; /* Slightly wider for breathing room */
  width: 98vw;
  padding: 0 20px; /* More padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.intro h1 {
  font-family: "Space Grotesk", monospace, sans-serif;
  font-weight: 700;
  color: var(--headline);
  font-size: 48px; /* Larger, bolder presence */
  text-transform: lowercase;
  margin-bottom: 24px; /* More space below heading */
  letter-spacing: 3px; /* Increased letter spacing */
  transform: rotate(-2deg);
  text-align: center;
}

/* Minimal accent line - subtle visual break */
.intro h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--headline), transparent);
  margin: 1.5rem auto 0;
  opacity: 0.4;
  transform: rotate(2deg); /* Counter-rotate for interest */
}

.intro p {
  margin: 0 0 18px 0;
  font-size: 18px;
  font-weight: 400; /* Explicitly lighter than heading */
  color: var(--text);
  text-align: center;
  width: 100%;
  max-width: 560px;
  line-height: 1.7; /* Increased line height for readability */
}

/* Button Links Section */
.links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px; /* Increased gap between buttons */
  align-items: center;
}

.button {
  background: var(--button-bg);
  color: var(--button-text);
  text-align: center;
  min-width: 300px; /* Slightly wider */
  padding: 18px 32px; /* More generous padding */
  border-radius: 17px;
  font-size: 18px;
  font-family: "Space Grotesk", monospace, sans-serif;
  letter-spacing: 1.2px;
  box-shadow: 0 2px 12px 0 rgba(36, 36, 36, 0.06),
    0 1.5px 4.5px 0 rgba(182, 139, 99, 0.04);
  border: none;
  transition: all 0.3s ease; /* Smoother, unified transition */
  cursor: pointer;
  text-decoration: none;
  display: block;
  font-weight: 400;
}

.button:hover,
.button:focus {
  background: var(--button-hover);
  color: var(--button-text); /* Keep text white on hover */
  transform: translateY(-3px) scale(1.02); /* Subtle lift */
  box-shadow: 0 6px 16px 0 rgba(36, 36, 36, 0.12),
    0 4px 12px 0 rgba(37, 51, 15, 0.15);
  outline: none;
}

/* Keyboard focus state for accessibility */
.button:focus-visible {
  outline: 2px solid var(--headline);
  outline-offset: 4px;
}

/* Footer */
footer {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  font-size: 13px; /* Slightly larger */
  color: var(--footer);
  opacity: 0.75; /* More visible */
  border-top: 1px solid rgba(37, 51, 15, 0.2);
  padding: 32px 0 20px 0; /* More padding */
  letter-spacing: 0.5px;
  line-height: 1.6; /* Better readability */
  position: relative;
  z-index: 0;
  background: transparent;
}

footer p {
  margin: 0.5rem 0;
}

/* Responsive tweaks for mobile */
@media (max-width: 600px) {
  main {
    padding: 0 2vw;
  }
  
  .intro {
    margin-top: 32px;
    margin-bottom: 32px;
    max-width: 100vw;
    padding: 0 16px;
  }
  
  .intro h1 {
    font-size: 32px; /* Larger than before on mobile */
    margin-bottom: 16px;
    letter-spacing: 2px;
  }
  
  .intro p {
    font-size: 16px; /* Slightly larger for mobile readability */
    max-width: 99vw;
    line-height: 1.6;
  }
  
  .links ul {
    gap: 18px;
  }
  
  .links .button {
    min-width: 280px;
    font-size: 16px;
    padding: 14px 24px;
  }
  
  footer {
    font-size: 12px;
    padding: 20px 0 12px 0;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text: #000;
    --footer: #4a4a4a;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
  
  .button:hover,
  .button:focus {
    transform: none;
  }
}
