/* ==========================================================
   Night — shared look for Front Porch project pages
   (dark porch-light atmosphere, neon titles, quiet type).
   Page-specific styles live in album.css / cover.css.
   ========================================================== */

:root {
  --ink: #0e0e0e;
  --ink-2: #161616;
  --ink-3: #1d1d1d;
  --bone: #f4f1ea;
  --mute: rgba(244, 241, 234, 0.55);
  --faint: rgba(244, 241, 234, 0.32);
  --line: rgba(244, 241, 234, 0.1);
  --cyan: #00e5ff;
  --magenta: #ff2da0;
  --gold: #ffd700;
  --warm: #ffcf7a;

  /* this page's neon colour (Cover Swap = magenta) */
  --neon: var(--magenta);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; }  /* dark native controls (audio player, file picker) */

body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* porch-light glow + fine grain */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 207, 122, 0.08), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(255, 45, 160, 0.05), transparent 70%);
}

body::after {
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 1px solid var(--neon); outline-offset: 4px; }

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mute);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.crumbs a { transition: color 0.3s var(--ease); }
.crumbs a:hover { color: var(--bone); }
.crumbs .sep { opacity: 0.4; }
.crumbs [aria-current] { color: var(--bone); }

/* ---------- Page shell ---------- */

.shell {
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(4rem, 9vw, 7rem);
}

.page-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.eyebrow {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
}

/* Neon sign title — same treatment as the Front Porch sign */
.neon-title {
  margin-top: 1rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0.24em;
  padding-left: 0.24em;   /* keeps letter-spaced text truly centred */
  text-transform: uppercase;
  color: #fff4fa;
  text-shadow:
    0 0 4px #fff,
    0 0 12px var(--neon),
    0 0 28px var(--neon),
    0 0 60px color-mix(in srgb, var(--neon) 55%, transparent);
  animation: flickerOn 1.2s steps(1) both;
}

.lede {
  margin: 1.4rem auto 0;
  max-width: 34rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--mute);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--neon) 55%, transparent);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  cursor: pointer;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--neon);
  box-shadow: 0 0 10px color-mix(in srgb, var(--neon) 50%, transparent), inset 0 0 10px color-mix(in srgb, var(--neon) 20%, transparent);
  outline: none;
}

.btn--solid {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--ink);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  box-shadow: 0 0 14px var(--neon), 0 0 32px color-mix(in srgb, var(--neon) 50%, transparent);
}

/* ---------- Footer ---------- */

.foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.6rem var(--gutter);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute);
}

.foot::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 50%, transparent);
  opacity: 0.6;
}

/* ---------- Motion ---------- */

@keyframes flickerOn {
  0%   { opacity: 0; }
  10%  { opacity: 0.8; }
  14%  { opacity: 0.1; }
  22%  { opacity: 0.9; }
  26%  { opacity: 0.3; }
  34%  { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 560px) {
  .topbar > span:last-child { display: none; }
  .neon-title { letter-spacing: 0.14em; padding-left: 0.14em; }
}
