/* Shared layout, header, footer, and design tokens for afc.evhu.net */
@view-transition {
  navigation: auto;
}

:root {
  --bg: #0c1026;
  --surface: #151c42;
  --surface-2: #1E2761;
  --border: #2d3975;
  --text: #eef1fa;
  --muted: #a6b0d1;
  --primary: #1E2761;
  --accent: #7A2048;
  --accent-hover: #962859;
  --link: #e58fb4;
  --green: #34d399;
  --red: #fb7185;
  --amber: #fbbf24;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: rgba(12, 16, 38, 0.94);
  backdrop-filter: blur(8px);
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 42px;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.release-badge {
  font-size: 0.72rem;
  font-family: var(--mono);
  background: rgba(122, 32, 72, 0.24);
  color: #f3b5cf;
  border: 1px solid rgba(122, 32, 72, 0.55);
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.4;
  text-decoration: none;
}

.release-badge:hover {
  border-color: var(--link);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.92rem;
  flex-wrap: wrap;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  transition: color 0.15s;
}

.nav-links a:not(.btn):hover,
.nav-links a.active:not(.btn) {
  color: var(--text);
  text-decoration: none;
}

.nav-links a.btn-primary {
  color: #fff;
}

.btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.25;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--muted);
  text-decoration: none;
}

main {
  flex: 1 0 auto;
}

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}
