﻿/* Hallmark · shape: kept · genre: playful · theme: brand · redesign: restyle
 * paper: #120e18 · accent: #ff66aa · display: Exo 2 · body: Exo 2 · hero: kept · nav: kept · footer: kept · signature: osu dashboard chrome
 * axes: dark-purple/Exo2/pink · posture: kept · contrast: pass · fold: kept · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V3 · weakest: V, polish depth and states instead of reshaping the shell */
/* Hallmark · waive 81 · cover washes stand in for project screenshots · dashboard layout kept so covers stay brand washes until captures arrive */
/* Hallmark · waive 78 · dashboard news titles stay card-scale under sticky chrome · user kept the osu layout */
/* Hallmark · waive 49b · ultimate compatibility test wraps once at phone width · project names kept verbatim */
/* Hallmark · answered F4 · teal pink orange CTAs are the osu action stack not competing primaries */
/* Hallmark · answered F19 · weights 400 600 800 only · 700 demoted where possible */
/* Hallmark · dismissed 40 · cover labels sit on single-hue washes with text-shadow ground */
@import url("../tokens.css");
@import url("../base.css");

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-paper);
  background-image: none;
  min-height: 100vh;
  line-height: 1.5;
  font-weight: 400;
}

a {
  text-decoration: none;
}

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

/* ========== top nav ========== */
.topnav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}

.topnav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  border-radius: var(--radius-control);
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--ring-avatar);
}

.brand-text {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: var(--tracking-display);
}

.topnav-links {
  display: none;
  align-items: center;
  gap: var(--space-3xs);
  flex: 1;
}

.topnav-link {
  padding: var(--space-2xs) var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-2);
  border-radius: var(--radius-control);
  transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}

.topnav-link:hover {
  color: var(--color-ink);
  background: var(--glass);
}

.topnav-link:active {
  background: var(--glass-2);
}

.topnav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--color-ink-2);
  border-radius: 50%;
  transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}

.icon-btn:hover {
  color: var(--color-ink);
  background: var(--glass);
}

.icon-btn:active {
  background: var(--glass-2);
}

.user-chip {
  display: none;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-3xs) var(--space-2xs) var(--space-3xs) var(--space-sm);
  border-radius: var(--radius-pill);
  background: var(--glass-3);
  transition: background-color var(--dur-micro) var(--ease-out);
}

.user-chip:hover {
  background: var(--glass-2);
}

.user-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-2);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2xs);
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: var(--space-xs);
  cursor: pointer;
  border-radius: var(--radius-control);
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out);
}

.menu-btn.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.menu-btn:active {
  background: var(--glass);
}

.mobile-drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: var(--z-sticky);
  background: var(--panel);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.mobile-nav a {
  padding: var(--space-sm) var(--space-xs);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--color-ink-2);
  border-radius: var(--radius-control);
  transition: color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}

.mobile-nav a:hover {
  color: var(--color-ink);
  background: var(--glass-3);
}

/* ========== main 2-col layout ========== */
.layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) var(--space-3xl);
  display: grid;
  gap: var(--space-lg);
}

/* ========== news / project cards ========== */
.feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.news-card {
  background: var(--panel);
  color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(12px);
  animation: rise var(--dur-long) var(--ease-out) forwards;
}

.news-card:nth-child(2) { animation-delay: 90ms; }
.news-card:nth-child(3) { animation-delay: 140ms; }
.news-card:nth-child(4) { animation-delay: 190ms; }
.news-card:nth-child(5) { animation-delay: 240ms; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-body {
  padding: var(--space-lg) var(--space-md);
}

.news-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-2xs);
}

.news-title-row .news-title {
  margin-bottom: 0;
}

.peak-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  padding: var(--space-3xs) var(--space-sm);
  border-radius: var(--radius-pill);
  background: var(--pink-soft);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.peak-chip svg {
  flex-shrink: 0;
}

.news-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2xs);
  line-height: 1.3;
  max-width: none;
  font-family: var(--font-body);
}

.news-title a {
  transition: color var(--dur-micro) var(--ease-out);
}

.news-title a:hover {
  color: var(--color-accent);
}

.news-excerpt {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  margin-bottom: var(--space-sm);
  line-height: 1.55;
  max-width: none;
  text-wrap: wrap;
}

.badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  padding: var(--space-3xs) var(--space-xs);
  border-radius: 4px;
}

.badge-live {
  background: var(--pink-soft);
  color: var(--color-accent);
}

.badge-archived {
  background: var(--glass);
  color: var(--color-ink-2);
}

.bots {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.bots-heading {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0 var(--space-2xs);
}

.bots-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-control);
  background: var(--cta-discord);
  color: var(--color-accent-ink);
}

.bots-title {
  font-size: var(--text-md);
  font-weight: 600;
  font-family: var(--font-body);
  max-width: none;
  line-height: 1.2;
}

.bot-top {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.bot-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-control);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--panel-2);
}

.bot-copy {
  min-width: 0;
  flex: 1;
}

.bot-card .news-excerpt {
  margin-bottom: var(--space-sm);
}

.bot-add {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--cta-discord);
  transition: color var(--dur-micro) var(--ease-out);
}

.bot-add:hover {
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-list {
  background: var(--panel);
  color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  padding: var(--space-2xs) 0;
  box-shadow: var(--shadow-card);
  opacity: 0;
  animation: rise var(--dur-long) var(--ease-out) 40ms forwards;
}

.news-list-row {
  padding: var(--space-xl) var(--space-lg);
}

.news-list-text strong {
  display: block;
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.news-list-text p {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  line-height: 1.7;
  max-width: none;
  text-wrap: wrap;
}

.news-list-text p + p {
  margin-top: var(--space-md);
}

.news-list-text a {
  color: var(--color-accent);
  font-weight: 500;
}

.news-list-text a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========== sidebar ========== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.panel {
  background: var(--panel);
  color: var(--color-ink);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.stats-panel {
  padding: var(--space-md) var(--space-sm);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2xs);
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-muted);
  margin-top: var(--space-3xs);
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-control);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-accent-ink);
  border: none;
  transition:
    transform var(--dur-micro) var(--ease-out),
    filter var(--dur-micro) var(--ease-out),
    box-shadow var(--dur-short) var(--ease-out);
}

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: var(--shadow-raised);
}

.cta:active {
  transform: translateY(1px);
  filter: brightness(0.98);
  box-shadow: none;
}

.cta-teal {
  background: var(--cta-osu);
  color: var(--color-accent-ink);
}
.cta-pink {
  background: var(--cta-x);
  color: var(--cta-x-ink);
}
.cta-orange {
  background: var(--cta-discord);
  color: var(--color-accent-ink);
}

.cta-static {
  cursor: default;
}
.cta-static:hover,
.cta-static:active {
  transform: none;
  filter: none;
  box-shadow: none;
}

.panel-heading {
  padding: var(--space-sm) var(--space-md) var(--space-2xs);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-muted);
  font-family: var(--font-body);
  max-width: none;
  line-height: 1.3;
}

.mini-list li + li {
  border-top: var(--rule-hair) solid var(--color-rule);
}

.mini-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  transition: background-color var(--dur-micro) var(--ease-out);
}

.mini-item:hover {
  background: var(--panel-hover);
}

.mini-item:active {
  background: var(--panel-2);
}

.mini-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.mini-title {
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-sub {
  font-size: var(--text-xs);
  color: var(--color-muted);
  font-weight: 500;
}

.side-foot {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-align: center;
  padding: var(--space-xs) var(--space-3xs) 0;
}

.mascot {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: var(--space-xs);
  padding: var(--space-md) 0 var(--space-xs);
}

.mascot-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  flex: 0 0 auto;
  min-width: 0;
}

.speech {
  position: relative;
  max-width: 100%;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-card);
  background: var(--panel-2);
  border: var(--rule-hair) solid var(--color-rule);
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  min-height: 2rem;
  display: grid;
  place-items: center;
  transition: opacity var(--dur-short) var(--ease-out);
}

.speech::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: var(--panel-2);
  border-right: var(--rule-hair) solid var(--color-rule);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  transform: translateX(-50%) rotate(45deg);
}

.speech.is-fading {
  opacity: 0;
}

.mascot-link {
  display: block;
  border-radius: 12px;
  transition: transform var(--dur-micro) var(--ease-out);
}

.mascot-link:hover {
  transform: translateY(-2px);
}

.mascot-avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--ring-avatar);
  background: var(--panel-2);
}

/* ========== responsive ========== */
@media (min-width: 720px) {
  .topnav-links {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .mobile-drawer {
    display: none !important;
  }

  .user-chip {
    display: flex;
  }

  :root {
    --gutter: 24px;
  }
}

@media (min-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    padding-top: var(--space-xl);
    gap: var(--gap-columns);
  }

  .sidebar {
    position: sticky;
    top: calc(var(--nav-h) + var(--space-md));
  }

}

@media (min-width: 1100px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card,
  .news-list {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .cta,
  .mini-item,
  .topnav-link,
  .icon-btn {
    transition: none;
  }
}


