/* public/assets/style.css
   Cinema-lobby aesthetic: deep warm blacks, amber theater-light accents,
   editorial italic serif for display, monospace for technical/marquee bits. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Inter+Tight:wght@300..700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg: #0a0807;
  --bg-soft: #14100c;
  --surface: #1c1611;
  --surface-2: #2a2017;
  --line: #3a2c1f;
  --line-soft: #261d14;
  --ink: #f4ece0;
  --ink-mute: #b8a890;
  --ink-dim: #7a6b56;
  --gold: #d4a14a;
  --gold-bright: #ebc36e;
  --gold-deep: #8a6322;
  --crimson: #a01a1a;
  --crimson-deep: #5e0c0c;
  --green: #6fa86f;
  --shadow-deep: 0 30px 60px -20px rgba(0,0,0,0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Atmosphere: subtle film grain, very subtle vignette */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.92 0 0 0 0 0.8 0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse 100% 80% at 50% 50%, transparent 40%, rgba(0,0,0,0.55) 100%);
}
body > * { position: relative; z-index: 10; }

/* Typography helpers */
.display {
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.025em;
  line-height: 0.95;
}
.mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
}
.muted { color: var(--ink-mute); }
.dim { color: var(--ink-dim); }

/* Layout */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.nav::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
  opacity: 0.4;
}
.brand {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.brand .mark { color: var(--gold); font-style: normal; font-weight: 400; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border-radius: 0;
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--bg); }
.btn-danger { border-color: var(--crimson); color: var(--crimson); }
.btn-danger:hover { background: var(--crimson); color: var(--ink); border-color: var(--crimson); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.68rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Inputs */
input[type=text], input[type=password], input[type=number], input[type=url], input[type=datetime-local],
textarea, select {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
  border-radius: 0;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
}
label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  margin-bottom: 0.5rem;
}

/* Cards / sections */
.card {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  padding: 1.5rem;
}

hr.rule {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 2rem 0;
}

/* Decorative film strip border */
.filmstrip {
  height: 14px;
  background:
    repeating-linear-gradient(90deg,
      transparent 0,
      transparent 14px,
      var(--bg) 14px,
      var(--bg) 22px),
    var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* Utility */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.grow { flex: 1; }
.hidden { display: none !important; }

/* Toast notifications */
#toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--gold);
  color: var(--ink);
  padding: 1rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  z-index: 1000;
  max-width: 400px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#toast.error { border-color: var(--crimson); }

/* Page fade-in */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp 0.6s ease-out both; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }

@media (max-width: 720px) {
  .nav { padding: 1rem; flex-direction: column; gap: 1rem; align-items: flex-start; }
  .wrap { padding: 0 1rem; }
}
