@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  --paper: #f8f3e9;
  --ink: #251e19;
  --muted: #64554b;
  --accent: #a73628;
  --accent-hover: #82271d;
  --on-accent: #fffaf3;
  --rule: #dccfbf;
  --panel: #fcf8f0;
  --highlight: #f1e4d5;
  --night: #27201c;
  --light-muted: #ddcfc1;
  --night-rule: #746257;
  --night-hover: #3b3029;
  --night-focus: #f5ba9d;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body, h1, h2, h3, p, dl, dd {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.text-link {
  color: var(--accent);
  text-underline-offset: .18em;
}

.text-link:hover {
  color: var(--accent-hover);
}

img {
  display: block;
  width: 100%;
}

.container {
  width: min(100% - 2.5rem, 75rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1;
  inset: 0 auto auto 1rem;
  padding: .75rem 1rem;
  background: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus {
  top: .75rem;
  transform: none;
}

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.header-inner {
  min-height: 4.625rem;
}

.wordmark {
  font: 800 2.125rem / 1 "Bricolage Grotesque", Inter, sans-serif;
  letter-spacing: -.07em;
  text-decoration: none;
}

.wordmark span, .hero h1 span, .youth-meeting dt {
  color: var(--accent);
}

.site-header nav {
  display: flex;
  gap: clamp(.75rem, 3vw, 2.5rem);
  font-size: .9rem;
  font-weight: 600;
}

.site-header nav a, .site-footer a {
  padding-block: .65rem;
  text-decoration: none;
  text-underline-offset: .3em;
}

.site-header nav a:hover, .site-footer a:hover {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 5rem);
  padding-block: clamp(3rem, 7vw, 6.25rem);
}

.hero h1 {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(3.8rem, 8.4vw, 7.75rem);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.074em;
}

.hero-copy {
  padding-inline-start: clamp(1.5rem, 4vw, 3.25rem);
  border-inline-start: 1px solid var(--rule);
}

.slogan {
  margin-bottom: 1.625rem;
  font-size: clamp(1.75rem, 3.5vw, 3.3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.055em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  padding: .95rem 1.125rem;
  border-radius: .35rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  font-size: .9375rem;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
}

.section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  border-top: 1px solid var(--rule);
}

.section, .social {
  scroll-margin-top: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.063em;
}

.about, .meeting-grid {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(1.25rem, 4vw, 3rem);
}

.about-copy {
  max-width: 43rem;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.65;
}

.about-copy p + p {
  margin-top: .9em;
}

.meeting-grid {
  margin-top: clamp(1.375rem, 3vw, 2rem);
}

.meeting-place {
  padding: clamp(1.125rem, 3vw, 1.75rem);
  border: 1px solid var(--rule);
  border-radius: .45rem;
  background: var(--panel);
}

.meeting-place address {
  margin-top: .65rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
}

.meeting-place p, .meeting-note {
  margin-top: .85rem;
  color: var(--muted);
  line-height: 1.55;
}

.schedule {
  margin-top: .75rem;
  border-top: 1px solid var(--rule);
}

.schedule > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .3rem 1rem;
  padding: .85rem .75rem;
  border-bottom: 1px solid var(--rule);
  line-height: 1.35;
}

.schedule dt {
  font-weight: 650;
}

.schedule dd {
  color: var(--muted);
  font-size: .9rem;
}

.schedule time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.youth-meeting {
  background: var(--highlight);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.875rem);
  margin-top: clamp(1.375rem, 3vw, 2rem);
}

.project {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: .45rem;
  background: var(--panel);
  text-decoration: none;
}

.project-art {
  overflow: hidden;
  aspect-ratio: 2.35 / 1;
}

.project-art img {
  height: 100%;
  object-fit: cover;
}

.project-art--camp {
  background: #292c29;
}

.project-art--camp img {
  object-fit: contain;
}

.project-art--light {
  background: #17243e;
}

.project-copy {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: clamp(1rem, 2.25vw, 1.5rem);
}

.project h3 {
  font-size: clamp(1.25rem, 2.15vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -.04em;
}

.project p {
  margin-top: .45rem;
  color: var(--muted);
  line-height: 1.45;
}

.project-arrow {
  display: grid;
  flex: 0 0 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.125rem;
}

.project:hover .project-arrow {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.social, .site-footer {
  background: var(--night);
  color: var(--paper);
}

.social a:focus-visible, .site-footer a:focus-visible {
  outline-color: var(--night-focus);
}

.social-inner {
  padding-block: clamp(2.75rem, 6vw, 5rem);
}

.social p {
  margin-top: .8rem;
  color: var(--light-muted);
  line-height: 1.55;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 2.5rem;
}

.contact h2 {
  letter-spacing: -.02em;
}

.contact p {
  max-width: 36rem;
}

.contact-button {
  flex-shrink: 0;
  background: var(--paper);
  color: var(--ink);
}

.contact-button:hover {
  background: var(--light-muted);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .875rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.social-links a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  min-height: 5.5rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--night-rule);
  border-radius: .35rem;
  text-decoration: none;
}

.social-links a:hover {
  border-color: var(--light-muted);
  background: var(--night-hover);
}

.social-links small {
  display: block;
  margin-top: .3rem;
  color: var(--light-muted);
  font-size: .825rem;
  overflow-wrap: anywhere;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: .55rem;
  border-radius: .65rem;
  background: var(--paper);
}

.location {
  margin-top: 2.5rem;
}

.location-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 1rem;
  margin-bottom: 1rem;
}

.location-header a {
  color: var(--light-muted);
  text-underline-offset: .2em;
}

.location-map {
  display: block;
  width: 100%;
  height: clamp(17rem, 42vw, 25rem);
  border: 1px solid var(--night-rule);
  border-radius: .45rem;
  background: var(--panel);
}

.footer-inner {
  min-height: 4.75rem;
  border-top: 1px solid var(--night-rule);
  color: var(--light-muted);
  font-size: .8125rem;
}

@keyframes arrive {
  from {
    opacity: .85;
    transform: translateY(var(--arrival-offset, .85rem));
  }
}

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

  .hero h1, .hero-copy {
    animation: arrive 520ms cubic-bezier(.2, .75, .3, 1) backwards;
  }

  .hero-copy {
    animation-delay: 100ms;
  }

  .button, .project-arrow, .social-links a {
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  }

  .button > [aria-hidden], .social-links a > [aria-hidden] {
    transition: translate 180ms ease;
  }

  .button:is(:hover, :focus-visible) > [aria-hidden],
  .social-links a:is(:hover, :focus-visible) > [aria-hidden] {
    translate: .16rem -.16rem;
  }

  .project-art img {
    transition: scale 280ms ease;
  }

  .project:is(:hover, :focus-visible) .project-art img {
    scale: 1.035;
  }

  .scroll-arrived {
    --arrival-offset: 1.5rem;
    animation: arrive 600ms cubic-bezier(.2, .75, .3, 1);
  }
}

@media (max-width: 45rem) {
  .header-inner {
    min-height: 3.75rem;
  }

  .site-header nav {
    font-size: .8rem;
  }

  .hero, .about, .meeting-grid, .project-grid, .social-links {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(3.65rem, 14vw, 6.25rem);
  }

  .hero-copy {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .contact {
    flex-wrap: wrap;
  }
}

@media (max-width: 22rem) {
  .hero h1 {
    font-size: 3.1rem;
  }

  .button {
    font-size: .875rem;
  }

  .site-header nav {
    font-size: .75rem;
  }
}
