@font-face {
  font-family: "Instrument Sans";
  src: url("https://gaiatonic.org/animal-groove/media/fonts/InstrumentSans.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("https://gaiatonic.org/animal-groove/media/fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f4eb;
  --ink: #21382a;
  --muted: #566458;
  --forest: #172c21;
  --lime: #d9ef9b;
  --line: #d9ddd0;
  --card: #fffdf6;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body, h1, h2, p, figure { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #4e7149; outline-offset: 4px; }

.wrap { width: min(1200px, calc(100% - 5rem)); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  background: var(--card);
  border-radius: .5rem;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header { border-bottom: 1px solid var(--line); }
.nav-row, .site-header nav, .brand {
  display: flex;
  align-items: center;
}
.nav-row { min-height: 4.25rem; justify-content: space-between; gap: 1rem; }
.brand {
  gap: .6rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.035em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
}
.brand-mark::before {
  content: "";
  display: block;
  width: .66rem;
  height: .95rem;
  border: 1.5px solid var(--lime);
  border-radius: .85rem 0 .85rem 0;
  transform: rotate(16deg);
}
.site-header nav { gap: clamp(.9rem, 3vw, 2rem); }
.site-header nav a {
  padding-block: .65rem;
  font-size: .94rem;
  text-decoration: none;
}
.site-header nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.site-header nav [aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .35em;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  margin-top: 1.75rem;
  isolation: isolate;
  border-radius: 1.35rem;
  overflow: hidden;
  color: var(--paper);
  background: var(--forest);
}
.hero :focus-visible { outline-color: var(--lime); }
.hero-copy {
  z-index: 1;
  align-self: center;
  padding: clamp(2rem, 4.8vw, 4.75rem);
  background: radial-gradient(ellipse at top left, #263e2d, transparent 75%);
}
.youtube {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.5rem;
  color: var(--lime);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.play {
  display: grid;
  width: 1.4rem;
  height: 1rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: .28rem;
}
.play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 1px;
  border-block: .2rem solid transparent;
  border-left: .32rem solid currentColor;
}
.hero h1 {
  font-size: clamp(3.9rem, 7.7vw, 7.5rem);
  font-weight: 650;
  line-height: .86;
  letter-spacing: -.075em;
}
.hero h1 em {
  display: block;
  margin-top: .055em;
  color: var(--lime);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.2em;
  font-weight: 400;
  letter-spacing: -.035em;
}
.intro {
  max-width: 29ch;
  margin-block: 1.75rem 1.65rem;
  color: #e1e9dc;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.56;
}
.jump {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 2.95rem;
  padding: .58rem 1rem .58rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 2rem;
  background: var(--lime);
  color: #1d301e;
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
}
.jump:hover { background: #eefac9; }
.jump span {
  display: grid;
  width: .86rem;
  height: 1rem;
  place-items: center;
}
.jump span::before, .jump span::after {
  grid-area: 1 / 1;
  content: "";
}
.jump span::before { width: 1.5px; height: .8rem; background: currentColor; }
.jump span::after {
  width: .45rem;
  height: .45rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(.18rem) rotate(45deg);
}

.hero-photo {
  position: relative;
  min-height: 100%;
  background: #344c32;
}
.hero-photo img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
}
.hero-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #14281dcb, #14281d1a 36%, transparent 58%);
  content: "";
  pointer-events: none;
}
.hero-photo figcaption {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
  padding: .55rem .75rem;
  background: #13261ded;
  border: 1px solid #e4f7cd33;
  border-radius: .55rem;
  color: #f3f6ea;
  font-size: .78rem;
  line-height: 1.45;
}
.hero-photo figcaption strong { display: block; font-size: .89rem; }
.hero-photo figcaption a { text-underline-offset: .17em; }

.directory { padding-block: clamp(2.2rem, 4.2vw, 3.7rem) 3.8rem; }
.directory-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.25rem;
}
.directory h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.04;
  font-weight: 650;
  letter-spacing: -.06em;
}
.channel-count { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.search { position: relative; width: min(100%, 17rem); }
.search input {
  width: 100%;
  min-height: 2.95rem;
  padding: .68rem 1rem .68rem 2.65rem;
  border: 1px solid #aeb9aa;
  border-radius: .65rem;
  background: var(--card);
  color: var(--ink);
  line-height: 1.3;
}
.search input::placeholder { color: var(--muted); }
.search::before {
  position: absolute;
  top: .9rem;
  left: 1rem;
  width: .75rem;
  height: .75rem;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.search::after {
  position: absolute;
  top: 1.58rem;
  left: 1.59rem;
  width: .42rem;
  height: 1.5px;
  background: var(--muted);
  transform: rotate(45deg);
  content: "";
  pointer-events: none;
}
.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-height: 5.35rem;
  gap: .65rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--card);
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease;
}
.channel-card:hover { border-color: #8da784; background: #eef2df; }
.channel-name {
  display: block;
  font-size: clamp(1rem, 1.6vw, 1.27rem);
  line-height: 1.36;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.channel-name:lang(ar), .channel-name:lang(hi), .channel-name:lang(bn),
.channel-name:lang(th), .channel-name:lang(ja), .channel-name:lang(ko),
.channel-name:lang(zh) { font-family: system-ui, sans-serif; }
.channel-label {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.4;
}
.channel-arrow {
  display: grid;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  place-items: center;
  background: #ecf0e3;
}
.channel-arrow::before, .channel-arrow::after {
  grid-area: 1 / 1;
  content: "";
}
.channel-arrow::before {
  width: .58rem;
  height: .58rem;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: translate(.02rem, -.02rem);
}
.channel-arrow::after {
  width: .82rem;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-45deg);
}
.channel-card:hover .channel-arrow { color: white; background: #31563c; }
.empty { padding-block: 1.3rem; color: var(--muted); }

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-block: 1.35rem 1.65rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.footer a { text-underline-offset: .22em; }

@media (max-width: 1000px) {
  .channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 740px) {
  .wrap { width: calc(100% - 2rem); }
  .hero { grid-template-columns: 1fr; margin-top: 1rem; }
  .hero-copy { padding: clamp(1.5rem, 6vw, 2.5rem); }
  .hero h1 em { display: inline; margin-top: 0; }
  .hero h1 { font-size: clamp(3rem, 9vw, 5rem); line-height: .98; }
  .youtube { margin-bottom: 1rem; }
  .intro { margin-block: 1rem 1.2rem; }
  .hero-photo { min-height: clamp(13rem, 54vw, 21rem); }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .directory-head { display: grid; }
  .channel-card { padding-inline: .65rem; }
  .channel-arrow { width: 1.5rem; height: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .channel-card { transition: none; }
}
