/* DGN Sounds - site stylesheet
   Design system lives in the :root variables below. Edit colours and type there.
   No build step, no JavaScript required. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans Gurmukhi";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-sans-gurmukhi-400.woff2") format("woff2");
  unicode-range: U+0A01-0A76, U+200C-200D, U+25CC;
}

/* Metric-matched fallbacks: keep layout steady while the web fonts load (reduces layout shift) */
@font-face {
  font-family: "Outfit Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 100%;
  ascent-override: 100%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Source Serif 4 Fallback";
  src: local("Times New Roman"), local("Liberation Serif"), local("Times");
  size-adjust: 117.6%;
  ascent-override: 88.1%;
  descent-override: 28.5%;
  line-gap-override: 0%;
}

:root {
  /* Palette: drawn from the DGN Sounds logo (night navy, sunrise orange, gold) */
  --navy-950: #071830;
  --navy-900: #0b2140;
  --navy-800: #0e2a47;
  --navy-700: #163f6a;
  --navy-600: #1f5a8c;
  --orange: #f26a21;
  --orange-deep: #d9531a;
  --orange-text: #ab3d0c; /* orange for small text on light backgrounds (WCAG AA) */
  --gold: #f7b733;
  --gold-soft: #fbd77a;
  --cream: #faf5ec;
  --cream-2: #f1e8d8;
  --cream-3: #e6dbc6;
  --ink: #1b1a1f;
  --ink-2: #44424c;
  --ink-3: #6b6875;
  --white: #ffffff;

  /* Type */
  --font-display: "Outfit", "Outfit Fallback", Arial, sans-serif;
  --font-body: "Source Serif 4", "Source Serif 4 Fallback", "Times New Roman", serif;
  --font-pa: "Noto Sans Gurmukhi", "Raavi", "Nirmala UI", "Gurmukhi MN", system-ui, sans-serif;

  --text-base: 1.125rem;
  --leading-body: 1.65;

  /* Layout */
  --container: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 0.375rem;
  --radius-lg: 1rem;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
main { flex: 1 0 auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  font-weight: 600;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--navy-700); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--orange-deep); }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--gold); }
[lang="pa"] { font-family: var(--font-pa); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: 1rem;
}
.on-dark .eyebrow { color: var(--gold); }
.lede {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38rem;
}
.on-dark .lede { color: #d6dde8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy-900); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }
.btn-navy { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.btn-navy:hover { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }
.btn-outline-navy { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline-navy:hover { background: var(--navy-800); color: var(--white); }
.btn-sm { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 33, 64, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
  padding-block: 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand img { width: 2.6rem; height: auto; }
.brand b { font-weight: 800; }
.brand span { font-weight: 300; }
.site-nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem); flex-wrap: wrap; }
.site-nav a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: #e6ecf5;
  text-decoration: none;
  padding: 0.6rem 0.15rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-800);
  background-image:
    radial-gradient(ellipse 60% 55% at 78% 45%, rgba(242,106,33,0.32), transparent 65%),
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(247,183,51,0.18), transparent 70%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-950) 100%);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
  min-height: min(88vh, 52rem);
}
.hero-text h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.4vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.hero-text h1 em { font-style: normal; color: var(--gold); }
.hero .eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
}
.hero .eyebrow [lang="pa"] {
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white);
}
.hero .eyebrow .dot { width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--gold); }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero .cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: start;
}
.hero .cta-row .btn { justify-content: center; }
.hero .cta-row .btn-primary { grid-column: 1 / -1; }
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 18rem;
}
.hero-art .emblem {
  position: relative;
  z-index: 2;
  width: min(100%, 30rem);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.45));
}
.ripples {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 160%;
  max-width: none;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art .emblem { animation: rise 1.1s var(--ease) both; }
  .ripples { animation: fade 1.6s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 0.9; } }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
.section-head p { color: var(--ink-2); font-size: 1.15rem; }
.on-dark { background: var(--navy-900); color: var(--white); }
.on-dark .section-head p { color: #cfd8e6; }
.on-dark a:not(.btn) { color: var(--gold-soft); }
.on-dark a:not(.btn):hover { color: var(--white); }

/* ---------- Platforms ---------- */
.platform-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cream-3); }
.platform {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: 1rem clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid var(--cream-3);
}
.platform .num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.25rem;
  color: var(--orange-deep);
  line-height: 1;
}
.platform h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  margin-bottom: 0.4rem;
}
.platform h3 svg { width: 1.1em; height: 1.1em; color: var(--navy-700); flex: none; }
.platform p { color: var(--ink-2); max-width: 40rem; margin: 0; }
.platform .meta {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--ink-3);
  margin-top: 0.5rem;
}
.platform .action { justify-self: end; }
.platform .btn { white-space: nowrap; }

/* ---------- Why ---------- */
.why {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(242,106,33,0.18), transparent 70%),
    var(--navy-900);
}
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.reason { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; }
.reason .icon {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(247,183,51,0.12);
  border: 1px solid rgba(247,183,51,0.35);
  color: var(--gold);
}
.reason .icon svg { width: 1.4rem; height: 1.4rem; }
.reason h3 { font-size: 1.35rem; margin-bottom: 0.3rem; color: var(--white); }
.reason p { color: #cfd8e6; margin: 0; }
.stat-block {
  border-left: 3px solid var(--gold);
  padding-left: clamp(1.25rem, 3vw, 2rem);
  align-self: center;
}
.stat-block .big {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(4rem, 3rem + 5vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
}
.stat-block .big b { font-weight: 700; color: var(--gold); }
.stat-block .label { font-family: var(--font-display); font-size: 1.15rem; color: #e6ecf5; margin-top: 0.75rem; }
.stat-block .note { font-size: 0.95rem; color: #9fb0c8; margin-top: 0.5rem; }

/* ---------- Archive picks ---------- */
.picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.pick {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--cream-3);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.pick .year {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--orange-text);
  padding: 0.35rem 0.6rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
}
.pick h3 { font-size: 1.25rem; margin-bottom: 0.15rem; }
.pick p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.pick a.title-link { color: var(--navy-900); text-decoration: none; }
.pick a.title-link:hover { color: var(--orange-deep); text-decoration: underline; }
.pick .listen { white-space: nowrap; }

/* ---------- About ---------- */
.about { background: var(--cream-2); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.quote-mark {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 6rem;
  line-height: 0.5;
  color: var(--orange);
  margin-bottom: 1.5rem;
}
.about-grid .statement {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  line-height: 1.5;
  color: var(--ink);
}
.seva-note {
  background: var(--white);
  border: 1px solid var(--cream-3);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.seva-note h3 { font-size: 1.4rem; }
.seva-note dl { margin: 0; display: grid; gap: 1rem; }
.seva-note dt { font-family: var(--font-display); font-weight: 600; color: var(--navy-800); }
.seva-note dd { margin: 0.15rem 0 0; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #cfd8e6;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}
.footer-lockup { width: min(100%, 16rem); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { font-family: var(--font-display); font-weight: 500; color: var(--white); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.95rem;
  color: #9fb0c8;
}
.footer-bottom a { color: #cfd8e6; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Simple pages (privacy, 404) ---------- */
.page-hero { background: var(--navy-800); color: var(--white); padding-block: clamp(3rem, 6vw, 5rem); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .lede { color: #d6dde8; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mt-0 { margin-top: 0; }
.footer-bottom.plain { margin-top: 0; border-top: 0; padding-top: 0; }
.page-hero h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); margin-bottom: 0.5rem; }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.25rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  .hero .container { grid-template-columns: 1fr; text-align: left; min-height: 0; }
  .hero-art { order: -1; min-height: 0; }
  .hero-art .emblem { width: min(70%, 20rem); }
  .ripples { width: 130%; }
  .why-grid, .about-grid { grid-template-columns: 1fr; }
  .stat-block { border-left: 0; border-top: 3px solid var(--gold); padding: 1.5rem 0 0; }
}
@media (max-width: 44rem) {
  :root { --text-base: 1.0625rem; }
  html { scroll-padding-top: 1rem; }
  .site-header { position: static; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--navy-900); }
  .site-header .container { justify-content: center; }
  .site-nav .btn { display: none; }
  .hero .eyebrow { display: block; }
  .hero .eyebrow .dot { display: none; }
  .hero .eyebrow [lang="pa"] { display: block; margin-bottom: 0.5rem; }
  .hero .eyebrow { font-size: 0.78rem; letter-spacing: 0.1em; }
  .hero .cta-row { grid-template-columns: 1fr; }
  .platform { align-items: start; }
  .platform .num { padding-top: 0.35rem; }
  .pick .year { align-self: start; }
  .platform { grid-template-columns: 2.75rem minmax(0, 1fr); }
  .platform .num { font-size: 1.6rem; color: var(--orange-text); }
  .platform .action { grid-column: 2; justify-self: start; }
  .pick { grid-template-columns: auto minmax(0, 1fr); }
  .pick .listen { grid-column: 2; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; justify-content: center; }
}
@media (max-width: 24rem) {
  .brand { font-size: 1.15rem; }
  .site-nav { gap: 0.5rem 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .skip-link, .ripples { display: none; }
  body { background: #fff; color: #000; }
}
