/* Temple Beth Haverim Shir Shalom — public site v2 (preview)
   Design language: ivory + deep navy + brass.
   Typography: Sentient (display) + Outfit (body) + JetBrains Mono (numerals). */

:root {
  --ink:        #14213D;
  --ink-2:      #2A3A5C;
  --ink-3:      #5B6B82;
  --paper:      #F8F5EC;
  --paper-soft: #EDE8DA;
  --mute:       #8A93A4;
  --brass:      #9B6B2C;
  --brass-soft: #B68645;
  --rule:       #D8D0BD;
  --live:       #B23A2E;
}

/* Bump the base size up from the 16px default — older audience reads better
   at this scale, and Tailwind's rem-based utilities scale with it. */
html {
  font-size: 17.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) {
  html { font-size: 18px; }
}

body {
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-feature-settings: "ss01", "cv11", "tnum";
  line-height: 1.65;
}

/* --- Type system ------------------------------------------------------- */

.font-display {
  font-family: 'Sentient', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.06;
}

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-feature-settings: "tnum", "ss01";
}

.eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--brass);
  margin-right: 0.625rem;
}
.eyebrow .dot.live {
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(178, 58, 46, 0.5);
  animation: pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(178, 58, 46, 0.5); }
  50%      { box-shadow: 0 0 0 10px rgba(178, 58, 46, 0); }
}

/* --- Page chrome ------------------------------------------------------- */

.brass-rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  position: relative;
}
.brass-rule::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--brass);
}

/* --- Links & buttons --------------------------------------------------- */

.link-quiet {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: color 250ms cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}
.link-quiet::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.link-quiet:hover { color: var(--brass); }
.link-quiet:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  border-radius: 4px;
  transition: background 250ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 250ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}
.btn:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* --- Player frame ------------------------------------------------------ */

.player-frame {
  position: relative;
  background: var(--ink);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 24px 60px -24px rgba(20, 33, 61, 0.20),
    0 1px 0 rgba(155, 107, 44, 0.08) inset;
}
.player-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  border: 1px solid rgba(155, 107, 44, 0.14);
  pointer-events: none;
}

/* --- Archive rows ------------------------------------------------------ */

.archive-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 1.5rem;
  padding: 1.6rem 1rem 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: background-color 250ms ease, padding-left 250ms ease;
  text-decoration: none;
  color: inherit;
}
.archive-row:hover {
  background-color: rgba(155, 107, 44, 0.045);
  padding-left: 1rem;
}
.archive-row:last-child { border-bottom: 0; }

/* --- Year pills ------------------------------------------------------- */

.year-pill {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color 200ms cubic-bezier(0.16, 1, 0.3, 1),
              color 200ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.year-pill:hover {
  border-color: var(--brass);
  color: var(--brass);
}
.year-pill.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* --- Page-load fade cascade ------------------------------------------- */

.fade-in {
  animation: fadeUp 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.fade-in[data-delay="1"] { animation-delay: 80ms; }
.fade-in[data-delay="2"] { animation-delay: 200ms; }
.fade-in[data-delay="3"] { animation-delay: 340ms; }
.fade-in[data-delay="4"] { animation-delay: 480ms; }
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* --- Selection + focus ------------------------------------------------ */

::selection {
  background: var(--brass);
  color: var(--paper);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Reduced motion --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
