@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #000000;
  --surface: #0b0b0b;
  --surface-hover: #151515;
  --border: #202020;
  --text: #f1f2f4;
  --muted: #858995;
  --accent: #b7ff4a;
  --accent-dark: #8fce2e;
  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
  text-align: center;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  z-index: -1;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-icon {
  color: var(--accent);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 160ms ease;
}

nav a:nth-of-type(9n + 1) { color: #4affa1; } /* spring green */
nav a:nth-of-type(9n + 2) { color: #4adeff; } /* cyan */
nav a:nth-of-type(9n + 3) { color: #4a9eff; } /* sky blue */
nav a:nth-of-type(9n + 4) { color: #a14aff; } /* violet */
nav a:nth-of-type(9n + 5) { color: #ff4ad9; } /* magenta */
nav a:nth-of-type(9n + 6) { color: #ff6a4a; } /* coral */
nav a:nth-of-type(9n + 7) { color: #ffb84a; } /* amber */
nav a:nth-of-type(9n + 8) { color: #fff34a; } /* yellow */
nav a:nth-of-type(9n + 9) { color: #b7ff4a; } /* lime */

nav a:hover {
  filter: brightness(1.25);
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 0 55px;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero-art {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.hero-art .folder,
.hero-art .cloud {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

/* Content / archive sections */
.content {
  padding-bottom: 40px;
}

/* Section links in the Updates table — color matches the target section */
a.section-link[href="#1992"] { color: #4adeff; }
a.section-link[href="#1993-1994"] { color: #4a9eff; }
a.section-link[href="#1995-1996"] { color: #a14aff; }
a.section-link[href="#1997"] { color: #ff4ad9; }
a.section-link[href="#1999"] { color: #ff6a4a; }
a.section-link[href="#2010"] { color: #ffb84a; }

a.section-link {
  text-decoration: none;
  font-weight: 500;
}

a.section-link:hover {
  text-decoration: underline;
  filter: brightness(1.25);
}

/* Fixed column widths so all archive-year tables align when scrolling vertically */
.archive-section .archive-table table th:first-child,
.archive-section .archive-table table td:first-child {
  width: auto;
}

.archive-section .archive-table table th:nth-child(2),
.archive-section .archive-table table td:nth-child(2),
.archive-section .archive-table table th:nth-child(3),
.archive-section .archive-table table td:nth-child(3) {
  width: 80px;
  min-width: 80px;
}

/* Updates table — 2 columns: narrow fixed date, rest goes to description */
#updates .archive-table table {
  table-layout: fixed;
}

#updates .archive-table table th:first-child,
#updates .archive-table table td:first-child {
  width: 140px;
}

#updates .archive-table table th:last-child,
#updates .archive-table table td:last-child {
  width: auto;
  text-align: left;
}

/* Updates table collapses to a few rows and animates open via "More" */
#updates-table.is-collapsible {
  overflow: hidden;
  transition: max-height 420ms ease;
}

@media (prefers-reduced-motion: reduce) {
  #updates-table.is-collapsible {
    transition: none;
  }
}

.more-toggle {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--section-accent, var(--accent));
  cursor: pointer;
}

.more-toggle:hover {
  text-decoration: underline;
  filter: brightness(1.25);
}

/* Back to top link at the end of each section */
.back-to-top {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 160ms ease;
}

.back-to-top:hover {
  color: var(--section-accent, var(--accent));
}

.archive-section {
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

/* Rotating neon accent per year section (cycles every 9) */
.archive-section:nth-of-type(9n + 1) { --section-accent: #4affa1; } /* spring green */
.archive-section:nth-of-type(9n + 2) { --section-accent: #4adeff; } /* cyan */
.archive-section:nth-of-type(9n + 3) { --section-accent: #4a9eff; } /* sky blue */
.archive-section:nth-of-type(9n + 4) { --section-accent: #a14aff; } /* violet */
.archive-section:nth-of-type(9n + 5) { --section-accent: #ff4ad9; } /* magenta */
.archive-section:nth-of-type(9n + 6) { --section-accent: #ff6a4a; } /* coral */
.archive-section:nth-of-type(9n + 7) { --section-accent: #ffb84a; } /* amber */
.archive-section:nth-of-type(9n + 8) { --section-accent: #fff34a; } /* yellow */
.archive-section:nth-of-type(9n + 9) { --section-accent: #b7ff4a; } /* lime */

.section-title {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.section-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--section-accent, var(--accent));
}

.section-name h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--section-accent, var(--accent));
}

/* Tables */
.archive-table {
  overflow-x: auto;
}

table {
  width: 100%;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

thead th {
  padding: 12px 28px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

thead th:first-child {
  text-align: left;
}

tbody td {
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  text-align: center;
}

tbody td:first-child {
  text-align: left;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody td a {
  color: var(--section-accent, var(--accent));
  text-decoration: none;
  font-weight: 500;
}

tbody td a:hover {
  text-decoration: underline;
  filter: brightness(1.25);
}

/* Footer */
footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 38px 0 55px;
  border-top: 1px solid var(--border);
  color: #555965;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

footer a {
  color: #777b86;
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

.archive-email {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero {
    padding: 55px 0 45px;
  }

  thead th,
  tbody td {
    padding: 10px 14px;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }
}
