/* --- Root Variables & Reset --- */
:root {
  /* Updated to red and brown */
  --red-rgb: 255 0 0;
  --brown-rgb: 165 42 42; /* New brown color */
  
  --background-rgb: 17 17 17; /* Keeping the modern, soft black background */
  --font-family: 'Comic Relief', system-ui;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- General Body & Layout --- */
body {
  height: 100vh;
  width: 100%;
  color: #f0f0f0; /* A softer white for text */
  background: rgb(var(--background-rgb));
  overflow-y: auto;
  perspective: 2000px;
  font-family: var(--font-family);
}

#content {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

#logo {
  margin-bottom: 30px;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.not-found-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
}

/* --- Typography (Simplified) --- */
.comic-relief-regular, .comic-relief-bold {
  font-family: var(--font-family);
  text-align: center;
}

.comic-relief-bold {
  font-weight: 700;
}

.quote {
  font-size: 20px;
}

.byline {
  font-size: 15px;
}

.copyright {
  margin-top: 20px;
}

/* --- Modern Newsletter Styles --- */
.newsletter-article {
  max-width: 700px;
  margin: 60px auto;
  padding: 40px;
  background-color: rgba(28, 28, 28, 0.75); /* Made slightly more transparent */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px); /* Frosted glass effect */
  pointer-events: auto;
  text-align: left;
}

.newsletter-article header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.newsletter-article h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.newsletter-article .date {
  font-size: 0.9rem;
  color: #a0a0a0;
}

.newsletter-body h2 {
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.newsletter-body p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #d0d0d0;
}

.feature-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.feature-list li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ff0000; /* Reverted to original red */
}

.small-logo {
  width: 150px;
  margin-bottom: 20px;
}

.page-nav {
  margin-bottom: 20px;
}

.page-nav a {
  background-color: transparent;
  padding: 8px 12px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.page-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* --- Navigation & Links --- */
.link-navigation ul {
  list-style-type: none;
}

.link-group {
  font-size: 20px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.link-group a + a {
  margin-left: 20px; 
}

a {
  pointer-events: auto;
  text-decoration: none;
  color: #fff;
}

a:link, a:visited {
  background-color: #ff0000; /* Reverted to original red */
  padding: 12px 24px;
  text-align: center;
  display: inline-block;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

a:hover, a:active {
  background-color: red; /* Reverted to original darker red */
  transform: scale(1.05);
}

/* --- Interactive Background (Unchanged) --- */
#container {
  width: 140rem;
  aspect-ratio: 1;
  display: grid;
  grid-template-rows: repeat(40, 1fr);
  grid-template-columns: repeat(40, 1fr);
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: -1;
  transform: translate(-50%, -50%) rotateX(50deg) rotateY(-5deg) rotateZ(20deg) scale(1.25);
}

#container:after,
#container:before {
  content: "";
  position: absolute;
  inset: 0px;
  pointer-events: none;
}

#container:before {
  z-index: 2;
  background-image: url("https://assets.codepen.io/1440/plus-pattern-center.png");
  background-size: 5rem;
  background-repeat: repeat;
  opacity: 0.25;
}

#container:after {
  z-index: 3;
  background: radial-gradient(circle, transparent 25%, rgb(var(--background-rgb)) 80%);
}

.tile {  
  border: 1px solid rgb(255 255 255 / 10%);
  transition: background-color 1500ms;
}

.tile:hover {
  transition-duration: 0ms;
}

.tile:nth-child(odd):hover {
  background-color: rgb(var(--red-rgb));
}

.tile:nth-child(even):hover {
  background-color: rgb(var(--brown-rgb));
}

