/* StayAwake — nocturnal editorial design system */

:root {
  --bg: #0C0A16;
  --surface: #161327;
  --surface-2: #1D1930;
  --border: #272138;
  --text: #F4F1EA;
  --muted: #9A93AC;
  --accent: #FF3D81;
  --accent-2: #FFC24B;
  --grad: linear-gradient(115deg, #FF2D7E 0%, #FFB13D 100%);
  --maxw: 1200px;
  --radius: 14px;
  --shadow: 0 18px 40px -20px rgba(0,0,0,.7);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* subtle noise on the dark base */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,10,22,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em;
  display: inline-flex; align-items: center; gap: .5ch;
}
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); display: inline-block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: 88px 0 96px;
}
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 78% 12%, rgba(255,45,126,.30), transparent 60%),
    radial-gradient(520px 320px at 88% 78%, rgba(255,177,61,.22), transparent 60%);
}
.hero-inner > * { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 22px; }
.hero h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 1.12rem; max-width: 44ch; margin-bottom: 30px; }
.hero-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow);
}
.hero-card .thumb { aspect-ratio: 4/3; }
.hero-card .body { padding: 22px 24px 26px; }
.hero-card .tag { margin-bottom: 12px; }
.hero-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.hero-card p { font-size: .98rem; margin: 0; }

/* thumbnails: original generated feature images (gradient = fallback colour) */
.thumb {
  background: var(--surface-2); position: relative;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.thumb.tk { background-image: url('/images/festival-open-air.webp'), linear-gradient(135deg, #2a1240, #ff2d7e 130%); }
.thumb.psy { background-image: url('/images/camping-dawn.webp'), linear-gradient(135deg, #10233f, #33d6c0 140%); }
.thumb.bass { background-image: url('/images/sound-system.webp'), linear-gradient(135deg, #3a0f2a, #ffb13d 150%); }
.thumb.house { background-image: url('/images/dj-decks.webp'), linear-gradient(135deg, #241040, #7a5cff 140%); }
.thumb.retro { background-image: url('/images/warehouse-rave.webp'), linear-gradient(135deg, #1a1030, #ff3d81 160%); }
/* dark scrim for label legibility */
.thumb::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(12,10,22,.15) 35%, rgba(12,10,22,.72));
}
.thumb::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.thumb .genre-mark {
  position: absolute; left: 18px; bottom: 14px; z-index: 3;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800;
  font-size: 1.05rem; letter-spacing: -.01em; opacity: .95;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55ch;
  background: var(--grad); color: #14101c; font-weight: 800;
  padding: 13px 22px; border-radius: 999px; font-size: .95rem;
  transition: transform .18s, filter .18s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border);
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Tags ---------- */
.tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
  background: rgba(255,61,129,.14); color: var(--accent);
}
.tag.amber { background: rgba(255,194,75,.15); color: var(--accent-2); }

/* ---------- Section headings ---------- */
.section { padding: 68px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 34px; gap: 20px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-head .link { color: var(--muted); font-weight: 700; font-size: .92rem; }
.section-head .link:hover { color: var(--accent); }

/* ---------- Festivals strip ---------- */
.fest-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fest {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; background: var(--surface); transition: border-color .2s, transform .2s;
}
.fest:hover { border-color: var(--accent); transform: translateY(-3px); }
.fest .date { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.fest h4 { font-size: 1.15rem; margin: 8px 0 4px; }
.fest .city { color: var(--muted); font-size: .9rem; }
.fest .g { margin-top: 12px; }

/* ---------- Article grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface); transition: transform .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .thumb { aspect-ratio: 16/10; }
.card .body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 1.28rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .meta { margin-top: auto; color: var(--muted); font-size: .82rem; }

/* ---------- Genre chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px;
  font-weight: 700; font-size: .92rem; color: var(--muted); transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--accent); background: rgba(255,61,129,.08); }

/* ---------- Article page ---------- */
.article { padding: 60px 0 40px; }
.article-head { max-width: 760px; margin: 0 auto 36px; }
.article-head .tag { margin-bottom: 18px; }
.article-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 18px; }
.article-head .standfirst { color: var(--muted); font-size: 1.2rem; }
.article-head .byline { margin-top: 20px; color: var(--muted); font-size: .88rem; }
.article-hero { max-width: 980px; margin: 0 auto 44px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.article-hero .thumb { aspect-ratio: 21/9; }
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 1.7rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.3rem; margin: 28px 0 10px; }
.prose p { margin-bottom: 20px; }
.prose ul, .prose ol { margin: 0 0 20px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 6px 0 6px 20px; margin: 26px 0;
  color: var(--text); font-size: 1.15rem; font-style: italic;
}
.article-foot { max-width: 720px; margin: 48px auto 0; padding-top: 28px; border-top: 1px solid var(--border); }

/* ---------- Category header ---------- */
.cat-head { padding: 72px 0 40px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.cat-head .hero-glow { opacity: .7; }
.cat-head h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); position: relative; z-index: 1; }
.cat-head p { color: var(--muted); font-size: 1.12rem; max-width: 52ch; margin-top: 16px; position: relative; z-index: 1; }

/* ---------- Newsletter / footer ---------- */
.news {
  border: 1px solid var(--border); border-radius: 20px; padding: 44px;
  background: var(--surface); text-align: center; position: relative; overflow: hidden;
}
.news .hero-glow { opacity: .8; }
.news > * { position: relative; z-index: 1; }
.news h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.news p { color: var(--muted); margin-bottom: 24px; }
.news .form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.news input {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  padding: 13px 18px; border-radius: 999px; font-size: .95rem; min-width: 280px;
  font-family: inherit;
}
.news input:focus { outline: none; border-color: var(--accent); }

.site-footer { border-top: 1px solid var(--border); padding: 52px 0 40px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-about { max-width: 320px; }
.footer-about p { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--text); font-size: .95rem; margin-bottom: 9px; opacity: .85; }
.footer-cols a:hover { color: var(--accent); opacity: 1; }
.copyright { margin-top: 40px; color: var(--muted); font-size: .84rem; border-top: 1px solid var(--border); padding-top: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 64px; }
  .fest-strip { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 24px; width: 100%; border-top: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .grid, .fest-strip { grid-template-columns: 1fr; }
  .news { padding: 30px 22px; }
  .news input { min-width: 0; width: 100%; }
}
