/* BlockCreeper shutdown mini-site: mirrors main Next.js tokens (globals.css + home hero) */
:root,
html[data-theme="dark"] {
  --bg: #000000;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --body: #d4d4d8;
  --accent: #22c55e;
  --accent-bright: #4ade80;
  --border: rgba(39, 39, 42, 0.8);
  --nav-bg: rgba(0, 0, 0, 0.9);
  --card: rgba(24, 24, 27, 0.85);
  --tag-muted: #71717a;
  --gradient-line: rgba(34, 197, 94, 0.2);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --body: #4b5563;
  --accent: #16a34a;
  --accent-bright: #15803d;
  --border: #e5e7eb;
  --nav-bg: rgba(255, 255, 255, 0.88);
  --card: #ffffff;
  --tag-muted: #9ca3af;
  --gradient-line: rgba(21, 128, 61, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  color: var(--body);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
  transition: color 0.25s ease;
}

/* Matrix rain canvas (matches Next.js MatrixRain.tsx layering) */
.matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: #000000;
}

html[data-theme="light"] .matrix-canvas {
  background: #f3f4f6;
}

.site-main {
  position: relative;
  z-index: 10;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Fixed nav (Navbar-style); above matrix (0) and main (10) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gradient-line),
    transparent
  );
}

.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.brand-lockup:hover {
  text-decoration: none;
}
.brand-lockup img {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.brand-lockup .wordmark {
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.15em;
}
.brand-lockup .wordmark span:first-child {
  color: var(--accent);
}
.brand-lockup .wordmark span:last-child {
  color: var(--text);
}

/* Main column */
.site-main {
  padding-top: 4rem;
  flex: 1;
  position: relative;
}

/* Single-page document: full width on small screens, 75% from sm up */
.page-frame {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem 0 3rem;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .page-frame {
    width: 75%;
    max-width: 75%;
    padding: 1.75rem 0 4rem;
  }
}
@media (min-width: 768px) {
  .page-frame {
    padding: 2rem 0 5rem;
  }
}

.shutdown-document {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(9, 9, 11, 0.72) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.06), 0 24px 48px rgba(0, 0, 0, 0.45);
}

.shutdown-document::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 197, 94, 0.45),
    transparent
  );
  pointer-events: none;
}

.shutdown-document__hero {
  padding: 1.5rem 1.25rem 1.25rem;
}
@media (min-width: 640px) {
  .shutdown-document__hero {
    padding: 1.75rem 2rem 1.5rem;
  }
}
@media (min-width: 1024px) {
  .shutdown-document__hero {
    padding: 2rem clamp(2rem, 5vw, 4rem) 1.75rem;
  }
}

.shutdown-document__divider {
  height: 1px;
  margin: 0 1.25rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(63, 63, 70, 0.9),
    transparent
  );
  box-shadow: 0 1px 0 rgba(34, 197, 94, 0.12);
}
@media (min-width: 640px) {
  .shutdown-document__divider {
    margin: 0 2rem;
  }
}
@media (min-width: 1024px) {
  .shutdown-document__divider {
    margin: 0 clamp(2rem, 5vw, 4rem);
  }
}

.shutdown-document__body {
  padding: 1.5rem 1.25rem 1.75rem;
}
@media (min-width: 640px) {
  .shutdown-document__body {
    padding: 1.75rem 2rem 2rem;
  }
}
@media (min-width: 1024px) {
  .shutdown-document__body {
    padding: 1.75rem clamp(2rem, 5vw, 4rem) 2.25rem;
  }
}

.section-heading {
  margin: 0 0 1.5rem;
  padding: 1rem 1rem 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.08) 0%,
    rgba(34, 197, 94, 0.02) 55%,
    transparent 100%
  );
  border-radius: 0 4px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.section-heading__label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 700;
}

.section-heading__title {
  margin: 0;
  font-size: clamp(1.05rem, 1.25vw + 0.7rem, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--text);
}

.notice-block {
  padding: 0;
  margin-bottom: 1.75rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(63, 63, 70, 0.55);
  border-radius: 4px;
  overflow: hidden;
}

.notice-block__p {
  margin: 0;
  padding: 1.15rem 1.1rem;
  font-size: 12px;
  line-height: 1.8;
  color: var(--body);
  border-bottom: 1px solid rgba(63, 63, 70, 0.45);
}
@media (min-width: 640px) {
  .notice-block__p {
    font-size: 13px;
    padding: 1.25rem 1.35rem;
  }
}

.notice-block__p:last-child {
  border-bottom: none;
}

.notice-block__p--bkcr {
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.04) 0%,
    rgba(0, 0, 0, 0.15) 100%
  );
  border-left: 2px solid rgba(34, 197, 94, 0.35);
  padding-left: calc(1.1rem - 2px);
}
@media (min-width: 640px) {
  .notice-block__p--bkcr {
    padding-left: calc(1.35rem - 2px);
  }
}

.notice-block strong {
  color: var(--text);
  font-weight: 600;
}

.max-w-6xl {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

/* Hero status strip (terminal-style chip) */
.hero-tag {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin-bottom: 1.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
@media (min-width: 640px) {
  .hero-tag {
    margin-bottom: 2.25rem;
    padding: 0.65rem 1.1rem;
    gap: 0.55rem 0.75rem;
  }
}

.pulse-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.55);
  animation: pulse-soft 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-soft {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.tag-line {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (min-width: 640px) {
  .tag-line {
    font-size: 12px;
  }
}

.tag-sep {
  font-size: 10px;
  color: #52525b;
}
html[data-theme="light"] .tag-sep {
  color: #d1d5db;
}

.tag-soft {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--tag-muted);
}
@media (min-width: 640px) {
  .tag-soft {
    font-size: 12px;
  }
}

.shutdown-document__hero .hero-title {
  margin: 0;
}

.operations-period {
  margin: 1.75rem 0 0;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(63, 63, 70, 0.65);
  border-radius: 4px;
  background: linear-gradient(
    165deg,
    rgba(24, 24, 27, 0.9) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  box-shadow: 0 1px 0 rgba(34, 197, 94, 0.08);
}

.operations-period__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tag-muted);
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.operations-period__range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.operations-period__date {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(63, 63, 70, 0.8);
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 640px) {
  .operations-period__date {
    font-size: 13px;
    padding: 0.4rem 0.85rem;
  }
}

.operations-period__sep {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  opacity: 0.85;
}

.hero-title {
  margin: 0 0 1.5rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.hero-title .line1 {
  display: block;
  font-size: clamp(1.875rem, 5vw + 0.5rem, 4.5rem);
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-title .line2 {
  display: block;
  font-size: clamp(1.875rem, 5vw + 0.5rem, 4.5rem);
  color: var(--accent-bright);
  margin-top: 0.5rem;
  text-shadow: 0 0 40px rgba(34, 197, 94, 0.22), 0 2px 20px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .hero-title .line2 {
  color: var(--accent);
}

.hero-lede {
  font-size: 12px;
  line-height: 1.625;
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0 0 2rem;
}
@media (min-width: 640px) {
  .hero-lede {
    font-size: 14px;
  }
}

/* CTA to notice (home page) */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000000;
  background: var(--accent);
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}
html[data-theme="light"] .btn-primary {
  color: #ffffff;
  background: #16a34a;
}
.btn-primary:hover {
  text-decoration: none;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
  text-decoration: none;
  color: var(--accent);
  border-color: rgba(34, 197, 94, 0.45);
}

/* Legacy class names (if used elsewhere) */
.article-shell {
  padding: 2rem 1rem 4rem;
}
.article-max {
  max-width: 42rem;
  margin: 0 auto;
}
.article-meta {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.article-title {
  margin: 0 0 2rem;
  font-size: clamp(1.25rem, 2vw + 0.75rem, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  margin-bottom: 2rem;
}
.post-card p {
  margin: 0 0 1.25rem;
  font-size: 12px;
  line-height: 1.75;
  color: var(--body);
}
.post-card p:last-child {
  margin-bottom: 0;
}
.post-card strong {
  color: var(--text);
  font-weight: 600;
}

.shutdown-document__body .closing-note {
  margin-top: 1.75rem;
}

.closing-note {
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
  padding: 1.1rem 1rem 1.1rem 1.15rem;
  border-left: 2px solid rgba(113, 113, 122, 0.55);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 0 4px 4px 0;
}
@media (min-width: 640px) {
  .closing-note {
    font-size: 13px;
    padding: 1.2rem 1.2rem 1.2rem 1.25rem;
  }
}

.shutdown-document__body .sign-off {
  margin-top: 1.75rem;
  padding-top: 0;
  border-top: none;
}

.sign-off {
  margin-top: 2rem;
  padding: 1.1rem 1rem;
  border-top: 1px solid rgba(63, 63, 70, 0.65);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(34, 197, 94, 0.04) 100%
  );
}

/* Light mode: panels, chips, and typography tuned for gray canvas + dark rain */
html[data-theme="light"] .shutdown-document {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(249, 250, 251, 0.98) 100%
  );
  box-shadow: 0 0 0 1px rgba(21, 128, 61, 0.1), 0 20px 40px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .shutdown-document::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(22, 163, 74, 0.5),
    transparent
  );
}

html[data-theme="light"] .shutdown-document__divider {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(209, 213, 219, 0.95),
    transparent
  );
  box-shadow: 0 1px 0 rgba(22, 163, 74, 0.1);
}

html[data-theme="light"] .section-heading {
  background: linear-gradient(
    90deg,
    rgba(22, 163, 74, 0.1) 0%,
    rgba(22, 163, 74, 0.03) 55%,
    transparent 100%
  );
}

html[data-theme="light"] .hero-tag {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(22, 163, 74, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 1px 2px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .pulse-dot {
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.4);
}

html[data-theme="light"] .hero-title .line1 {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .hero-title .line2 {
  text-shadow: 0 0 32px rgba(22, 163, 74, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .operations-period {
  border-color: #e5e7eb;
  background: linear-gradient(165deg, #ffffff 0%, #f9fafb 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .operations-period__date {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: var(--text);
}

html[data-theme="light"] .notice-block {
  background: rgba(255, 255, 255, 0.75);
  border-color: #e5e7eb;
}

html[data-theme="light"] .notice-block__p {
  border-bottom-color: #e5e7eb;
}

html[data-theme="light"] .notice-block__p--bkcr {
  background: linear-gradient(
    180deg,
    rgba(22, 163, 74, 0.07) 0%,
    rgba(249, 250, 251, 0.95) 100%
  );
  border-left-color: rgba(22, 163, 74, 0.45);
}

html[data-theme="light"] .closing-note {
  background: #f9fafb;
  border-left-color: #d1d5db;
}

html[data-theme="light"] .shutdown-document__body .sign-off,
html[data-theme="light"] .sign-off {
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(22, 163, 74, 0.05) 100%
  );
}

/* 404 page (static 404.html for Vercel) */
.not-found {
  padding: 0;
}

.not-found__inner {
  padding: 2.5rem 1.25rem 2.75rem;
  text-align: center;
  max-width: 28rem;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .not-found__inner {
    padding: 3rem 1.5rem 3.25rem;
  }
}

.not-found__code {
  font-size: clamp(3.25rem, 11vw + 1rem, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 1rem;
  color: var(--text);
}

html[data-theme="light"] .not-found__code {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.not-found__title {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.not-found__body {
  margin: 0 0 1.75rem;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
}
@media (min-width: 640px) {
  .not-found__body {
    font-size: 13px;
  }
}

.not-found__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--accent);
  border-radius: 2px;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

html[data-theme="light"] .not-found__link {
  background: #16a34a;
}

.not-found__link:hover {
  text-decoration: none;
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.35);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
