/* World 50 — Shared design system
 * Editorial, premium. Loaded after Tailwind on every slice.
 */

:root {
  --w-bg:        #FAF7F2;  /* warm off-white */
  --w-surface:   #FFFFFF;
  --w-surface-2: #F4EFE6;
  --w-ink:       #14213D;  /* deep navy */
  --w-ink-2:     #2A3654;
  --w-muted:     #5B6479;
  --w-muted-2:   #8A8F9E;
  --w-line:      #E5DFD3;
  --w-line-2:    #EFEBE2;
  --w-accent:    #B8860B;  /* amber/gold */
  --w-accent-2:  #C9A227;
  --w-accent-soft: #F6EBC9;
  --w-danger:    #B0413E;
  --w-success:   #3B6E3B;

  --w-serif: "Fraunces", "Source Serif Pro", Georgia, serif;
  --w-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --w-radius: 6px;
  --w-radius-lg: 10px;

  --w-shadow-sm: 0 1px 2px rgba(20,33,61,.06);
  --w-shadow:    0 4px 16px rgba(20,33,61,.08);
  --w-shadow-lg: 0 12px 40px rgba(20,33,61,.12);
}

html, body {
  background: var(--w-bg);
  color: var(--w-ink);
  font-family: var(--w-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { overflow-x: hidden; }

.w-serif { font-family: var(--w-serif); font-weight: 500; letter-spacing: -0.01em; }
.w-sans  { font-family: var(--w-sans); }

.w-display {
  font-family: var(--w-serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--w-ink);
}

.w-eyebrow {
  font-family: var(--w-sans);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--w-muted);
}

.w-eyebrow-accent { color: var(--w-accent); }

.w-card {
  background: var(--w-surface);
  border: 1px solid var(--w-line);
  border-radius: var(--w-radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}

.w-card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--w-shadow);
  border-color: var(--w-accent-soft);
}

.w-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: var(--w-surface-2);
  color: var(--w-ink-2);
  border-radius: 999px;
  border: 1px solid var(--w-line);
}

.w-chip-accent {
  background: var(--w-accent-soft);
  color: #6F4F0A;
  border-color: #E8D89A;
}

.w-chip-dark {
  background: var(--w-ink);
  color: #FFF;
  border-color: var(--w-ink);
}

.w-chip-outline {
  background: transparent;
  color: var(--w-ink-2);
  border-color: var(--w-ink-2);
}

.w-divider {
  height: 1px;
  background: var(--w-line);
  border: 0;
}

.w-link {
  color: var(--w-ink);
  border-bottom: 1px solid var(--w-line);
  transition: border-color .2s ease;
}
.w-link:hover { border-color: var(--w-accent); }

.w-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--w-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--w-sans);
  letter-spacing: 0.01em;
}

.w-btn-primary {
  background: var(--w-ink);
  color: #FFF;
}
.w-btn-primary:hover { background: var(--w-ink-2); }

.w-btn-accent {
  background: var(--w-accent);
  color: #FFF;
}
.w-btn-accent:hover { background: var(--w-accent-2); }

.w-btn-ghost {
  background: transparent;
  color: var(--w-ink);
  border-color: var(--w-line);
}
.w-btn-ghost:hover { border-color: var(--w-ink); background: var(--w-surface); }

/* Top navigation bar shared across slices */
.w-topbar {
  background: var(--w-bg);
  border-bottom: 1px solid var(--w-line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(10px);
  background-color: rgba(250, 247, 242, 0.9);
}

.w-logo {
  font-family: var(--w-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--w-ink);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.w-logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--w-accent);
  display: inline-block;
}

.w-nav-link {
  font-size: 13px;
  color: var(--w-muted);
  padding: 6px 0;
  letter-spacing: 0.01em;
  transition: color .15s ease;
}
.w-nav-link:hover, .w-nav-link.active { color: var(--w-ink); }

/* Content type badges */
.w-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--w-muted);
}
.w-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--w-surface-2);
  color: var(--w-ink);
  font-size: 10px;
}

/* Card image wrapper */
.w-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--w-surface-2);
  overflow: hidden;
}
.w-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.w-card-hover:hover .w-thumb img { transform: scale(1.04); }

.w-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,33,61,0) 30%, rgba(20,33,61,0.45) 100%);
  pointer-events: none;
}

.w-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.w-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
  color: var(--w-ink);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* Rail (horizontal scroller) */
.w-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.w-rail::-webkit-scrollbar { height: 6px; }
.w-rail::-webkit-scrollbar-track { background: transparent; }
.w-rail::-webkit-scrollbar-thumb { background: var(--w-line); border-radius: 3px; }
.w-rail > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* Headshot circle */
.w-avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--w-surface-2);
  border: 1px solid var(--w-line);
}

/* Animated reveal */
@keyframes wFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.w-reveal { animation: wFadeUp .7s ease both; }
.w-reveal-2 { animation: wFadeUp .7s .1s ease both; }
.w-reveal-3 { animation: wFadeUp .7s .2s ease both; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Selection */
::selection {
  background: var(--w-accent-soft);
  color: var(--w-ink);
}

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--w-accent);
  outline-offset: 2px;
}

/* Footer */
.w-footer {
  margin-top: 80px;
  padding: 32px 0;
  border-top: 1px solid var(--w-line);
  font-size: 12px;
  color: var(--w-muted-2);
  letter-spacing: 0.02em;
}

/* Lock indicator (gating UI) */
.w-locked {
  position: relative;
}
.w-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250,247,242,0) 30%, rgba(250,247,242,0.96) 100%);
  pointer-events: none;
}

/* Editorial pull quote */
.w-pullquote {
  font-family: var(--w-serif);
  font-size: 28px;
  line-height: 1.25;
  color: var(--w-ink);
  border-left: 3px solid var(--w-accent);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  letter-spacing: -0.01em;
}
.w-pullquote-attrib {
  display: block;
  margin-top: 12px;
  font-family: var(--w-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--w-muted);
}

/* Prose body */
.w-prose p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--w-ink-2);
  margin-bottom: 1.1em;
  font-weight: 400;
}
.w-prose h2 {
  font-family: var(--w-serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.015em;
  margin: 48px 0 16px;
  color: var(--w-ink);
}
.w-prose h3 {
  font-family: var(--w-serif);
  font-weight: 500;
  font-size: 22px;
  margin: 32px 0 12px;
  color: var(--w-ink);
}

/* Subtle dotted divider */
.w-dot-divider {
  text-align: center;
  letter-spacing: 1em;
  color: var(--w-muted-2);
  margin: 48px 0;
}

/* Sidebar/sticky helper */
.w-sticky-side { position: sticky; top: 96px; }

/* Toast/announce */
.w-banner {
  background: var(--w-ink);
  color: #FFF;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
}
