/* The Sypher footer, on every page (markup: footer.html, put in by deploy/build-dist.mjs; footer.js runs the
   countdown). Self-contained: everything is scoped to .sy-footer. Fonts are the site's own: Schibsted Grotesk 800,
   Literata (and its italic), Azeret Mono 700. Design handoff and the master art: brand/footer/. */

.sy-footer {
  --sy-blue: #1D45A3;
  --sy-paper: #EEE7DA;
  --sy-accent: #9DB4F0;
  --sy-mono: 'Azeret Mono', monospace;
  --sy-serif: Literata, Georgia, serif;
  --sy-grot: 'Schibsted Grotesk', Arial, sans-serif;
  --sy-gutter: clamp(16px, 4vw, 48px);

  width: 100%;
  overflow: hidden;
  color: var(--sy-paper);
  font-family: var(--sy-serif);
  background-color: var(--sy-blue);
  background-size: 320px 320px;
  background-repeat: repeat;
  margin: 0;
  border: 0;
  padding: 0;
  line-height: normal;
}
/* The paper grain loads once the footer is close to the screen (footer.js adds .is-near), so pages that are never
   scrolled to the bottom don't download it. */
.sy-footer.is-near { background-image: url(ink-grain.webp); }

.sy-footer *, .sy-footer *::before, .sy-footer *::after { box-sizing: border-box; }
/* The pages' own heading and paragraph styles stop at the footer. */
.sy-footer :where(h2, p) { border: 0; padding: 0; background: none; color: inherit; text-transform: none; }

.sy-footer a { color: var(--sy-paper); text-decoration: none; }
.sy-footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.sy-footer a:focus-visible { outline: 2px solid var(--sy-paper); outline-offset: 2px; }

.sy-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.sy-footer li a { display: inline-flex; align-items: center; min-height: 30px; }

.sy-footer__inner {
  max-width: 1344px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--sy-gutter) 0;
}

.sy-footer__top { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }

/* Brand */
.sy-footer__brand { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sy-footer .sy-footer__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  align-self: flex-start;
  font-family: var(--sy-grot);
  font-weight: 800;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -2.3px;
  text-decoration: none;
}
.sy-footer__cursor { display: block; width: 6px; height: 38px; background: var(--sy-accent); }
.sy-footer__tagline { margin: 0; max-width: 260px; font-style: italic; font-size: 17px; line-height: 1.45; }
.sy-footer__contact { margin-top: 4px; }
.sy-footer__contact a { gap: 12px; }

/* Columns */
.sy-footer__cols {
  flex: 999 1 640px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 40px;
}
.sy-footer__col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sy-footer__label {
  margin: 0;
  font-family: var(--sy-mono);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sy-footer__label::after { content: ""; display: block; width: 28px; height: 1px; margin-top: 14px; background: var(--sy-paper); }

/* Countdown */
.sy-footer__note { margin: 2px 0; font-style: italic; font-size: 15px; line-height: 1.45; }
.sy-footer__timer { display: flex; align-items: stretch; max-width: 240px; }
.sy-footer__clock {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sy-paper);
  border-right: 0;
  font-family: var(--sy-mono);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sy-footer .sy-footer__go {
  flex: 0 0 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sy-paper);
  color: var(--sy-blue);
}
.sy-footer .sy-footer__go:hover { background: #FFFFFF; color: var(--sy-blue); text-decoration: none; }

/* Legal */
.sy-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 56px;
  margin-top: clamp(40px, 5vw, 64px);
}
.sy-footer__legal p { flex: 1 1 420px; min-width: 0; max-width: 680px; margin: 0; font-style: italic; font-size: 13px; line-height: 1.55; text-wrap: pretty; }
.sy-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-style: italic; font-size: 13px; }
.sy-footer__meta a { display: inline-flex; align-items: center; min-height: 28px; }

/* Art: sky is transparent, so the grain shows through. The min-height crops the sides on phones. */
.sy-footer__art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2880 / 820;
  min-height: 240px;
  margin-top: clamp(4px, 1vw, 12px);
  object-fit: cover;
  object-position: 50% 100%;
}

@media (max-width: 640px) {
  .sy-footer li a, .sy-footer__meta a { min-height: 44px; }
  .sy-footer__clock { font-size: 16px; letter-spacing: 0.02em; }
}
