/* reset */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* variables */

:root {
  --black: #111111;
  --green: #00a84f;
  --green-dim: #00602d;
  --amber: #c9843e;
  --amber-dim: #7a4d1e;
  --cream: #d4c9b0;
  --grey: #3a3a3a;
  --text: #b8ae9e;
  --font-serif: 'IM Fell English', Georgia, serif;
  --font-type: 'Share Tech Mono', monospace;
  --font-worn: 'Special Elite', cursive;
}

/* animations */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flicker {

  0%,
  96%,
  100% {
    opacity: 1;
  }

  97% {
    opacity: 0.85;
  }

  98% {
    opacity: 1;
  }

  99% {
    opacity: 0.7;
  }
}

@keyframes expandRing {
  0% {
    transform: scale(0.5);
    opacity: 0.25;
  }

  100% {
    transform: scale(8);
    opacity: 0;
  }
}

/* base */

html {
  scroll-behavior: smooth;
  background-color: var(--black);
}

body {
  background-color: var(--black);
  color: var(--text);
  font-family: var(--font-worn);
  cursor: crosshair;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* noise */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
}

/* scanlines */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.08) 2px,
      rgba(0, 0, 0, 0.08) 4px);
  pointer-events: none;
  z-index: 9998;
}

/* hero */

/* eye */

.eye-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.eye-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--green-dim);
  opacity: 0.15;
  animation: expandRing linear infinite;
}

.eye-ring:nth-child(1) {
  width: 200px;
  height: 200px;
  animation-duration: 8s;
  animation-delay: 0s;
}

.eye-ring:nth-child(2) {
  width: 200px;
  height: 200px;
  animation-duration: 8s;
  animation-delay: -2s;
}

.eye-ring:nth-child(3) {
  width: 200px;
  height: 200px;
  animation-duration: 8s;
  animation-delay: -4s;
}

.eye-ring:nth-child(4) {
  width: 200px;
  height: 200px;
  animation-duration: 8s;
  animation-delay: -6s;
}

.central-eye {
  position: absolute;
  z-index: 0;
  opacity: 0.08;
  width: 420px;
  height: 420px;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-top {
  font-family: var(--font-type);
  font-size: 0.8125em;
  letter-spacing: 0.3rem;
  color: var(--amber);
  opacity: 0.7;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 1;
  color: var(--cream);
  font-style: italic;
  text-shadow: 0 0 60px rgba(0, 168, 79, 0.2);
  animation: fadeInUp 1s ease 0.5s both, flicker 7s ease-in-out infinite 2s;
  letter-spacing: -0.02em;
}

.hero-title .the {
  display: block;
  font-size: 0.35em;
  letter-spacing: 0.6em;
  font-style: normal;
  font-family: var(--font-worn);
  color: var(--amber);
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.2em;
}

.hero-title .archives {
  display: block;
  font-size: 0.35em;
  letter-spacing: 0.6em;
  font-style: normal;
  font-family: var(--font-worn);
  color: var(--amber);
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.2em;
}

.magnus-word {
  display: block;
  color: var(--green);
  text-shadow:
    0 0 30px rgba(0, 168, 79, 0.6),
    0 0 80px rgba(0, 168, 79, 0.2);
}

.hero-subtitle {
  font-family: var(--font-type);
  font-size: 0.75rem;
  letter-spacing: 0.3rem;
  color: var(--text);
  opacity: 0.5;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.5rem;
  animation: fadeInUp 1s ease 0.8s both;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-type);
  font-size: 0.75rem;
  letter-spacing: 0.25rem;
  text-transform: uppercase;
  color: var(--amber);
  padding: 0.8rem 2rem;
  border: 1px solid var(--amber-dim);
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
  animation: fadeInUp 1s ease 1.1s both;
  box-shadow: 0 0 20px rgba(201, 132, 62, 0.2), inset 0 0 20px rgba(201, 132, 62, 0.02);
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.hero-cta:hover {
  color: var(--black);
}

.hero-cta:hover::before {
  transform: translateX(0);
}

/* sections */

section {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem;
  border-top: 2px solid var(--grey);
}

.section-tag {
  font-family: var(--font-type);
  font-size: 0.8125em;
  letter-spacing: 0.3rem;
  color: var(--amber);
  opacity: 0.6;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-tag::before,
.section-tag::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--grey);
}

/* about */

.about-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-style: italic;
  color: var(--cream);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-section p {
  font-family: var(--font-worn);
  font-size: 1rem;
  line-height: 2;
  color: var(--text);
  opacity: 0.8;
  max-width: 70ch;
  margin: 0 auto;
  text-align: left;
}

.about-section p::first-letter {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  float: left;
  line-height: 0.75;
  margin-right: 0.1em;
  margin-top: 0.1em;
  color: var(--green);
  text-shadow: 0 0 20px rgba(0, 168, 79, 0.4);
}

/* quotes */

.quote-section {
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(0, 168, 79, 0.06) 0%, transparent 70%);
}

.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--green);
  line-height: 1.8;
  height: 180px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 20px rgba(0, 168, 79, 0.3);
  transition: opacity 0.4s ease;
  padding: 0 1rem;
}

.quote-text.fading {
  opacity: 0;
}

.quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  font-family: var(--font-type);
  font-size: 0.7rem;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  background: transparent;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(201, 132, 62, 0.1);
}

.quote-btn:hover {
  background: rgba(201, 132, 62, 0.1);
  box-shadow: 0 0 25px rgba(201, 132, 62, 0.3);
  color: var(--cream);
}

/* subscribe */

.subscribe-section {
  text-align: center;
}

.subscribe-section h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.subscribe-section .sub-note {
  font-family: var(--font-type);
  font-size: 0.65rem;
  letter-spacing: 0.3rem;
  color: var(--text);
  opacity: 0.4;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  border: 1px solid var(--grey);
  color: var(--text);
  font-family: var(--font-type);
  font-size: 0.65rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
}

.platform-btn i {
  font-size: 1.5rem;
  color: var(--amber);
  transition: color 0.3s ease, transform 0.3s ease;
}

.platform-btn:hover {
  border-color: var(--green);
  color: var(--cream);
}

.platform-btn:hover i {
  color: var(--cream);
  transform: scale(1.15);
}

/* sequel */

.sequel-section {
  text-align: center;
}

.sequel-section p {
  font-family: var(--font-worn);
  line-height: 1.9;
  opacity: 0.75;
  max-width: 55ch;
  margin: 0 auto;
}

.sequel-section a {
  color: var(--green);
  position: relative;
  font-style: italic;
}

.sequel-section a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 0.3s ease;
}

.sequel-section a:hover::after {
  width: 100%;
}

/* footer */

footer {
  border-top: 1px solid var(--grey);
  padding: 2rem;
  text-align: center;
  opacity: 0.4;
}

footer p {
  font-family: var(--font-type);
  font-size: 0.6rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
}

footer a {
  color: var(--amber);
  transition: color 0.2s;
}

footer a:hover {
  color: var(--green);
}

/* responsive */

@media (max-width: 600px) {

  .hero-title .the,
  .hero-title .archives {
    letter-spacing: 0.3rem;
  }

  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-section p::first-letter {
    font-size: 2.5rem;
  }

  section {
    padding: 3.5rem 1.25rem;
  }
}
