/* =========================
   Young Voices — Festival UI
   ========================= */

@font-face {
  font-family: 'Garamond-Custom';
  src: url('fonts/Garamond.otf') format('opentype');
  font-weight: 100 950;
  font-style: normal;
}

:root {
  --bg: #fff;
  --paper: #fcf5ea;
  --ink: #0b1220;
  --muted: rgba(11, 18, 32, .74);
  --line: rgba(11, 18, 32, .12);
  --card: rgba(255, 255, 255, .78);
  --shadow: 0 18px 60px rgba(11, 18, 32, .12);
  --radius: 18px;
  --radius-lg: 26px;
  --max: 1120px;
  --accent: #7c3aed;
  --sea: #0ea5e9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Garamond-Custom', Garamond, 'EB Garamond', 'Times New Roman', Georgia, serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0 0 12px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 10px;
  background: #000;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 999;
}

.skip-link:focus {
  top: 10px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* Make header wider (less margin) than main content */
.site-header .container {
  width: 100%;
  max-width: none;
  padding-inline: 40px;
  /* Adjust this value to control spacing from edge */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
  /* Push everything else to the right */
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(11, 18, 32, .12);
  background: #fff;
}

.brand-text strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: .01em;
}

.brand-text span {
  display: block;
  font-size: .9rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1.1rem;
}

.nav-toggle span[aria-hidden="true"] {
  display: inline-block;
  transition: transform 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span[aria-hidden="true"] {
  transform: rotate(90deg);
}

.nav ul {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav a {
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 999px;
  color: rgba(11, 18, 32, .90);
}

.nav a:hover {
  background: rgba(124, 58, 237, .10);
}

.nav a[aria-current="page"] {
  background: rgba(11, 18, 32, .06);
  font-weight: 700;
}

#primary-nav {
  padding-right: 50px;
}

@media (max-width: 1399px) {
  #primary-nav {
    padding-right: 0;
  }
}

/* Ensure nav is pushed to the right on desktop, override previous rule */
@media (min-width: 1280px) {
  .site-header .nav {
    margin-left: auto;
  }
}

/* Mobile nav */
@media (max-width: 1279px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .nav {
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    background: rgba(11, 18, 32, .95);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    z-index: 9999;
  }

  .nav[data-open="true"] {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .nav a {
    display: block;
    color: rgba(255, 255, 255, .95);
    padding: 12px 20px;
    text-align: center;
    cursor: pointer;
  }

  .nav a:hover {
    background: rgba(255, 255, 255, .15);
  }

  .nav a[aria-current="page"] {
    background: rgba(255, 255, 255, .12);
    font-weight: 700;
  }
}

/* prevent wrapping inside nav links */
.nav a {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

/* optional: make the link behave like a single inline row */
.nav a {
  display: inline-flex;
  align-items: center;
}

/* 1) make the navbar a bit taller */
.site-header .header-inner {
  padding-block: 14px;
  /* increase height (try 12–18px) */
}

/* 2) push the nav to the far right */
/* 2) nav is already right-aligned due to brand's margin-right: auto */
@media (min-width: 961px) {
  .site-header .nav {
    margin-left: 0;
  }
}

/* optional: ensure brand sits a bit more left within container */
.site-header .brand {
  margin-right: 10px;
}



/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid rgba(11, 18, 32, .16);
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(8px);
  transition: transform .08s ease, border-color .12s ease, background .12s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 18, 32, .30);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 18px 55px rgba(11, 18, 32, .18);
}

.btn-secondary {
  background: rgba(255, 255, 255, .78);
}

/* Button adjustments for very small screens */
@media (max-width: 370px) {
  .btn {
    white-space: normal;
    text-align: center;
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .75);
  color: rgba(11, 18, 32, .86);
  font-size: .92rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(980px 620px at 14% 16%, rgba(124, 58, 237, .22), transparent 62%),
    radial-gradient(820px 520px at 84% 30%, rgba(14, 165, 233, .18), transparent 60%),
    linear-gradient(180deg, var(--paper), #ffffff);
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, .08) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: .08;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 26px;
  padding: clamp(44px, 6vw, 96px) 0;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .86rem;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  line-height: 1.02;
}

.gradient-text {
  color: var(--accent);
  text-shadow: 0 16px 44px rgba(124, 58, 237, .18);
  letter-spacing: .01em;
}

.subhead {
  color: rgba(11, 18, 32, .88);
  font-weight: 800;
  font-size: .55em;
  letter-spacing: .06em;
  text-transform: lowercase;
}

.stanza {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .70);
}

.whisper {
  margin: 0;
  color: rgba(11, 18, 32, .88);
}

.whisper .line {
  display: block;
  margin: 6px 0;
}

.lead {
  margin: 10px 0 16px;
  color: rgba(11, 18, 32, .90);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 10px;
}

.ink-note {
  color: var(--muted);
  margin: 6px 0 0;
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 18px;
}

.card+.card {
  margin-top: 14px;
}

.card-title {
  margin: 0 0 6px;
  font-size: 1.12rem;
}

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

.bullets {
  margin: 10px 0 0;
  padding-left: 18px;
}

.bullets li {
  margin: 6px 0;
}

/* Sections */
.section {
  padding: 0 0 54px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(11, 18, 32, .03), rgba(11, 18, 32, .00));
  border-top: 1px solid rgba(11, 18, 32, .05);
  border-bottom: 1px solid rgba(11, 18, 32, .05);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.6rem;
}

.grid {
  display: grid;
  gap: 14px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 960px) {

  .cards-3,
  .cards-2 {
    grid-template-columns: 1fr;
  }
}

.kpi {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

/* Tables (Program) */
.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, .8);
}

.table th,
.table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(11, 18, 32, .08);
  vertical-align: top;
}

.table th {
  text-align: left;
  background: rgba(11, 18, 32, .04);
  font-size: .95rem;
}

.table tr:last-child td {
  border-bottom: none;
}

/* Responsive table for mobile */
@media (max-width: 500px) {
  .table thead {
    display: none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
  }

  .table tr {
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, .9);
  }

  .table td {
    border: none;
    padding: 6px 0;
    text-align: left;
  }

  .table td::before {
    content: attr(data-label);
    font-weight: 700;
    display: inline-block;
    width: 80px;
    margin-right: 10px;
  }

  .table td:first-child {
    font-weight: 700;
    font-size: 1.05rem;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(11, 18, 32, .08);
    margin-bottom: 6px;
  }

  .table td:first-child::before {
    display: none;
  }
}

.notice {
  border-left: 4px solid var(--accent);
  padding: 12px 14px;
  background: rgba(124, 58, 237, .08);
  border-radius: 12px;
}

/* Forms */
.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11, 18, 32, .18);
  background: rgba(255, 255, 255, .90);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 18px;
  padding: 34px 0;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.footer-links {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.footer-links li {
  margin: 8px 0;
}

.fineprint {
  color: var(--muted);
  font-size: .92rem;
  margin: 10px 0 0;
}

.footer-logos {
  padding: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.logo-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  background: rgba(11, 18, 32, .03);
  color: rgba(11, 18, 32, .86);
  font-weight: 700;
  font-size: .92rem;
}