:root {
  --bg: #141414;
  --panel: #1a1a1a;
  --ink: #f3f4f6;
  --muted: #9ca3af;
  --line: #2a2a2a;
  --blue: #3b82f6;
  --green: #22c55e;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
.text-link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.95rem max(1.5rem, calc(50vw - 560px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 20, 20, 0.94);
  backdrop-filter: saturate(1.2) blur(12px);
}

.brand { display: flex; align-items: center; }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pill-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #0f0f0f;
  border: 1px solid #2f2f2f;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
}
.pill-nav a, .drop-btn {
  color: #d1d5db;
  font-size: 0.95rem;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.pill-nav a:hover, .drop-btn:hover { color: #fff; }

.drop { position: relative; }
.drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 16rem;
  padding: 0.55rem 0.4rem 0.4rem;
  background: transparent;
  border: 0;
  z-index: 60;
}
.drop-menu-inner {
  background: #111;
  border: 1px solid #2f2f2f;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  padding: 0.4rem;
}
.drop.is-open .drop-menu,
.drop:hover .drop-menu,
.drop:focus-within .drop-menu {
  display: block;
}
.drop-menu a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: #e5e7eb;
  white-space: nowrap;
}
.drop-menu a:hover {
  background: #1f1f1f;
  color: #fff;
}

.btn-nav {
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4.25rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.2rem;
}
.hero h1 span { color: var(--blue); }
.lead {
  color: #b0b6c0;
  font-size: 1.08rem;
  max-width: 36rem;
  margin: 0 auto 1.7rem;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.actions.left { justify-content: flex-start; }

.btn, .btn-light {
  display: inline-block;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 600;
}
.btn { border: 1px solid #3a3a3a; color: #fff; }
.btn-light {
  background: #fff;
  color: #111;
  border: 1px solid #fff;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-light:hover {
  background: var(--green);
  border-color: var(--green);
  color: #052e16;
}

.btn, .btn-light, .btn-nav { display: inline-block; }
.btn:hover, .btn-light:hover, .btn-nav:hover { animation: btn-shake 0.45s ease; }

@keyframes btn-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px) rotate(-0.4deg); }
  40% { transform: translateX(3px) rotate(0.4deg); }
  60% { transform: translateX(-2px) rotate(-0.25deg); }
  80% { transform: translateX(2px) rotate(0.25deg); }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn-light:hover, .btn-nav:hover { animation: none; }
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.page { max-width: 52rem; padding-top: 3.2rem; }
.page h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 1.4rem;
}
.page h2 { font-size: 1.7rem; margin: 2.4rem 0 1rem; }
.page p { color: #c5c9d1; }

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b919c;
  margin: 0 0 1rem;
}

.product-grid { display: grid; max-width: 520px; }
.product-art {
  background: #1b2a4a;
  border-radius: 16px;
  min-height: 220px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #24324f;
}
.product-art img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.product h2 { margin: 1rem 0 0.35rem; font-size: 1.3rem; }
.product p, .empty { color: var(--muted); margin: 1rem 0 0; }

.journal { border-top: 1px solid var(--line); padding-top: 2.4rem; }
.journal-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.15rem;
  margin: 0 0 0.25rem;
  padding: 0.35rem;
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
}
.chip {
  appearance: none;
  background: transparent;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
  color: #c5c9d1;
  font-family: inherit;
}
.chip:hover { color: #fff; }
.chip.is-on { background: #fff; color: #111; }

.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.footer-grid h3 { margin: 0 0 0.7rem; font-size: 0.95rem; }
.footer-grid a, .footer-blurb {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.28rem 0;
}
.footer-blurb { max-width: 18rem; }
.legal {
  grid-column: 1 / -1;
  color: #6b7280;
  font-size: 0.82rem;
  margin: 1.5rem 0 0;
}

.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 80;
  width: min(720px, calc(100% - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: #161616;
  border: 1px solid #333;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.cookie-bar p { margin: 0; color: #c5c9d1; font-size: 0.92rem; }
.cookie-bar a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-actions .btn,
.cookie-actions .btn-light { padding: 0.5rem 0.9rem; font-size: 0.88rem; }
.cookie-actions .btn { background: #fff; color: #111; border: 1px solid #fff; }
.cookie-actions .btn-light { background: var(--green); color: #052e16; border: 1px solid var(--green); }

@media (max-width: 800px) {
  .pill-nav { display: none; }
  .hero { padding-top: 3.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .journal-filters { border-radius: 16px; }
  .cookie-bar { flex-direction: column; align-items: stretch; bottom: 0.75rem; }
}
