:root {
  color-scheme: dark;
  --bg: #101112;
  --panel: #17191a;
  --ink: #f3f3ed;
  --muted: #a0a29c;
  --line: #343736;
  --yellow: #f5e400;
  --yellow-soft: #c8bd00;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

a { color: inherit; }

.page {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
}

.topbar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.wordmark-name span { color: var(--yellow); }

.wordmark-caption,
.topbar-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar-label { text-align: right; }

.monthly-intro {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 24px;
  padding: 48px 0 32px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 0.98;
}

h1 span { color: var(--yellow); }

.intro-copy {
  max-width: 500px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 12px;
  border-top: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head span {
  color: var(--muted);
  font-size: 0.8rem;
}

.months {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 36px;
  counter-reset: month;
}

.month {
  position: relative;
  display: flex;
  min-height: 148px;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  counter-increment: month;
  isolation: isolate;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.month::before {
  color: var(--yellow);
  content: counter(month, decimal-leading-zero);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
}

.month::after {
  position: absolute;
  z-index: -1;
  top: -46px;
  right: -42px;
  width: 130px;
  height: 130px;
  border: 1px solid #f5e40024;
  border-radius: 50%;
  box-shadow: 0 0 0 14px #f5e40008, 0 0 0 30px #f5e40006;
  content: "";
}

.month:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
  background: var(--panel);
}

a.month:hover {
  border-color: var(--yellow);
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--yellow), 0 0 18px #f5e40020;
}

.month:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.month-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.month-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

a.month .month-status,
a.month .arrow { color: var(--yellow); }

.arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--yellow);
  font-size: 0.95rem;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.month:hover .arrow {
  border-color: var(--yellow);
  background: transparent;
  color: var(--yellow);
}

a.month:hover .arrow {
  border-color: var(--yellow);
  background: transparent;
  color: var(--yellow);
}

@media (max-width: 900px) {
  .months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .page { width: min(100% - 32px, 560px); }
  .monthly-intro { grid-template-columns: 1fr; padding-top: 36px; }
  h1 { font-size: 3rem; }
  .months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .month { min-height: 126px; }
  .wordmark-caption { display: none; }
}

@media (max-width: 380px) {
  .page { width: min(100% - 24px, 560px); }
  h1 { font-size: 2.4rem; }
  .months { gap: 8px; }
  .month { min-height: 116px; padding: 12px; }
  .month-name { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}