/**
 * AllinBand — Base
 * Fonts are served from the project: the page calls no third parties.
 */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../assets/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Host Grotesk";
  src: url("../assets/fonts/host-grotesk-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

/* Height of the vertical section joints; the curve itself is --seam-top and --seam-bottom */
:root {
  --seam-v: 96px;
}

@media (max-width: 47.99rem) {
  :root {
    --seam-v: 64px;
  }
}

/* Percent based: respects the font size chosen in the browser */
html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--gap-4));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--moss) var(--forest-900);
}

/* Set by the inline script in the head until the load event has passed */
html.is-loading {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--paper);
  background-color: var(--forest-900);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--amber);
  color: var(--forest-800);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

strong {
  font-weight: 600;
}

/* Visible over photos and over the forest ground: double ring */
:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--forest-950);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: var(--gap-2);
  left: var(--gap-2);
  z-index: 60;
  padding: var(--gap-3) var(--gap-4);
  font-weight: 600;
  color: var(--forest-800);
  background-color: var(--paper);
  border-radius: var(--radius-pill);
  transform: translateY(-200%);
  clip-path: inset(50%);
}

.skip-link:focus {
  transform: none;
  clip-path: none;
}

/* Mist: the project's own surface, only over photos */
.mist {
  background-color: var(--mist);
  -webkit-backdrop-filter: blur(var(--mist-blur));
  backdrop-filter: blur(var(--mist-blur));
}

/* Buttons: one solid paper pill */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.8125rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.2;
  color: var(--forest-800);
  text-decoration: none;
  background-color: var(--paper);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.btn:hover {
  background-color: var(--paper-soft);
}

.btn:active {
  transform: scale(0.97);
}

/* Disclosure ticker. Static text that wraps by default; js/main.js adds the
   aria-hidden copies and `is-moving` only when motion is allowed */
.ticker {
  padding: 0.625rem var(--gutter);
  font-size: var(--text-sm);
  line-height: 1.4;
  background-color: var(--mist-strong);
  -webkit-backdrop-filter: blur(var(--mist-blur));
  backdrop-filter: blur(var(--mist-blur));
}

.ticker.is-moving {
  display: flex;
  align-items: center;
  height: 2.75rem;
  padding: 0;
  overflow: hidden;
}

.ticker.is-moving:focus-visible {
  outline-offset: -3px;
  box-shadow: none;
}

.ticker.is-moving .ticker__track {
  display: flex;
  flex: none;
  width: max-content;
  animation: ticker-loop 72s linear infinite;
}

.ticker.is-moving .ticker__track > * {
  flex: none;
  padding-inline-start: 1.75rem;
  white-space: nowrap;
}

.ticker.is-moving .ticker__track > *::after {
  content: "·" / "";
  margin-inline-start: 1.75rem;
}

.ticker.is-moving:hover .ticker__track,
.ticker.is-moving:focus .ticker__track,
.ticker.is-away .ticker__track {
  animation-play-state: paused;
}

/* Eight equal copies: moving by half lands on an identical frame */
@keyframes ticker-loop {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 47.99rem) {
  .ticker.is-moving {
    height: 2.5rem;
  }
}

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

/* Section joints: a short fade into the forest ground on the eased --seam-*
   stops, never a visible line. Each section sets --seam-z and, where its
   joint needs more room, --seam-h (L30, L32) */
.seam {
  position: absolute;
  left: 0;
  right: 0;
  z-index: var(--seam-z, 0);
  height: var(--seam-h, 96px);
  pointer-events: none;
}

.seam--top {
  top: 0;
  background-image: var(--seam-top);
}

.seam--bottom {
  bottom: 0;
  background-image: var(--seam-bottom);
}

@media (max-width: 47.99rem) {
  .seam {
    height: 64px;
  }
}
