/* BLONDE CHAMOMILE — bch.vision
   Light straw palette taken from the hero photo: dry grass, earth, the red cap. Light and dark scheme.
   All text/background pairs below pass WCAG AA (most pass AAA). */

:root {
  color-scheme: light;
  --bg: #fcf9f3;
  --surface: #ffffff;
  --text: #3d332b;
  --muted: #6f604f;
  --accent: #a8432c;
  --on-accent: #ffffff;
  --line: #ebe2d3;
  --shadow: 0 1px 2px rgb(42 33 26 / 0.08), 0 4px 16px rgb(42 33 26 / 0.08);
  --radius: 10px;
  --wrap: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dark is opt-in through the header switch (js/theme.js). A dim warm brown, not black. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #38302a;
  --surface: #433a33;
  --text: #f6efe5;
  --muted: #d6c9b8;
  --accent: #f4ad91;
  --on-accent: #38302a;
  --line: #574c42;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.25), 0 4px 16px rgb(0 0 0 / 0.18);
}

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

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

[hidden] { display: none !important; }

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

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.2; margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
  vertical-align: -0.25em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---- Header ---------------------------------------------------------- */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding-block: 0.25rem;
}


.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(0.9rem, 0.4rem + 2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav a:hover { color: var(--accent); }

/* ---- Hero ------------------------------------------------------------ */

/* The logo and name are burned into the left third of the photo.
   The image is shown whole — never cropped — so they stay visible. */
.hero {
  max-width: 100rem;
  margin: 0 auto;
}
.hero img { width: 100%; height: auto; }

/* ---- Sections -------------------------------------------------------- */

.section { padding-block: 3rem; }
.section + .section { border-top: 1px solid var(--line); }

.about { text-align: center; }

.title {
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead {
  max-width: 38rem;
  margin: 1.25rem auto 0;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 300;
}

.lead-now { max-width: 38rem; margin: 1.25rem auto 0; color: var(--muted); font-size: 1rem; }

.tag { font-weight: 600; }

.section-title {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.6rem;
  background: var(--accent);
}

.group + .group { margin-top: 3rem; }

/* ---- Video cards ----------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.featured { max-width: 56rem; }

.video {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.video__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--line);
}
.video__media img { width: 100%; height: 100%; object-fit: cover; }

.video__play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: -1.75rem 0 0 -1.75rem;
  background: rgb(27 23 19 / 0.72);
  border: 2px solid rgb(255 255 255 / 0.85);
  border-radius: 50%;
  color: #fff;
}
.video__play .icon { width: 1.75rem; height: 1.75rem; }

.video__body { display: block; padding: 0.85rem 1rem 1rem; }

.video__title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.video__meta {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.featured .video__title { font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem); }
.featured .video__play { width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; }
.featured .video__play .icon { width: 2.25rem; height: 2.25rem; }

.video:hover .video__title { color: var(--accent); }
.video:hover .video__play { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

@media (prefers-reduced-motion: no-preference) {
  .video { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .video:hover { transform: translateY(-2px); }
}

/* The loaded player replaces the card. */
.player {
  overflow: hidden;
  background: #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.player iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* ---- Contact --------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.btn,
.reveal {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.975rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn .icon,
.reveal .icon { color: var(--accent); }
.btn:hover,
.reveal:hover { border-color: var(--accent); }

/* Revealed address: users must be able to select and copy it. */
.reveal { user-select: all; overflow-wrap: anywhere; }

.elsewhere {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.elsewhere a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.elsewhere a:hover { color: var(--accent); }

/* The contact block is centred, in line with the footer below it. */
#contact { text-align: center; }
#contact .section-title::after { margin-inline: auto; }
#contact .actions,
#contact .elsewhere { justify-content: center; }

/* ---- Footer ---------------------------------------------------------- */

.site-footer {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}
.site-footer p { margin: 0.25rem 0; }
.footer-logo { width: 160px; margin: 0 auto 1rem; }
.site-footer .download { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; }

/* ---- 404 ------------------------------------------------------------- */

.notfound { padding-block: 5rem; text-align: center; }
.notfound p { margin: 1rem 0 2rem; }
.notfound .footer-logo { margin-bottom: 2rem; }

/* ---- Theme switch and themed logo ---------------------------------- */

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle:hover { color: var(--accent); }

.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
