:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #252c29;
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

main {
  width: min(640px, calc(100% - 3rem));
  margin: 5rem auto;
}

.intro { margin-bottom: 2rem; }

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -.065em;
  line-height: 1.15;
}

.subtitle {
  margin: .6rem 0 0;
  color: #626b66;
  font-size: 1.125rem;
}

a { color: inherit; text-underline-offset: 4px; }
a:hover { color: #28664e; }
a:focus-visible { outline: 2px solid #28664e; outline-offset: 5px; }

.social-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.language-section > h2 { margin-bottom: 1.5rem; }
.language-section + .language-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #e4e8e5; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  max-width: 100%;
  text-decoration: none;
  padding-block: .25rem;
}

.social-link > span { min-width: 0; }
.social-link:hover .link-title { text-decoration: underline; }
.logo { width: 28px; height: 28px; flex: 0 0 28px; }
.youtube-logo { color: #d93431; }
.substack-logo { color: #df6b24; }
.link-title { display: block; font-weight: 600; font-size: .9375rem; }
.link-description { font-weight: 400; color: #626b66; }
.link-address { display: block; font-size: .875rem; color: #626b66; overflow-wrap: anywhere; }

.resources { margin-top: 2.25rem; }
h2 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.025em; }
.section-description { margin: .15rem 0 1.25rem; font-size: .9375rem; color: #626b66; }
.resource-list { margin: 0; padding: 0; list-style: none; }
.resource-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #edf0ed; }
.resource-list a { overflow-wrap: anywhere; }
.resource-type { flex-shrink: 0; font-size: .875rem; color: #626b66; }
.availability { margin: 1rem 0 0; color: #626b66; font-size: .9375rem; }
.kazakh-channel { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.kazakh-resources { margin-top: 2.25rem; }

.site-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e4e8e5;
  color: #626b66;
  font-size: .875rem;
}

.site-footer p { margin: 0; }

@media (max-width: 480px) {
  main { margin-block: 3rem; }
}
