/* ============ CAPSLOCK SHARED STYLES ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0a0a0a;
  --chalk: #f5f0e8;
  --red: #c41e3a;
  --blue: #1a3a6b;
  --accent: #e85d3a;
  --muted: #8a8578;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--chalk);
  color: var(--ink);
  overflow-x: hidden;
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--chalk);
}

.nav-links .nav-cta {
  background: var(--accent);
  color: var(--chalk);
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: #d14e2d;
}

/* ============ PAGE WRAPPER ============ */
.page {
  padding-top: 60px;
  min-height: 100vh;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: #d14e2d;
  transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-sold-out {
  background: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: var(--chalk);
  border: 1px solid rgba(245, 240, 232, 0.3);
}

.btn-secondary:hover {
  border-color: var(--chalk);
}

/* ============ COUNTDOWN ============ */
.countdown {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
}

.countdown-unit {
  text-align: center;
}

.countdown-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.countdown-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
  margin-top: 0.25rem;
}

/* ============ CAP MOCKUP ============ */
.cap-mockup {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cap-visual {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cap-shape {
  position: relative;
  width: 280px;
  height: 200px;
}

.cap-crown {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 140px;
  border-radius: 130px 130px 0 0;
  background: var(--ink);
  border: 2px solid rgba(245, 240, 232, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  padding-top: 1rem;
}

.cap-crown.color-black { background: #1a1a1a; }
.cap-crown.color-navy { background: #1a2744; }
.cap-crown.color-red { background: #8b1a2b; }
.cap-crown.color-forest { background: #1a3322; }
.cap-crown.color-white { background: #e8e3db; border-color: rgba(10, 10, 10, 0.15); }

.cap-motto-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--chalk);
  text-align: center;
  line-height: 1.2;
}

.cap-crown.color-white .cap-motto-text { color: var(--ink); }

.cap-brim {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 30px;
  border-radius: 0 0 150px 150px;
  background: inherit;
  border: 2px solid rgba(245, 240, 232, 0.15);
  border-top: none;
}

.cap-crown.color-white + .cap-brim {
  border-color: rgba(10, 10, 10, 0.15);
}

/* ============ SECTION STYLES ============ */
.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* ============ ARCHIVE GRID ============ */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.archive-card {
  background: var(--ink);
  border-radius: 2px;
  padding: 2rem;
  color: var(--chalk);
  transition: transform 0.2s;
  position: relative;
  overflow: hidden;
}

.archive-card:hover {
  transform: translateY(-2px);
}

.archive-date {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.archive-motto {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.archive-context {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.5);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.archive-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.archive-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: rgba(245, 240, 232, 0.4);
}

.badge-sold-out {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--chalk);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
}

.badge-available {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(245, 240, 232, 0.1);
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
}

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 6rem 2rem;
}

.empty-state h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.empty-state p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 400px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ============ FOOTER ============ */
.footer {
  padding: 3rem 2rem;
  background: var(--ink);
  color: rgba(245, 240, 232, 0.3);
  text-align: center;
  font-size: 0.85rem;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chalk);
  margin-bottom: 0.5rem;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: rgba(245, 240, 232, 0.4);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

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

/* ============ LOADING ============ */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.7rem; letter-spacing: 0.05em; }
  .countdown { gap: 1rem; }
  .archive-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .nav-links .hide-mobile { display: none; }
}
