/* ── Tokyo Terminal — website mirror of tokyo-terminal-obsd Obsidian theme ── */

:root {
  /* Core palette lifted directly from the Obsidian theme */
  --tt-bg:        #060507;
  --tt-bg-alt:    #2a2436;
  --tt-cyan:      #34e2e2;
  --tt-cyan-soft: #ACEEEE;
  --tt-yellow:    #FFE61C;
  --tt-orange:    #fe8019;
  --tt-green:     #A3FF8C;
  --tt-chartreuse:#7fff00;
  --tt-pink:      hotpink;
  --tt-purple:    #8b5cf6;
  --tt-blue:      #3465a4;
  --tt-teal:      #116d61;
  --tt-gray:      #999998;
  --tt-gold:      #E3E9AE;
  --tt-red:       #fc5698;
  --tt-breadcrumb-text: hotpink;
  --tt-breadcrumb-glow: rgba(255, 105, 180, 0.7);
  --tt-heading-rainbow: linear-gradient(
    90deg,
    var(--tt-purple),
    var(--tt-cyan),
    var(--tt-green),
    var(--tt-cyan),
    var(--tt-purple)
  );
  --tt-sky-top: #060507;
  --tt-sky-mid: #100d18;
  --tt-sky-bottom: #1a1630;
  --tt-shell-bg: rgba(6, 5, 7, 0.74);
  --tt-shell-surface: rgba(42, 36, 54, 0.78);
  --tt-aurora-purple: rgba(139, 92, 246, 0.16);
  --tt-aurora-cyan: rgba(52, 226, 226, 0.12);
  --tt-star: rgba(172, 238, 238, 0.92);
  --tt-firework-shadow: rgba(255, 230, 28, 0.12);

  /* Semantic aliases */
  --bg:           var(--tt-bg);
  --surface:      var(--tt-bg-alt);
  --text:         var(--tt-cyan);
  --text-soft:    var(--tt-cyan-soft);
  --muted:        var(--tt-gray);
  --border:       var(--tt-cyan);
  --border-dim:   rgba(52, 226, 226, 0.25);
  --border-teal:  rgba(17, 109, 97, 0.6);

  --font-mono: "JetBrains Mono", Menlo, SFMono-Regular, Consolas, "Fira Code",
               "Roboto Mono", "Source Code Pro", monospace;
  --font-sans: Avenir, "Avenir Next", system-ui, sans-serif;
  --font-serif: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  --font-cursive: "Segoe Script", "Lucida Handwriting", "Brush Script MT", cursive;
}

/* ── Reset / Base ─────────────────────────────────────────────────────────── */

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

body {
  margin: 0;
  border: none;
  position: relative;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--tt-bg);
  background-image:
    radial-gradient(circle at 18% 18%, var(--tt-aurora-purple), transparent 30%),
    radial-gradient(circle at 82% 12%, var(--tt-aurora-cyan), transparent 24%),
    linear-gradient(180deg, var(--tt-sky-top) 0%, var(--tt-sky-mid) 48%, var(--tt-sky-bottom) 100%);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

/* subtle scanline flicker */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.04) 0px,
    rgba(0, 0, 0, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
}

body.has-sparkler-cursor,
body.has-sparkler-cursor a,
body.has-sparkler-cursor button,
body.has-sparkler-cursor input,
body.has-sparkler-cursor select,
body.has-sparkler-cursor textarea,
body.has-sparkler-cursor summary,
body.has-sparkler-cursor [role="button"] {
  cursor: none;
}

.sparkler-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  pointer-events: none;
  z-index: 12;
  opacity: 0;
  transform: translate3d(-120px, -120px, 0);
  transition: opacity 0.16s ease;
  will-change: transform, opacity;
  mix-blend-mode: screen;
}

.sparkler-cursor.is-visible {
  opacity: 1;
}

.sparkler-cursor::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 28px;
  left: 11px;
  top: 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(227, 233, 174, 0.98) 0%, rgba(255, 230, 28, 0.88) 42%, rgba(173, 120, 20, 0.78) 100%);
  box-shadow: 0 0 7px rgba(255, 230, 28, 0.35);
  transform: rotate(40deg);
  transform-origin: center;
}

.sparkler-cursor::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  left: 15px;
  top: 1px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 1) 0 11%, rgba(255, 230, 28, 0.98) 12% 20%, rgba(255, 230, 28, 0) 44%),
    repeating-conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0) 0deg 9deg,
      rgba(255, 255, 255, 0.96) 9deg 10deg,
      rgba(255, 230, 28, 0.8) 10deg 11deg,
      rgba(255, 255, 255, 0) 11deg 20deg
    ),
    conic-gradient(
      from 0deg,
      var(--tt-purple),
      var(--tt-cyan),
      var(--tt-green),
      var(--tt-yellow),
      var(--tt-orange),
      var(--tt-pink),
      var(--tt-purple)
    );
  box-shadow:
    0 0 14px rgba(255, 230, 28, 0.72),
    0 0 30px rgba(52, 226, 226, 0.35),
    0 0 46px rgba(139, 92, 246, 0.25);
  animation: sparklerPulse 0.56s steps(2, end) infinite, sparklerSpin 1.9s linear infinite;
}

.sparkler-cursor.is-active::after {
  box-shadow:
    0 0 18px rgba(255, 230, 28, 0.88),
    0 0 38px rgba(52, 226, 226, 0.42),
    0 0 56px rgba(139, 92, 246, 0.32);
  animation-duration: 0.34s, 1.2s;
}

.night-sky {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.night-sky::after {
  content: none;
}

.night-sky__stars,
.night-sky__aurora,
.night-sky__fireworks {
  position: absolute;
  inset: -10%;
}

.night-sky__stars {
  opacity: 0.6;
}

.night-sky__stars--far {
  background-image:
    radial-gradient(circle at 20% 30%, var(--tt-star) 0 0.8px, transparent 1.2px),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.76) 0 0.7px, transparent 1.05px),
    radial-gradient(circle at 35% 70%, rgba(172, 238, 238, 0.58) 0 0.9px, transparent 1.25px),
    radial-gradient(circle at 62% 54%, rgba(255, 255, 255, 0.55) 0 0.75px, transparent 1px);
  background-size: 220px 220px, 280px 260px, 320px 320px, 360px 300px;
  background-position: 0 0, 70px 35px, 110px 55px, 40px 105px;
  animation: skyDrift 90s linear infinite;
}

.night-sky__stars--near {
  background-image:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.9) 0 1.1px, transparent 1.55px),
    radial-gradient(circle at 76% 18%, rgba(172, 238, 238, 0.82) 0 1px, transparent 1.4px),
    radial-gradient(circle at 58% 63%, rgba(255, 255, 255, 0.74) 0 1px, transparent 1.45px),
    radial-gradient(circle at 34% 78%, rgba(172, 238, 238, 0.72) 0 0.9px, transparent 1.3px);
  background-size: 150px 150px, 190px 190px, 230px 230px, 280px 250px;
  background-position: 10px 20px, 80px 40px, 30px 110px, 120px 60px;
  animation: skyDriftReverse 65s linear infinite, starPulse 11s ease-in-out infinite;
}

.night-sky__aurora {
  background:
    radial-gradient(circle at 15% 18%, rgba(139, 92, 246, 0.2), transparent 26%),
    radial-gradient(circle at 78% 12%, rgba(52, 226, 226, 0.16), transparent 22%),
    radial-gradient(circle at 55% 82%, rgba(139, 92, 246, 0.1), transparent 28%);
  filter: blur(34px);
  opacity: 0.8;
  animation: auroraFloat 24s ease-in-out infinite alternate;
}

.night-sky__fireworks {
  opacity: 0.72;
}

.firework {
  --size: 12rem;
  --x: 50%;
  --y: 20%;
  --duration: 18s;
  --delay: 0s;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  aspect-ratio: 1;
  opacity: 0;
  transform: translate(-50%, -26%) scale(0.05);
  mix-blend-mode: screen;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.16));
  animation: fireworkBurst var(--duration) cubic-bezier(0.22, 0.74, 0.18, 1) infinite;
  animation-delay: var(--delay);
}

.firework::before,
.firework::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.firework::before {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 4%, rgba(255, 230, 28, 0.92) 5% 8%, transparent 10%),
    repeating-conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0) 0deg 8deg,
      rgba(255, 255, 255, 0.98) 8deg 9deg,
      rgba(255, 230, 28, 0.82) 9deg 10deg,
      rgba(255, 255, 255, 0) 10deg 18deg
    ),
    conic-gradient(
      from 0deg,
      var(--tt-purple),
      var(--tt-cyan),
      var(--tt-green),
      var(--tt-yellow),
      var(--tt-orange),
      var(--tt-pink),
      var(--tt-purple)
    );
  background-blend-mode: screen, screen, normal;
  -webkit-mask: radial-gradient(circle, transparent 0 10%, #000 15% 49%, transparent 66%);
  mask: radial-gradient(circle, transparent 0 10%, #000 15% 49%, transparent 66%);
  box-shadow:
    0 0 24px rgba(255, 255, 255, 0.24),
    0 0 48px rgba(255, 230, 28, 0.16),
    0 0 70px rgba(139, 92, 246, 0.14);
}

.firework::after {
  inset: 20%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.34) 0 10%, rgba(255, 230, 28, 0.16) 24%, rgba(52, 226, 226, 0.12) 44%, transparent 70%),
    repeating-conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0) 0deg 11deg,
      rgba(255, 255, 255, 0.58) 11deg 12deg,
      rgba(255, 255, 255, 0) 12deg 22deg
    );
  filter: blur(8px);
  opacity: 0.68;
}

.firework--a {
  --size: 10rem;
  --x: 16%;
  --y: 21%;
  --duration: 19s;
  --delay: -1.5s;
}

.firework--b {
  --size: 11rem;
  --x: 74%;
  --y: 15%;
  --duration: 21s;
  --delay: -7s;
}

.firework--c {
  --size: 13rem;
  --x: 86%;
  --y: 31%;
  --duration: 24s;
  --delay: -12s;
}

.firework--d {
  --size: 9rem;
  --x: 34%;
  --y: 14%;
  --duration: 22s;
  --delay: -16s;
}

@keyframes skyDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-120px, 70px, 0); }
}

@keyframes skyDriftReverse {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(95px, 55px, 0); }
}

@keyframes starPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.82; }
}

@keyframes auroraFloat {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  100% { transform: translate3d(2%, 1.5%, 0) scale(1.08); }
}

@keyframes sparklerPulse {
  0%, 100% { opacity: 0.88; filter: brightness(0.96) blur(0); }
  50% { opacity: 1; filter: brightness(1.28) blur(0.35px); }
}

@keyframes sparklerSpin {
  0% { transform: rotate(0deg) scale(0.96); }
  55% { transform: rotate(22deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(0.98); }
}

@keyframes fireworkBurst {
  0%, 14% {
    opacity: 0;
    transform: translate(-50%, -26%) scale(0.05);
  }
  18% {
    opacity: 0.3;
    transform: translate(-50%, -34%) scale(0.1);
  }
  24% {
    opacity: 1;
    transform: translate(-50%, -42%) scale(0.34);
  }
  32% {
    opacity: 0.92;
    transform: translate(-50%, -49%) scale(0.8);
  }
  42% {
    opacity: 0.68;
    transform: translate(-50%, -54%) scale(1.06);
  }
  52% {
    opacity: 0.28;
    transform: translate(-50%, -59%) scale(1.24);
  }
  62%, 100% {
    opacity: 0;
    transform: translate(-50%, -64%) scale(1.42);
  }
}

/* ── Scrollbar ────────────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 9px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: var(--tt-teal); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--tt-cyan); }
::-webkit-scrollbar-thumb:active { background-color: var(--tt-purple); }

/* ── Header ───────────────────────────────────────────────────────────────── */

header {
  background-color: transparent;
  box-shadow: none;
  color: var(--text);
  padding: 1.1rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* neon glow strip across top */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--tt-heading-rainbow);
  animation: scanGlow 4s linear infinite;
  background-size: 200% 100%;
}

@keyframes scanGlow {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ── Brand ────────────────────────────────────────────────────────────────── */

header .brand a {
  color: var(--tt-yellow);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  font-style: italic;
  font-family: var(--font-cursive);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow:
    0 0 12px rgba(255, 230, 28, 0.55),
    0 0 30px rgba(255, 230, 28, 0.25);
  display: inline-block;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

header .brand a:hover {
  color: var(--tt-yellow);
  text-shadow:
    0 0 18px rgba(255, 230, 28, 0.85),
    0 0 50px rgba(255, 230, 28, 0.45),
    0 0 90px rgba(255, 230, 28, 0.2);
}

/* ── Time Bar ─────────────────────────────────────────────────────────────── */

.time-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
  margin-top: 0.75rem;
  background: var(--tt-shell-bg);
  border-radius: 3px;
  border: 1px solid var(--tt-cyan);
  color: var(--tt-pink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(52, 226, 226, 0.12), inset 0 0 8px rgba(17, 109, 97, 0.2);
}

/* Hide legacy standalone time bar only when breadcrumb nav already includes the clock. */
.breadcrumb-nav:has(#month-time) + .time-bar { display: none; }

.time-bar span {
  display: inline-flex;
  gap: 0.5rem;
}

/* ── Navigation links ─────────────────────────────────────────────────────── */

.nav-links a,
header nav {
  color: var(--tt-cyan);
}

.nav-links a {
  text-decoration: none;
  margin-right: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ── Main Content ─────────────────────────────────────────────────────────── */

main {
  max-width: 1080px;
  padding: 2.5rem 1.75rem;
  margin: 1.75rem auto 3rem;
  background-color: transparent;
  border: none;
  border-radius: 3px;
  box-shadow: 0 0 30px rgba(6, 5, 7, 0.22);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  position: relative;
  z-index: 1;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--tt-gray);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border-top: none;
  position: relative;
  z-index: 1;
}

/* ── Typography ───────────────────────────────────────────────────────────── */

h1 {
  color: var(--tt-yellow);
  font-family: var(--font-cursive);
  font-style: italic;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
  text-shadow:
    0 0 10px rgba(255, 230, 28, 0.38),
    0 0 24px rgba(52, 226, 226, 0.22),
    0 0 38px rgba(139, 92, 246, 0.16);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 {
    background-image: var(--tt-heading-rainbow);
    background-size: 200% 100%;
    background-position: 0% 0%;
    animation: scanGlow 4s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

h2 {
  color: var(--tt-orange);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  letter-spacing: 0.02em;
  margin-top: 2.5rem;
  text-shadow: 0 0 8px rgba(254, 128, 25, 0.35);
}

h3 {
  color: var(--tt-chartreuse);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.6vw, 1.6rem);
  text-shadow: 0 0 8px rgba(127, 255, 0, 0.3);
}

h4 {
  color: var(--tt-teal);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
}

h5 {
  color: var(--tt-gray);
  font-weight: 700;
  font-size: 1rem;
}

h6 {
  color: var(--tt-blue);
  font-weight: 700;
  font-size: 0.95rem;
}

p {
  color: var(--tt-cyan);
}

strong, b {
  color: var(--tt-chartreuse);
  font-weight: 700;
}

em, i {
  color: var(--tt-teal);
}

mark {
  background: transparent;
  color: var(--tt-gold);
  font-weight: 500;
  text-shadow: 0 0 6px rgba(163, 255, 140, 0.4);
  background-image: linear-gradient(60deg, var(--tt-gold) 0%, var(--tt-chartreuse) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Code ─────────────────────────────────────────────────────────────────── */

code {
  background-color: var(--tt-shell-surface);
  color: #ECEFF4;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

pre {
  background-color: var(--tt-shell-surface);
  color: #ECEFF4;
  padding: 1.1rem 1.25rem;
  border-radius: 3px;
  overflow-x: auto;
  border: 1px solid var(--border-dim);
  font-family: var(--font-mono);
  font-size: 0.88em;
  box-shadow: inset 0 0 20px rgba(6, 5, 7, 0.5);
}

pre code {
  background: transparent;
  padding: 0;
}

/* ── Links ────────────────────────────────────────────────────────────────── */

a {
  color: var(--tt-blue);
  position: relative;
  text-decoration: underline;
  font-weight: 400;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--tt-cyan);
  text-shadow: 0 0 10px rgba(52, 226, 226, 0.5);
  text-decoration: underline;
}

/* ── Lists ────────────────────────────────────────────────────────────────── */

.page-list,
ul {
  padding-left: 1.2rem;
}

.page-list li {
  margin-bottom: 0.65rem;
}

li::marker {
  color: var(--tt-orange);
}

/* ── Blockquote ───────────────────────────────────────────────────────────── */

blockquote {
  border-left: 2px solid var(--tt-green);
  color: var(--tt-green);
  margin-left: 0;
  padding: 0.5rem 1.2rem;
  background: rgba(163, 255, 140, 0.04);
}

/* ── Tables ───────────────────────────────────────────────────────────────── */

table {
  background-color: var(--tt-bg-alt);
  border-collapse: collapse;
  width: 100%;
}

th {
  background-color: var(--tt-chartreuse);
  color: var(--tt-bg);
  padding: 0.5rem 0.75rem;
  font-weight: 800;
}

td {
  color: var(--tt-cyan-soft);
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--border-dim);
}

/* ── Tags ─────────────────────────────────────────────────────────────────── */

.tag {
  background-color: var(--tt-bg-alt);
  color: var(--tt-green);
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.82em;
  border: 1px solid transparent;
}

/* ── Folder Sections ──────────────────────────────────────────────────────── */

.folder-section {
  margin: 1.75rem 0;
  padding: 1.5rem 1.75rem;
  background-color: transparent;
  border-radius: 3px;
  border: 1px solid rgba(52, 226, 226, 0.12);
  border-left: 2px solid rgba(52, 226, 226, 0.22);
  box-shadow: 0 0 20px rgba(52, 226, 226, 0.06);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.folder-section:hover {
  border-left-color: transparent;
  box-shadow: 0 0 35px rgba(52, 226, 226, 0.15);
}

.folder-section h3 {
  margin-top: 0;
  letter-spacing: 0.02em;
}

.folder-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.folder-section li {
  margin-bottom: 0.5rem;
}

.folder-section a {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ── Misc Utility ─────────────────────────────────────────────────────────── */

.more-items {
  font-style: italic;
  color: var(--tt-gray);
  margin-top: 0.5rem;
}

.sitemap-link {
  display: inline-block;
  margin: 1rem 0;
  padding: 0.6rem 1.2rem;
  background: transparent;
  color: var(--tt-cyan);
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  box-shadow: 0 0 10px rgba(52, 226, 226, 0.15);
}

.sitemap-link:hover {
  background: rgba(52, 226, 226, 0.1);
  box-shadow: 0 0 22px rgba(52, 226, 226, 0.35);
  color: var(--tt-cyan);
  text-shadow: 0 0 8px rgba(52, 226, 226, 0.6);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-dim);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--tt-orange);
  margin-bottom: 1rem;
}

.hero-copy p {
  font-size: 1rem;
  color: var(--tt-cyan);
  max-width: 680px;
  line-height: 1.8;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.hero-card {
  background: transparent;
  border: 1px solid var(--border-dim);
  border-top: 2px solid var(--tt-purple);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.12);
  backdrop-filter: none;
  transition: box-shadow 0.3s ease;
}

.hero-card:hover {
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.25);
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--tt-orange);
  text-shadow: 0 0 8px rgba(254, 128, 25, 0.3);
}

.hero-card p {
  margin: 0.65rem 0 0;
  color: var(--tt-cyan-soft);
}

/* ── Content Grid ─────────────────────────────────────────────────────────── */

.content-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.sitemap { max-width: 100%; }

.sitemap-list li { padding: 0.25rem 0; }

/* ── Breadcrumb Nav ───────────────────────────────────────────────────────── */

.breadcrumb-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
  padding: 0.55rem 0.7rem;
  background: var(--tt-shell-bg);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  box-shadow: 0 0 14px rgba(52, 226, 226, 0.12), inset 0 0 12px rgba(17, 109, 97, 0.22);
}

.breadcrumbs {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--tt-breadcrumb-text);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.1rem;
  min-height: 1rem;
  flex: 1 1 auto;
  width: 100%;
  justify-content: center;
  text-align: center;
  text-shadow: 0 0 10px var(--tt-breadcrumb-glow);
}

.breadcrumb-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-left: 0;
  width: 100%;
  flex-wrap: wrap;
}

.breadcrumbs-time {
  color: var(--tt-breadcrumb-text) !important;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 10px var(--tt-breadcrumb-glow);
}

#month-time { color: var(--tt-breadcrumb-text) !important; }

.breadcrumbs a {
  color: var(--tt-breadcrumb-text);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  text-align: center;
  text-shadow: 0 0 10px var(--tt-breadcrumb-glow);
}

.breadcrumbs a:visited,
.breadcrumbs a:active {
  color: var(--tt-breadcrumb-text);
}

.breadcrumbs a:hover {
  color: var(--tt-breadcrumb-text);
  text-shadow: 0 0 14px var(--tt-breadcrumb-glow);
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 0.4rem;
  color: var(--tt-breadcrumb-text);
  opacity: 0.85;
  text-shadow: 0 0 8px var(--tt-breadcrumb-glow);
}

.theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.theme-dot {
  --dot-size: 0.85rem;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 999px;
  border: 1px solid rgba(236, 239, 244, 0.25);
  background: var(--theme-preview);
  box-shadow: 0 0 0 1px rgba(6, 5, 7, 0.75);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-dot:hover,
.theme-dot:focus-visible {
  transform: scale(1.55);
  border-color: var(--tt-cyan);
  box-shadow:
    0 0 0 1px rgba(6, 5, 7, 0.9),
    0 0 10px rgba(52, 226, 226, 0.35);
}

.theme-dot:focus-visible {
  outline: 1px solid var(--tt-yellow);
  outline-offset: 2px;
}

.theme-dot.is-active {
  border-color: var(--tt-yellow);
  box-shadow:
    0 0 0 1px rgba(6, 5, 7, 0.9),
    0 0 12px rgba(255, 230, 28, 0.55);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  header { justify-content: center; }
  main { padding: 1.25rem 1rem; }
  .night-sky__fireworks { opacity: 0.52; }
  .firework--c,
  .firework--d { display: none; }

  .hero { grid-template-columns: 1fr; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(2rem, 7vw, 3rem); }

  .breadcrumb-nav {
    flex-basis: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
    justify-content: center;
  }

  .breadcrumb-meta {
    width: 100%;
    justify-content: center;
  }

  .breadcrumbs-time {
    font-size: 0.72rem;
  }

  .breadcrumbs { font-size: 0.78rem; }
  .breadcrumb-sep { margin: 0 0.25rem; }
  .theme-dot { --dot-size: 0.8rem; }
}

@media (max-width: 1024px) {
  .breadcrumbs { font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .night-sky__stars,
  .night-sky__aurora,
  .firework,
  .sparkler-cursor::after,
  header::before,
  h1 {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
