/* CEN Static Site — all styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=JetBrains+Mono:wght@400;500&family=Syne:wght@600;700;800&display=swap');

:root {
  --ccr-red: #E31E24;
  --ccr-red-dark: #B8181D;
  --ccr-red-light: #FF3B42;
  --ccr-gray: #E8E8E8;
  --ccr-gray-dark: #D0D0D0;
  --ccr-gray-light: #F5F5F5;
  --ccr-charcoal: #1A1A1A;
  --ccr-slate: #4A4A4A;
  --ccr-muted: #6B6B6B;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ccr-gray-light);
  color: var(--ccr-charcoal);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(227,30,36,0.2); color: var(--ccr-charcoal); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

/* Layout */
.site-wrap { min-height: 100vh; display: flex; flex-direction: column; position: relative; }
.site-wrap.ccr-site { background: var(--ccr-gray-light); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.grid { display: grid; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.relative { position: relative; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-fit { height: fit-content; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
@media (min-width: 1024px) {
  .lg-text-left { text-align: left; }
  .lg-justify-start { justify-content: flex-start; }
}
.uppercase { text-transform: uppercase; }
.resize-none { resize: none; }
.pointer-events-none { pointer-events: none; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.section-padding { padding: 5rem 1.5rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

/* Typography */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.tracking-wide { letter-spacing: 0.2em; }
.text-ccr-red { color: var(--ccr-red); }
.text-ccr-charcoal { color: var(--ccr-charcoal); }
.text-ccr-slate { color: var(--ccr-slate); }
.text-ccr-muted { color: var(--ccr-muted); }
.text-white { color: #fff; }
.text-gradient {
  background: linear-gradient(to right, var(--ccr-red), var(--ccr-red-light), var(--ccr-red-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Backgrounds & borders */
.bg-white { background: #fff; }
.border { border: 1px solid var(--ccr-gray-dark); }
.border-2 { border-width: 2px; border-style: solid; }
.border-y { border-top: 1px solid var(--ccr-gray-dark); border-bottom: 1px solid var(--ccr-gray-dark); }
.border-t { border-top: 1px solid var(--ccr-gray-dark); }
.border-l-2 { border-left: 2px solid rgba(227,30,36,0.3); }
.border-ccr-gray-dark { border-color: var(--ccr-gray-dark); }
.border-ccr-red { border-color: var(--ccr-red); }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

/* Wireframe */
.wireframe-bg {
  background-image: linear-gradient(rgba(227,30,36,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227,30,36,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.wireframe-diag {
  background-image: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(227,30,36,0.03) 20px, rgba(227,30,36,0.03) 21px);
}

/* Components */
.cen-card { background: #fff; border: 1px solid rgba(208,208,208,0.6); border-radius: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.cen-card-hover, .ccr-card-hover { transition: all 0.3s; }
.cen-card-hover:hover { border-color: rgba(227,30,36,0.3); box-shadow: 0 4px 6px rgba(0,0,0,0.07); }
.ccr-card { background: #fff; border: 1px solid rgba(208,208,208,0.5); border-radius: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.ccr-card-hover:hover { border-color: rgba(227,30,36,0.4); box-shadow: 0 4px 24px rgba(227,30,36,0.08); }

.btn-primary, .ccr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 0.5rem; background: var(--ccr-red); color: #fff;
  font-weight: 600; font-size: 0.875rem; border: none; cursor: pointer; transition: all 0.3s;
}
.btn-primary:hover, .ccr-btn:hover { background: var(--ccr-red-dark); box-shadow: 0 4px 20px rgba(227,30,36,0.25); }
.btn-secondary, .ccr-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 0.5rem; border: 2px solid rgba(26,26,26,0.15);
  color: var(--ccr-charcoal); font-weight: 500; font-size: 0.875rem; cursor: pointer; transition: all 0.3s; background: transparent;
}
.btn-secondary:hover, .ccr-btn-outline:hover { border-color: rgba(227,30,36,0.5); color: var(--ccr-red); }
.ccr-btn-outline { border-color: var(--ccr-red); color: var(--ccr-red); }
.ccr-btn-outline:hover { background: var(--ccr-red); color: #fff; }
.btn-primary:active, .btn-secondary:active, .ccr-btn:active, .ccr-btn-outline:active { transform: scale(0.98); }

.input-field {
  width: 100%; padding: 0.75rem 1rem; border-radius: 0.5rem;
  border: 1px solid var(--ccr-gray-dark); outline: none; background: #fff;
}
.input-field:focus { border-color: rgba(227,30,36,0.5); }

.prose-cen { color: var(--ccr-slate); line-height: 1.625; }
.prose-cen > * + * { margin-top: 1rem; }
.prose-cen h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ccr-charcoal); margin-top: 2rem; margin-bottom: 1rem; }
.prose-cen a { color: var(--ccr-red); text-decoration: underline; text-underline-offset: 4px; }
.prose-cen a:hover { color: var(--ccr-red-dark); }

.section-header { max-width: 48rem; margin-bottom: 3rem; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header .label { color: var(--ccr-red); font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 0.75rem; }
.section-header h2 { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; color: var(--ccr-charcoal); margin-bottom: 1rem; }
.section-header .desc { color: var(--ccr-slate); font-size: 1.125rem; }
.section-header .action { display: inline-block; margin-top: 1.5rem; color: var(--ccr-red); font-weight: 500; font-size: 0.875rem; }

/* Paper status badges */
.status-published { background: rgba(227,30,36,0.1); color: var(--ccr-red); border-color: rgba(227,30,36,0.3); }
.status-accepted { background: rgba(227,30,36,0.15); color: var(--ccr-red-dark); border-color: rgba(227,30,36,0.4); }
.status-preprint { background: rgba(26,26,26,0.05); color: var(--ccr-slate); border-color: rgba(26,26,26,0.2); }
.status-in-progress { background: var(--ccr-gray); color: var(--ccr-muted); border-color: var(--ccr-gray-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ccr-gray-dark); }
.logo-text { display: none; }
.ccr-site .site-header { border-bottom: 2px solid rgba(227,30,36,0.1); }
.header-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.logo-wrap { display: flex; align-items: center; gap: 0.75rem; }
.logo-text .name { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; color: var(--ccr-charcoal); display: block; }
.logo-text .sub { font-size: 0.625rem; color: var(--ccr-muted); font-family: var(--font-mono); text-transform: uppercase; display: block; }
.nav-desktop { display: none; gap: 0.25rem; }
.nav-desktop a { padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--ccr-slate); border-radius: 0.375rem; transition: all 0.2s; }
.nav-desktop a:hover { color: var(--ccr-red); background: rgba(227,30,36,0.05); }
.nav-desktop a.active { color: var(--ccr-red); }
.menu-btn { padding: 0.5rem; background: none; border: none; cursor: pointer; color: var(--ccr-charcoal); }
.nav-mobile { display: none; padding: 1rem 1.5rem; border-top: 1px solid var(--ccr-gray-dark); flex-direction: column; gap: 0.25rem; }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 0.75rem 0; color: var(--ccr-slate); }
.nav-mobile a:hover { color: var(--ccr-red); }

/* Footer */
.site-footer { border-top: 1px solid var(--ccr-gray-dark); background: #fff; position: relative; z-index: 10; }
.footer-inner { max-width: 80rem; margin: 0 auto; padding: 3rem 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; font-size: 0.875rem; color: var(--ccr-muted); }
.footer-title { font-family: var(--font-display); font-weight: 700; color: var(--ccr-charcoal); margin-bottom: 0.5rem; }
.footer-icons { display: flex; gap: 0.5rem; }
.footer-icons a { padding: 0.5rem; border: 1px solid var(--ccr-gray-dark); border-radius: 0.5rem; color: var(--ccr-muted); display: flex; }
.footer-icons a:hover { color: var(--ccr-red); }
.icon { width: 1rem; height: 1rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 2rem; height: 2rem; }

/* Animations */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.animate-float { animation: float 6s ease-in-out infinite; }

/* Donate tier selected */
.tier-selected { border-color: var(--ccr-red) !important; background: rgba(227,30,36,0.05) !important; }

/* Group hover */
.group:hover .group-hover-red { color: var(--ccr-red); }

/* Responsive */
@media (min-width: 640px) {
  .logo-text { display: block; }
}
@media (min-width: 768px) {
  .section-padding { padding: 7rem 3rem; }
  .header-inner { padding: 0 3rem; height: 5rem; }
  .footer-inner { flex-direction: row; justify-content: space-between; padding: 3rem; }
  .md-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .md-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .md-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .text-4xl-md { font-size: 2.25rem; }
  .text-5xl-md { font-size: 3rem; }
  .text-6xl-md { font-size: 3.75rem; }
}
@media (min-width: 768px) {
  .ccr-site .header-cta { display: block; }
}
@media (min-width: 1024px) {
  .section-padding { padding: 7rem 6rem; }
  .header-inner { padding: 0 6rem; }
  .footer-inner { padding: 3rem 6rem; }
  .lg-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .lg-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .lg-grid-5 { grid-template-columns: repeat(5, 1fr); }
  .lg-col-span-3 { grid-column: span 3; }
  .nav-desktop { display: flex; }
  .header-cta { display: block; }
  .menu-btn { display: none; }
}
.header-cta { display: none; }
