/*
Theme Name: Dropout Soul
Theme URI: https://example.com/dropout-soul
Author: Dropout Soul
Author URI: https://example.com
Description: A one-page, understated dark theme built around the Dropout Soul mark — a warm ember-to-teal gradient on near-black. Built for a music producer: logo up top, a short bio, a music player embed, a YouTube embed, and an email signup, with every section editable from the WordPress Customizer and Widgets screens.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dropout-soul
*/

/* -------------------------------------------------------------
   0. DESIGN TOKENS
   Palette pulled from the Dropout Soul mark: near-black corners,
   an ember-to-olive glow, and a thin teal light-break running
   through it. Kept quiet everywhere except the hero.
------------------------------------------------------------- */
:root{
  --void:        #0a0a0e;
  --panel:       #121216;
  --panel-raised:#191920;
  --hairline:    rgba(245, 241, 232, 0.09);
  --hairline-strong: rgba(245, 241, 232, 0.16);

  --cream:       #f4f0e6;
  --muted:       #9c99a1;
  --muted-dim:   #6b6870;

  --ember:       #b8402c;
  --olive:       #9c8a2e;
  --teal:        #1f3d47;
  --accent:      var(--ember);

  --gradient-glow: radial-gradient(120% 140% at 8% 20%, rgba(184,64,44,0.55) 0%, rgba(156,138,46,0.38) 38%, rgba(31,61,71,0.28) 62%, rgba(10,10,14,0) 78%);
  --gradient-line: linear-gradient(90deg, transparent 0%, var(--ember) 18%, var(--olive) 50%, var(--teal) 78%, transparent 100%);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w: 760px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 14px;
}

/* -------------------------------------------------------------
   1. RESET & BASE
------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--void);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--cream); text-decoration-color: rgba(244,240,230,0.35); text-underline-offset: 3px; }
a:hover{ text-decoration-color: var(--olive); }
a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

h1, h2, h3{ font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.5em; }

.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--wide{ max-width: 980px; }

.screen-reader-text{
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* Signature motif: the gradient hairline, echoing the light-break in the logo */
.hairline{
  height: 1px;
  width: 100%;
  background: var(--gradient-line);
  opacity: 0.7;
  border: 0;
  margin: 0;
}

/* -------------------------------------------------------------
   2. SITE HEADER
------------------------------------------------------------- */
.site-header{
  position: relative;
  padding: clamp(2.5rem, 8vw, 5rem) var(--gutter) clamp(2.5rem, 7vw, 4rem);
  text-align: center;
  overflow: hidden;
  background-color: var(--void);
}
.site-header::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0.9;
  pointer-events: none;
}
.site-header__inner{ position: relative; z-index: 1; }

.site-nav{
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-bottom: clamp(1.5rem, 5vw, 3rem);
}
.site-nav ul{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0; padding: 0;
}
.site-nav a{
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover{ color: var(--cream); }

.custom-logo-link{ display: inline-block; }
.custom-logo-link img{
  max-width: min(420px, 82vw);
  margin: 0 auto;
}
.site-title-fallback{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 8vw, 4rem);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--cream);
}
.site-title-fallback a{ color: inherit; text-decoration: none; }

.hero-tagline{
  margin: 1.5rem auto 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* -------------------------------------------------------------
   3. SECTIONS
------------------------------------------------------------- */
.section{
  padding: clamp(3rem, 9vw, 5.5rem) var(--gutter);
}
.section--panel{ background: var(--panel); }

.section__eyebrow{
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 0.9rem;
}
.section__heading{
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--cream);
}
.section__subtext{
  color: var(--muted);
  max-width: 52ch;
  margin: -0.25rem 0 1.75rem;
}

/* About / bio */
.about-content{
  color: var(--cream);
  font-size: 1.05rem;
}
.about-content p:first-child{ margin-top: 0; }
.about-content p:last-child{ margin-bottom: 0; }

/* Embeds: music + video widget areas */
.embed-widget-area{ width: 100%; }
.embed-widget-area .widget{ margin: 0; }
.embed-widget-area iframe,
.embed-widget-area embed,
.embed-widget-area video{
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  display: block;
}
/* If a YouTube/Vimeo embed gets pasted into a generic embed area (Latest
   Release, Music Player) instead of the dedicated Video block, force a
   sane 16:9 ratio instead of trusting whatever width/height the platform's
   share code shipped with. Audio-only embeds (Spotify/SoundCloud/Bandcamp/
   Apple Music) are left exactly as provided. */
.embed-widget-area iframe[src*="youtube.com"],
.embed-widget-area iframe[src*="youtube-nocookie.com"],
.embed-widget-area iframe[src*="youtu.be"],
.embed-widget-area iframe[src*="player.vimeo.com"]{
  aspect-ratio: 16 / 9;
  height: auto;
}

.embed-frame{
  background: var(--panel-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(0.75rem, 2vw, 1.25rem);
}
.video-embed-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  background: var(--void);
}
.video-embed-wrap iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 0;
}

.embed-placeholder{
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted-dim);
  font-size: 0.9rem;
  line-height: 1.7;
}
.embed-placeholder code{
  background: rgba(244,240,230,0.06);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Newsletter */
.newsletter-box{
  background: var(--panel-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.newsletter-fallback-form{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 460px;
}
.newsletter-fallback-form input[type="email"]{
  flex: 1 1 220px;
  background: var(--void);
  border: 1px solid var(--hairline-strong);
  color: var(--cream);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.newsletter-fallback-form input[type="email"]::placeholder{ color: var(--muted-dim); }
.newsletter-fallback-form button{
  flex: 0 0 auto;
  background: var(--cream);
  color: var(--void);
  border: 0;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.newsletter-fallback-form button:hover{ background: var(--olive); color: var(--cream); }
.newsletter-note{
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--muted-dim);
}

/* -------------------------------------------------------------
   4. FOOTER
------------------------------------------------------------- */
.site-footer{
  padding: clamp(2rem, 6vw, 3rem) var(--gutter) clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
}
.social-links{
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
}
.social-links a{
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.social-links a:hover{ color: var(--cream); }
.social-links svg{ width: 16px; height: 16px; fill: currentColor; }

.footer-text{
  color: var(--muted-dim);
  font-size: 0.8rem;
  margin: 0;
}

/* -------------------------------------------------------------
   5. GENERIC PAGE / SINGLE / ARCHIVE CONTENT
   (kept quiet — for a blog post, static page, etc.)
------------------------------------------------------------- */
.page-content-wrap{
  padding: clamp(3rem, 8vw, 5rem) var(--gutter);
}
.entry-title{ font-size: clamp(1.6rem, 5vw, 2.4rem); }
.entry-meta{ color: var(--muted-dim); font-size: 0.85rem; margin-bottom: 2rem; }
.entry-content{ font-size: 1.05rem; }
.entry-content a{ color: var(--cream); }
.entry-content img{ border-radius: var(--radius); }
.post-list-item{ padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--hairline); }
.post-list-item:last-child{ border-bottom: 0; }
.post-list-item .entry-title a{ text-decoration: none; }
.pagination-nav{ display: flex; justify-content: space-between; margin-top: 2rem; color: var(--muted); }
.pagination-nav a{ color: var(--cream); }

/* -------------------------------------------------------------
   6. WIDGET / WORDPRESS DEFAULT ELEMENT POLISH
------------------------------------------------------------- */
.widget-title{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 1rem;
}
input, textarea, select, button{ font-family: inherit; }

/* -------------------------------------------------------------
   7. RESPONSIVE
------------------------------------------------------------- */
@media (max-width: 600px){
  .section{ padding-left: 1.25rem; padding-right: 1.25rem; }
  .newsletter-fallback-form{ flex-direction: column; }
  .newsletter-fallback-form button{ width: 100%; }
}
