:root {
  --font-display: "Space Grotesk", "Arial Black", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;

  --bg: #0e0e10;
  --bg-elev: rgba(22, 22, 26, 0.72);
  --bg-nested: rgba(18, 18, 22, 0.84);
  --fg: #ececec;
  --muted: #b5b5bc;
  --line: #c8bfd8;
  --accent: #0a66c2;
  --accent-2: #0a66c2;

  --shadow-color: #3a3a42;
  --shadow: 8px 8px 0 var(--shadow-color);
  --border: 3px solid var(--line);
}

:root[data-theme="light"] {
  --bg: #ece7dc;
  --bg-elev: rgba(246, 241, 230, 0.7);
  --bg-nested: rgba(244, 238, 224, 0.83);
  --fg: #1a1713;
  --muted: #3a342d;
  --line: #2a2520;
  --accent: #0a66c2;
  --accent-2: #0a66c2;
  --shadow-color: #5a544c;
  --shadow: 8px 8px 0 #5a544c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.55;
}

.topbar {
  width: min(1050px, calc(100% - 2rem));
  margin: 1rem auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.toggle {
  border: var(--border);
  background: var(--bg-elev);
  color: var(--fg);
  font: inherit;
  font-weight: 700;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  box-shadow: 4px 4px 0 var(--shadow-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
}

.layout {
  width: min(1050px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  display: grid;
  gap: 0.9rem;
}

.block {
  border: var(--border);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  padding: 1rem;
  backdrop-filter: blur(4px) saturate(92%);
  -webkit-backdrop-filter: blur(4px) saturate(92%);
}

.kicker {
  margin: 0;
  display: inline-block;
  border: var(--border);
  padding: 0.2rem 0.5rem;
  background: transparent;
  color: var(--fg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0.5rem 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2rem, 7.2vw, 3.8rem);
}

h2 {
  font-size: clamp(1.1rem, 3.2vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.headline {
  margin: 0;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
}

.summary {
  max-width: 72ch;
  color: var(--muted);
}

.grid-two {
  display: grid;
  gap: 0.6rem;
}

.stack-list {
  list-style: square;
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.3rem;
}

.token-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.token {
  margin: 0;
  border: var(--border);
  padding: 0.42rem 0.65rem;
  font-weight: 700;
  background: #1f1f25;
}

:root[data-theme="light"] .token {
  background: #f7f7f4;
}

.timeline {
  display: grid;
  gap: 0.65rem;
}

.entry {
  border: var(--border);
  padding: 0.75rem;
  background: color-mix(in srgb, var(--bg-nested) 82%, transparent);
  backdrop-filter: blur(3px) saturate(95%);
  -webkit-backdrop-filter: blur(3px) saturate(95%);
}

:root[data-theme="light"] .entry {
  background: var(--bg-nested);
}

.meta {
  margin: 0;
  font-weight: 700;
  color: var(--accent-2);
}


.brutalist-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 210px;
  height: 60px;
  margin-top: 0.5rem;
  background: var(--accent-2);
  color: #f4fbff;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  border: var(--border);
  outline: 3px solid var(--bg);
  box-shadow: 6px 6px 0 var(--shadow-color);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out, color 0.12s ease-out;
  padding: 0 15px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.brutalist-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  z-index: 1;
  opacity: 0;
}

@keyframes slide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.brutalist-button:hover::before {
  opacity: 1;
  animation: slide 1.8s infinite;
}

.brutalist-button:hover,
.brutalist-button:focus-visible {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--shadow-color);
}

.brutalist-button:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--shadow-color);
  background: var(--bg-elev);
  color: var(--fg);
}

.button-text {
  display: flex;
  flex-direction: column;
  font-family: inherit;
  line-height: 1.2;
  transition: transform 0.2s ease-out;
  position: relative;
  z-index: 1;
}

.brutalist-button:hover .button-text {
  transform: skew(-5deg);
}

.brutalist-button:active .button-text {
  transform: skew(5deg);
}

.button-text span:first-child {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.button-text span:last-child {
  font-size: 16px;
  text-transform: uppercase;
}

.toggle:hover,
.toggle:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--shadow-color);
}

a:focus-visible,
button:focus-visible {
  outline: 3px dashed var(--accent-2);
  outline-offset: 2px;
}

@media (min-width: 900px) {
  .grid-two {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
