:root {
  --bg: #000000;
  --fg: #ffffff;
  --accent: #6dff33;
  --line: rgba(255, 255, 255, 0.08);
  --muted: rgba(255, 255, 255, 0.45);
  --muted-2: rgba(255, 255, 255, 0.28);
  --radius: 18px;
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- layout ---------- */

.page {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(48px, 9vh, 104px) clamp(20px, 4vw, 40px) 56px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero {
  margin-bottom: clamp(56px, 9vh, 104px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(109, 255, 51, 0.28);
  background: rgba(109, 255, 51, 0.06);
  border-radius: 999px;
  padding: 5px 12px 5px 10px;
  margin-bottom: 22px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

h1 {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  flex: 1;
}

.card {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  padding: 26px 24px 18px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: cardIn 720ms cubic-bezier(0.22, 0.68, 0.32, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes cardIn {
  to { opacity: 1; transform: none; }
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.marker {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(109, 255, 51, 0.55);
}

.card-head h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.note {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted-2);
  text-align: right;
}

/* ---------- links ---------- */

.links {
  list-style: none;
}

.link-item {
  border-bottom: 1px solid var(--line);
  opacity: 0;
  animation: linkIn 520ms ease forwards;
  animation-delay: calc(var(--delay, 0ms) + 160ms + var(--i) * 70ms);
}

.link-item:last-child {
  border-bottom: none;
}

@keyframes linkIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: none; }
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 12px 15px 4px;
  text-decoration: none;
  color: var(--fg);
  border-radius: 10px;
  position: relative;
  transition: background-color 200ms ease, padding-left 220ms ease;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height 220ms ease;
}

.link:hover,
.link:focus-visible {
  background: rgba(255, 255, 255, 0.035);
  padding-left: 14px;
  outline: none;
}

.link:hover::after,
.link:focus-visible::after {
  height: 62%;
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.url {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.date {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted-2);
  transition: color 220ms ease;
}

.arrow {
  margin-left: auto;
  font-size: 15px;
  color: var(--muted-2);
  transition: color 200ms ease, transform 200ms ease;
}

.link:hover .arrow,
.link:focus-visible .arrow {
  color: var(--accent);
}

.link:hover .arrow {
  transform: translate(2px, -2px);
}

.link:hover .date,
.link:focus-visible .date {
  color: var(--muted);
}

/* ---------- footer ---------- */

.foot {
  margin-top: clamp(32px, 5vh, 56px);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page {
    min-height: 0;
    padding-bottom: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card,
  .link-item {
    opacity: 1;
    transform: none;
  }
}
