/* ============================================
   iTones.org — Refined Music Portfolio CSS
   Aesthetic: Editorial / Luxury Dark
   ============================================ */

:root {
  --bg: #0e0e0e;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --border: rgba(255,255,255,0.08);
  --accent: #c8a96e;
  --accent-dim: rgba(200,169,110,0.15);
  --text: #e8e4dc;
  --text-muted: #7a7672;
  --text-dim: #4a4744;
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 3px;
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; border-radius: var(--radius); }
video { width: 100%; background: #000; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: rgba(14,14,14,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--text); font-size: 1.4rem;
  cursor: pointer;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 120px 40px 80px;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #1c1610 0%, var(--bg) 70%);
}

.hero-grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: relative; z-index: 1;
  animation: fadeUp 0.9s ease both;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  font-weight: 300;
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: #0e0e0e;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

/* ticker */
.hero-ticker {
  position: absolute; bottom: 32px; left: 0; right: 0; overflow: hidden;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  white-space: nowrap;
}
.hero-ticker span {
  display: inline-block;
  animation: ticker 30s linear infinite;
  padding-right: 80px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ SECTIONS ============ */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px;
}

.section-header {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 56px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap;
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

/* ============ POSTS GRID ============ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px;
}

.post-card--wide {
  grid-column: 1 / -1;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background 0.25s, border-color 0.25s;
  animation: fadeUp 0.6s ease both;
}
.post-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(200,169,110,0.2);
}

.post-card--teaser {
  border-style: dashed;
  border-color: var(--text-dim);
  opacity: 0.65;
}

.post-tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.post-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--text);
}
.post-title a:hover { color: var(--accent); transition: color 0.2s; }

.post-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.post-excerpt em { color: var(--text); font-style: italic; }

.post-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}
.post-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.post-media {
  display: flex; flex-direction: column; gap: 12px;
}
.post-media--row {
  flex-direction: row; flex-wrap: wrap;
}
.post-media--row video { flex: 1; min-width: 260px; }

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  padding: 140px 40px 60px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-hero-tag {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
}

/* ============ PLAYLISTS PAGE ============ */
.playlists-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 100px;
  display: flex; flex-direction: column; gap: 56px;
}

.playlist-block {}
.playlist-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
}
.playlist-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 640px;
}

.track-list {
  list-style: none;
  border-top: 1px solid var(--border);
}
.track-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.track-list li:hover { color: var(--text); }
.track-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-dim);
  min-width: 28px;
}
.track-name { flex: 1; }
.track-name a { color: inherit; }
.track-name a:hover { color: var(--accent); }

/* audio player override */
audio {
  width: 100%;
  height: 36px;
  filter: invert(1) hue-rotate(180deg) brightness(0.8);
  border-radius: 2px;
}

/* ============ RECORDS PAGE ============ */
.records-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}
.record-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 30px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.2s;
}
.record-card:hover { background: var(--bg-card-hover); }
.record-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text);
}
.record-card-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.record-card-body em { color: var(--text); font-style: italic; }
.record-card-link {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: border-color 0.2s;
}
.record-card-link:hover { border-color: var(--accent); }

/* ============ CONTACT PAGE ============ */
.contact-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.contact-intro {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 48px;
}
.contact-intro h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  margin-bottom: 20px;
}
.contact-intro p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.contact-email {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: 8px;
}
.contact-email:hover { text-decoration: underline; }

.contact-team {
  display: flex; flex-direction: column; gap: 2px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.2s;
}
.team-card:hover { background: var(--bg-card-hover); }
.team-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
}
.team-role {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.team-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.team-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
}
.team-tracks {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 4px;
}
.team-tracks li { font-size: 0.85rem; color: var(--text-muted); }
.team-tracks a { color: var(--text-muted); }
.team-tracks a:hover { color: var(--accent); }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}
.footer-logo span { color: var(--accent); }
.footer-nav { display: flex; gap: 24px; flex: 1; }
.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(14,14,14,0.97);
    padding: 24px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav-toggle { display: block; }

  .hero { padding: 100px 20px 60px; }
  .section { padding: 60px 20px; }
  .page-hero { padding: 120px 20px 40px; }
  .playlists-wrap { padding: 0 20px 80px; }
  .records-grid { padding: 0 20px 80px; }
  .contact-wrap { padding: 0 20px 80px; grid-template-columns: 1fr; }
  .footer { padding: 30px 20px; }
  .footer-nav { display: none; }

  .posts-grid { grid-template-columns: 1fr; }
  .post-card--wide { grid-column: 1; }
}
