/* SinghAI — quiet digital gurdwara space
   Deep navy, soft off-white, kesari accents. Mobile-first. No frameworks. */

:root {
  --bg: #0B1220;
  --bg-raised: #121A2B;
  --bg-soft: #182234;
  --text: #F2EEE6;
  --text-muted: #B8B0A4;
  --kesari: #E8A838;
  --kesari-soft: #C9922E;
  --navy: #1A2740;
  --border: rgba(232, 168, 56, 0.22);
  --focus: #F0C56A;
  --max: 42rem;
  --wide: 58rem;
  --radius: 0.5rem;
  --space: 1rem;
  --font: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-gurmukhi: "Noto Sans Gurmukhi", "Noto Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.gurmukhi {
  font-family: var(--font-gurmukhi);
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--kesari);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--focus);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space);
  top: -100px;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--kesari);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem var(--space);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--kesari);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.125rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-soft);
}

.nav a[aria-current="page"] {
  color: var(--kesari);
}

/* Main layout */
main {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2rem var(--space) 3.5rem;
}

.prose {
  max-width: var(--max);
}

.hero {
  text-align: center;
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.hero-mark {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  opacity: 0.95;
}

.greeting {
  font-family: var(--font-gurmukhi);
  color: var(--kesari);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 650;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

.tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 28rem;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.25rem 0 0.85rem;
  color: var(--text);
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--text);
}

.muted {
  color: var(--text-muted);
}

.note {
  font-size: 0.95rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding-left: 0.9rem;
  margin: 1rem 0 1.5rem;
}

.disclaimer {
  margin: 1.5rem 0;
  padding: 0.9rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.98rem;
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.feature-list strong {
  display: block;
  color: var(--kesari);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.feature-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.75rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.75rem;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}

.steps li:last-child {
  border-bottom: none;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--kesari);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-raised);
}

/* Buttons */
.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin: 1.75rem 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  background: var(--kesari);
  color: #0B1220;
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn:hover {
  background: var(--focus);
  color: #0B1220;
}

.btn-secondary {
  background: transparent;
  color: var(--kesari);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  color: var(--focus);
}

.cta-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Lists */
.plain-list {
  padding-left: 1.25rem;
  margin: 0.75rem 0 1.25rem;
}

.plain-list li {
  margin-bottom: 0.4rem;
}

.plain-list li::marker {
  color: var(--kesari);
}

.two-col {
  display: grid;
  gap: 1.25rem;
  margin: 1.25rem 0;
}

@media (min-width: 640px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.card h3 {
  margin-top: 0;
  color: var(--kesari);
}

.card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.card li {
  margin-bottom: 0.35rem;
}

/* Form */
.contact-form {
  max-width: 28rem;
  margin: 1.5rem 0;
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #7A7368;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.form-actions .btn {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
  padding: 2rem var(--space);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.15rem;
  margin-bottom: 1.25rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover {
  color: var(--kesari);
}

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

.footer-copy .gurmukhi {
  color: var(--kesari-soft);
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 720px) {
  main {
    padding-top: 2.5rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .cta-row {
    flex-direction: row;
    justify-content: center;
  }

  .feature-list {
    grid-template-columns: 1fr 1fr;
  }

  .feature-list li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Teachings — series & episode cards */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--kesari);
}

.series-list,
.episode-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  display: grid;
  gap: 0.85rem;
}

.series-card,
.episode-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.series-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.series-card a:hover strong {
  color: var(--focus);
}

.series-label,
.episode-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--kesari-soft);
  margin-bottom: 0.35rem;
}

.series-card strong,
.episode-card strong {
  display: block;
  font-size: 1.1rem;
  color: var(--kesari);
  margin-bottom: 0.35rem;
}

.series-card p,
.episode-card p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.series-cta {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--kesari);
}

.series-card--ready {
  border-color: rgba(232, 168, 56, 0.4);
}

.series-card--soon,
.episode-card--soon {
  opacity: 0.85;
}

.badge-soon,
.badge-ready {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.badge-ready {
  color: var(--kesari);
  border-color: rgba(232, 168, 56, 0.45);
}

/* YouTube CTA / embed placeholder */
.youtube-cta,
.youtube-block {
  margin: 2.25rem 0 1.5rem;
  padding: 1.35rem 1.25rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.youtube-cta h2,
.youtube-block h2 {
  margin-top: 0;
}

.youtube-embed-area {
  margin: 1rem 0 1.25rem;
  padding: 2rem 1rem;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.youtube-placeholder {
  margin: 0 0 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.youtube-cta .btn,
.youtube-block .cta-row {
  margin-top: 0.5rem;
}
