/*
Theme Name: Pradeep Stage & Road
Theme URI: https://pradeepsonawane.com
Author: Pradeep Sonawane
Description: Dark, cinematic block theme for pradeepsonawane.com — engineering leader, singer (Soulstrings) and rider (Road Sailor). Hub layout with Work, Music and Rides pages.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: pradeep-stage
*/

/* ---------- Base ---------- */
@view-transition { navigation: auto; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 3px; }

.ps-wrap { max-width: 1240px; margin-inline: auto !important; padding-inline: 32px; box-sizing: border-box; width: 100%; }
.ps-wrap > * , .ps-flow-0 > * { margin-block: 0; }
.ps-section { padding-block: 112px; }
.ps-section-sm { padding-block: 72px; }
.ps-band { background: var(--wp--preset--color--ash-2); border-block: 1px solid var(--wp--preset--color--line); }
.ps-band-light { background: var(--wp--preset--color--parchment); color: var(--wp--preset--color--night); }
.ps-band-light a:not(.wp-element-button) { color: var(--wp--preset--color--night); }

.ps-kicker { font-family: var(--wp--preset--font-family--grotesk); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--dust); margin: 0; }
.ps-band-light .ps-kicker { color: #5E564A; }
.ps-h2 { font-family: var(--wp--preset--font-family--grotesk); font-weight: 600; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.ps-serif, .ps-serif em { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-weight: 400; letter-spacing: -.005em; }
.ps-gold { color: var(--wp--preset--color--gold) !important; }
.ps-ember { color: var(--wp--preset--color--ember) !important; }
.ps-muted { color: var(--wp--preset--color--sand); }
.ps-lead { font-size: 19px; line-height: 1.6; max-width: 600px; color: var(--wp--preset--color--sand); }
.ps-band-light .ps-lead, .ps-band-light p { color: #3D372F; }

.ps-stack { display: flex; flex-direction: column; gap: 20px; }
.ps-stack-sm { display: flex; flex-direction: column; gap: 10px; }
.ps-stack > *, .ps-stack-sm > *, .ps-split > *, .ps-grid > *, .ps-row > *, .ps-head > * { margin: 0 !important; }
.ps-split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.ps-split > .ps-col-lg { flex: 3 1 520px; min-width: 0; }
.ps-split > .ps-col { flex: 2 1 380px; min-width: 0; }
.ps-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 36px !important; }
.ps-grid { display: grid; gap: 20px; }
.ps-grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.ps-grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.ps-grid-5 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link { font-family: var(--wp--preset--font-family--grotesk); font-weight: 600; font-size: 15px; border-radius: 999px; padding: 14px 22px; min-height: 48px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px; transition: transform .2s ease, background-color .2s ease; }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-ps-gold .wp-block-button__link { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--night); }
.is-style-ps-ember .wp-block-button__link { background: var(--wp--preset--color--ember); color: var(--wp--preset--color--night); }
.is-style-ps-light .wp-block-button__link { background: var(--wp--preset--color--parchment); color: var(--wp--preset--color--night); }
.is-style-ps-dark .wp-block-button__link { background: var(--wp--preset--color--night); color: var(--wp--preset--color--parchment); }
.is-style-ps-ghost .wp-block-button__link { background: transparent; color: inherit; border: 1px solid #3A352D; }
.ps-band-light .is-style-ps-ghost .wp-block-button__link { border-color: var(--wp--preset--color--night); color: var(--wp--preset--color--night); }

/* ---------- Header / footer ---------- */
.ps-header { border-bottom: 1px solid var(--wp--preset--color--line); position: sticky; top: 0; z-index: 50; background: rgba(12,11,10,.92); backdrop-filter: blur(8px); }
.ps-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.ps-header-inner > * { margin: 0 !important; }
.ps-logo { font-family: var(--wp--preset--font-family--grotesk); font-weight: 700; font-size: 20px; letter-spacing: -.01em; margin: 0; }
.ps-logo a { color: var(--wp--preset--color--parchment); text-decoration: none; }
.ps-logo em { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-weight: 400; font-size: 22px; color: var(--wp--preset--color--gold); }
.ps-nav { font-family: var(--wp--preset--font-family--grotesk); font-size: 15px; gap: 28px; }
.ps-nav a { text-decoration: none; }
.ps-nav .current-menu-item a, .ps-nav a[aria-current="page"] { border-bottom: 2px solid currentColor; padding-bottom: 3px; }
.ps-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--night); color: var(--wp--preset--color--parchment); padding: 32px; }
.ps-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 28px; }
.ps-header .wp-block-button .wp-block-button__link { padding: 10px 18px; min-height: 44px; }

.ps-footer { background: var(--wp--preset--color--ash); border-top: 1px solid var(--wp--preset--color--line); }
.ps-footer-big { font-family: var(--wp--preset--font-family--grotesk); font-weight: 700; font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -.035em; margin: 0; max-width: 900px; }
.ps-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; border-top: 1px solid var(--wp--preset--color--line); padding-top: 28px; margin-top: 64px !important; font-family: var(--wp--preset--font-family--grotesk); font-size: 14px; color: var(--wp--preset--color--dust); }
.ps-footer-bottom > * { margin: 0 !important; }
.ps-footer-bottom a { color: var(--wp--preset--color--parchment); text-decoration: none; margin-left: 24px; }
.ps-footer-bottom a:first-child { margin-left: 0; }

/* ---------- Hero ---------- */
.ps-hero { border-bottom: 1px solid var(--wp--preset--color--line); background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 3px 3px; }
.ps-hero-title { font-family: var(--wp--preset--font-family--grotesk); font-weight: 700; font-size: clamp(44px, 6.4vw, 92px); line-height: .98; letter-spacing: -.035em; margin: 0; }
.ps-hero-title em { font-family: var(--wp--preset--font-family--serif); font-weight: 400; letter-spacing: -.01em; }
.ps-hero-title .ps-g { color: var(--wp--preset--color--gold); }
.ps-hero-title .ps-e { color: var(--wp--preset--color--ember); }
.ps-film { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.ps-film > * { margin: 0 !important; }
.ps-film > :first-child { transform: translateY(-28px); }
.ps-film > :last-child { transform: translateY(28px); }

/* ---------- Media ---------- */
.ps-thumb img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; border-radius: 6px; }
.ps-thumb { margin: 0 !important; }
.ps-thumb a { display: block; overflow: hidden; border-radius: 6px; }
.ps-thumb a img { transition: transform .5s ease; }
.ps-thumb a:hover img { transform: scale(1.04); }
.ps-thumb figcaption, .ps-cap { font-family: var(--wp--preset--font-family--grotesk); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; color: var(--wp--preset--color--dust); }
.ps-card-title { font-family: var(--wp--preset--font-family--grotesk); font-weight: 600; font-size: 17px; margin: 12px 0 2px !important; }
.ps-card-title a { color: inherit; text-decoration: none; }
.ps-card-sub { font-size: 14px; color: var(--wp--preset--color--sand); margin: 0 !important; }
.ps-avatar img { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; }
.ps-avatar { margin: 0 !important; }
.ps-round img { width: 100%; max-width: 340px; aspect-ratio: 1; border-radius: 999px; object-fit: cover; border: 1px solid #3A352D; }
.ps-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; display: block; }

/* ---------- Credentials ---------- */
.ps-creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-bottom: 1px solid var(--wp--preset--color--line); }
.ps-cred { padding: 28px 24px; border-left: 1px solid var(--wp--preset--color--line); }
.ps-cred:first-child { border-left: 0; padding-left: 0; }
.ps-cred > * { margin: 0 !important; }
.ps-cred-big { font-family: var(--wp--preset--font-family--grotesk); font-size: 34px; font-weight: 600; }
.ps-cred-small { font-size: 14px; color: var(--wp--preset--color--sand); margin-top: 6px !important; }

/* ---------- Door cards ---------- */
.ps-door { background: var(--wp--preset--color--ash); border: 1px solid var(--wp--preset--color--ash-line); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 20px; min-height: 420px; box-sizing: border-box; transition: border-color .25s ease, transform .25s ease; }
.ps-door:hover { transform: translateY(-3px); border-color: #4A443A; }
.ps-door > * { margin: 0 !important; }
.ps-door .ps-door-body { flex-grow: 1; font-size: 15px; color: var(--wp--preset--color--sand); }
.ps-door-title { font-family: var(--wp--preset--font-family--grotesk); font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.ps-door-title.ps-serif { font-size: 40px; }
.ps-door-link a { font-family: var(--wp--preset--font-family--grotesk); font-weight: 600; text-decoration: none; color: inherit; }
.ps-pill { font-family: var(--wp--preset--font-family--grotesk); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid #3A352D; border-radius: 999px; padding: 6px 12px; color: var(--wp--preset--color--sand); display: inline-block; align-self: flex-start; }
.ps-pill.ps-gold { border-color: var(--wp--preset--color--gold); }
.ps-pill.ps-ember { border-color: var(--wp--preset--color--ember); }

/* ---------- Podcast card ---------- */
.ps-pod { background: var(--wp--preset--color--night); color: var(--wp--preset--color--parchment); border-radius: 16px; padding: 32px; }
.ps-pod p { color: var(--wp--preset--color--parchment) !important; }
.ps-pod-title { font-family: var(--wp--preset--font-family--grotesk); font-size: 24px; font-weight: 600; line-height: 1.25; }
.ps-wave { display: flex; align-items: center; gap: 3px; height: 48px; }
.ps-wave span { width: 4px; border-radius: 2px; background: #3A352D; }
.ps-wave span:nth-child(-n+8) { background: var(--wp--preset--color--gold); }

/* ---------- Now ---------- */
.ps-now { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--wp--preset--color--ash-line); border: 1px solid var(--wp--preset--color--ash-line); border-radius: 12px; overflow: hidden; }
.ps-now li { background: var(--wp--preset--color--ash-2); padding: 24px; font-family: var(--wp--preset--font-family--grotesk); font-size: 18px; font-weight: 600; display: flex; flex-direction: column; gap: 8px; }
.ps-now li strong { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--dust); font-weight: 500; }
.ps-now li strong.ps-gold, .ps-now li strong.ps-ember { }

/* ---------- Rows / lists ---------- */
.ps-rows { border-top: 1px solid var(--wp--preset--color--ash-line); }
.ps-rows .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.ps-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--wp--preset--color--ash-line); }
.ps-row-title { font-family: var(--wp--preset--font-family--grotesk); font-size: 22px; font-weight: 500; flex: 1 1 420px; margin: 0; }
.ps-row-title a { color: inherit; text-decoration: none; }
.ps-row-title a:hover { color: var(--wp--preset--color--gold); }
.ps-row .wp-block-post-date { font-family: var(--wp--preset--font-family--grotesk); font-size: 13px; color: var(--wp--preset--color--dust); }
.ps-row-date { font-family: var(--wp--preset--font-family--grotesk); color: var(--wp--preset--color--dust); width: 110px; flex: none !important; }

/* Timeline */
.ps-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 2px solid var(--wp--preset--color--gold); }
.ps-timeline > * { padding: 24px 20px 0 0; margin: 0 !important; }
.ps-tl-year { font-family: var(--wp--preset--font-family--grotesk); font-size: 28px; font-weight: 600; color: var(--wp--preset--color--gold); margin: 0 !important; }
.ps-tl-role { font-family: var(--wp--preset--font-family--grotesk); font-size: 18px; font-weight: 600; margin: 8px 0 4px !important; }

/* Service cards */
.ps-card { background: var(--wp--preset--color--ash); border: 1px solid var(--wp--preset--color--ash-line); border-radius: 14px; padding: 28px; }
.ps-card > * { margin: 0 0 12px !important; }
.ps-card h3 { font-family: var(--wp--preset--font-family--grotesk); font-size: 22px; font-weight: 600; }
.ps-card p { font-size: 15px; color: var(--wp--preset--color--sand); }

/* Tracks */
.ps-track { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--wp--preset--color--ash-line); }
.ps-track > * { margin: 0 !important; }
.ps-track-name { flex: 1 1 280px; font-family: var(--wp--preset--font-family--grotesk); font-size: 19px; font-weight: 500; }
.ps-track-meta { font-size: 14px; color: var(--wp--preset--color--dust); min-width: 200px; }
.ps-play { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--wp--preset--color--gold); color: var(--wp--preset--color--gold); display: inline-flex; align-items: center; justify-content: center; flex: none; text-decoration: none; }
.ps-play:hover { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--night); }

/* Specs */
.ps-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--wp--preset--color--ash-line); border: 1px solid var(--wp--preset--color--ash-line); border-radius: 12px; overflow: hidden; margin: 0; }
.ps-specs div { background: var(--wp--preset--color--ash-2); padding: 18px; }
.ps-specs dt { font-family: var(--wp--preset--font-family--grotesk); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--dust); }
.ps-specs dd { margin: 6px 0 0; font-family: var(--wp--preset--font-family--grotesk); font-weight: 600; font-size: 18px; }

/* Placeholder boxes */
.ps-placeholder { border: 1px dashed #3A352D; background: var(--wp--preset--color--ash); border-radius: 14px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; box-sizing: border-box; }
.ps-placeholder p { font-family: var(--wp--preset--font-family--grotesk); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--dust); }

/* Blog / single */
.ps-article { max-width: 760px; margin-inline: auto; padding: 96px 32px; box-sizing: border-box; }
.ps-article .wp-block-post-title { font-family: var(--wp--preset--font-family--grotesk); font-weight: 700; font-size: clamp(36px, 5vw, 60px); letter-spacing: -.03em; line-height: 1.05; }
.ps-article .wp-block-post-content { font-size: 18px; line-height: 1.75; color: var(--wp--preset--color--sand); }
.ps-article .wp-block-post-content a { color: var(--wp--preset--color--gold); }
.ps-article .wp-block-post-content h2, .ps-article .wp-block-post-content h3 { color: var(--wp--preset--color--parchment); font-family: var(--wp--preset--font-family--grotesk); }
.ps-pagination { margin-top: 40px !important; font-family: var(--wp--preset--font-family--grotesk); gap: 16px; }

/* Scroll reveal (progressive enhancement) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ps-reveal { animation: ps-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  }
}
@keyframes ps-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } html { scroll-behavior: auto; } }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
  .ps-wrap { padding-inline: 16px; }
  .ps-section { padding-block: 72px; }
  .ps-cred { border-left: 0; padding-left: 0; border-top: 1px solid var(--wp--preset--color--line); }
  .ps-cred:first-child { border-top: 0; }
  .ps-film > :first-child, .ps-film > :last-child { transform: none; }
  .ps-door { min-height: 0; }
  .ps-header .wp-block-buttons { display: none; }
  .ps-footer-bottom a { margin-left: 0; margin-right: 18px; }
}

/* fixes */
.ps-band-light .ps-h2 { color: var(--wp--preset--color--night); }
.ps-pod .ps-kicker { color: var(--wp--preset--color--dust) !important; }
.ps-top { align-items: flex-start; }
.ps-main { display: block; }
.ps-main > * { margin-block: 0; }
.ps-sub { font-family: var(--wp--preset--font-family--grotesk); font-size: 22px; font-weight: 500; }
.ps-music-title { font-family: var(--wp--preset--font-family--serif) !important; font-style: italic; font-weight: 400 !important; font-size: clamp(72px, 11vw, 160px); line-height: .9; color: var(--wp--preset--color--gold) !important; letter-spacing: -.01em; margin: 0; }
.ps-ride-title { font-family: var(--wp--preset--font-family--grotesk); font-weight: 700; font-size: clamp(56px, 8.5vw, 128px); line-height: .9; letter-spacing: -.045em; margin: 0; }
.ps-ride-title em { font-family: var(--wp--preset--font-family--serif); font-weight: 400; color: var(--wp--preset--color--ember); letter-spacing: -.01em; }
.ps-round { display: flex; justify-content: center; }
.ps-portrait { aspect-ratio: 4 / 5; }
.ps-screen { aspect-ratio: 16 / 10; background: var(--wp--preset--color--night); border-color: var(--wp--preset--color--night); }
.ps-screen p { color: var(--wp--preset--color--dust) !important; }
.ps-machine { flex: 1 1 260px; max-width: 320px; }
.ps-time { min-width: 0 !important; }
.ps-cta-big { font-family: var(--wp--preset--font-family--grotesk); font-weight: 700; font-size: clamp(32px, 4.5vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin: 0; }
.ps-feat img { border-radius: 14px; }
.ps-article .ps-kicker { margin-bottom: 12px; }
.ps-hero-title .ps-e, .ps-hero-title em.ps-e { color: var(--wp--preset--color--ember); }
.ps-stack-sm.ps-head { align-items: flex-start; }
@media (max-width: 781px) {
  .ps-grid-4, .ps-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .ps-card-title { font-size: 15px; }
  .ps-hero-title { font-size: clamp(40px, 11vw, 56px); }
  .ps-film { gap: 8px; }
  .ps-split { gap: 40px; }
  .ps-track-meta { min-width: 0; flex: 1 1 100%; padding-left: 60px; }
  .ps-time { display: none; }
}
@media (max-width: 781px) { .ps-machine { max-width: 220px; } }
