/*
Theme Name: Recharge Festival Editorial
Description: Clean private editorial origin for the Recharge Festival static site.
Version: 1.0.1
Requires at least: 7.0
Requires PHP: 8.1
Text Domain: recharge-festival
*/

:root {
  --forest: #315f54;
  --forest-deep: #23483f;
  --saffron: #f39a2e;
  --saffron-deep: #c96f16;
  --ink: #3d403f;
  --muted: #6d7471;
  --mist: #edf1ef;
  --paper: #ffffff;
  --measure: 72rem;
  --shadow: 0 1.25rem 3rem rgba(35, 72, 63, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--forest-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--saffron-deep); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 4px;
}

h1, h2, h3, h4, h5, h6,
.site-nav, .eyebrow, .festival-state, .site-footer {
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }

.site-header {
  position: relative;
  z-index: 10;
  color: #fff;
  background: var(--forest);
  border-bottom: 0.4rem solid var(--mist);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--measure));
  min-height: 5.5rem;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 0;
}

.brand img { width: min(24rem, 43vw); display: block; }

.site-nav { display: flex; align-items: stretch; }
.site-nav ul { display: flex; align-items: stretch; gap: 0; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  min-height: 5.1rem;
  padding: 0 1.25rem;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--forest-deep); color: #fff; }
.site-nav .festival-state { background: var(--saffron); color: #242a28; font-weight: 800; }
.site-nav .festival-state:hover { background: #ffad47; color: #151817; }

.mobile-nav { display: none; align-self: center; }
.mobile-nav summary { cursor: pointer; font-family: Arial, sans-serif; font-weight: 700; }
.mobile-nav ul { margin: 0.75rem 0 1rem; padding-left: 1.2rem; }
.mobile-nav a { color: #fff; }

.page-shell {
  width: min(calc(100% - 2rem), var(--measure));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.page-heading {
  margin: -0.3rem 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 4px solid var(--saffron);
}

.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content p { margin: 0 0 1.25rem; }
.entry-content hr { margin: 3rem 0; border: 0; border-top: 1px solid #d7dfdb; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 0.75rem; border: 1px solid #cbd6d1; vertical-align: top; }

.home .page-shell { padding-top: clamp(2rem, 4vw, 3.5rem); }
.home .entry-content > .kb-row-layout-wrap:first-child { text-align: center; max-width: 55rem; margin: 0 auto 2.75rem; }
.home .entry-content > .kb-row-layout-wrap:first-child p:first-child {
  margin-bottom: 0.25rem;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 800;
}
.home .entry-content > .kb-row-layout-wrap:first-child p:nth-child(2) { font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.3; }
.home .entry-content > .kb-row-layout-wrap:first-child p:last-child { font-size: 1.2rem; }

.home .kb-row-layout-id8_7e2e22-78 {
  max-width: 48rem;
  margin: 0 auto 3rem;
  padding: 1.25rem 2rem;
  color: #202624;
  text-align: center;
  background: var(--saffron);
  box-shadow: var(--shadow);
}
.home .kb-row-layout-id8_7e2e22-78 h2 { margin: 0 0 0.45rem; color: #fff; text-transform: uppercase; }
.home .kb-row-layout-id8_7e2e22-78 p { margin: 0.2rem 0; font-family: "Arial Narrow", Arial, sans-serif; }

.home .kb-row-layout-id8_73f509-bb { text-align: center; text-transform: uppercase; }
.home .kt-has-2-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 7vw, 7rem); }
.home .kt-has-2-columns .kb-img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; }
.home .kt-has-2-columns h3 { text-align: center; text-transform: uppercase; }
.home .kt-has-2-columns p { font-family: "Arial Narrow", Arial, sans-serif; font-size: 1rem; line-height: 1.55; }

.message.success {
  padding: 1rem 1.25rem;
  border-left: 0.35rem solid var(--saffron);
  background: var(--mist);
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.video-band { padding: clamp(3rem, 7vw, 5rem) 1rem; background: var(--forest-deep); color: #fff; }
.video-inner { width: min(100%, 54rem); margin: 0 auto; }
.video-inner h2 { color: #fff; text-align: center; }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.festival-updates { padding: clamp(2.5rem, 6vw, 4rem) 1rem; background: var(--mist); }
.festival-updates-inner {
  width: min(100%, var(--measure));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.festival-updates h2 { margin: 0.3rem 0 0.8rem; }
.festival-updates .eyebrow {
  margin: 0;
  color: var(--saffron-deep);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.festival-updates-form { font-family: Arial, sans-serif; }
.festival-updates-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.festival-updates-fields label:first-child { grid-column: 1 / -1; }
.festival-updates-fields span { display: block; margin-bottom: 0.35rem; font-weight: 700; }
.festival-updates-fields input {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #a8b7b0;
  border-radius: 0.2rem;
  background: #fff;
  font: inherit;
}
.festival-updates-fields input:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.festival-updates-form button {
  margin-top: 1rem;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: 0.2rem;
  color: #fff;
  background: var(--forest);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.festival-updates-form button:hover { background: var(--forest-deep); }
.festival-updates-note { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.9rem; }
.festival-updates-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.site-footer { padding: 2rem 1rem; color: #dce7e2; background: #19352f; text-align: center; }
.site-footer a { color: #fff; }

.not-found { min-height: 50vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 60rem) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .header-inner { min-height: 4.75rem; }
  .brand img { width: min(20rem, 70vw); }
}

@media (max-width: 44rem) {
  body { font-size: 1rem; }
  .home .kt-has-2-columns { grid-template-columns: 1fr; gap: 2.5rem; }
  .home .kb-row-layout-id8_7e2e22-78 { padding: 1rem; }
  .entry-content table { display: block; overflow-x: auto; }
  .festival-updates-inner, .festival-updates-fields { grid-template-columns: 1fr; }
  .festival-updates-fields label:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
