/* banihealth.ca "we've moved" page. Self-hosted fonts only; the CSP is
   style-src 'self' / font-src 'self', so no inline styles or inlined
   (base64) fonts or images. */

@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/_moved/fonts/marcellus-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/_moved/fonts/figtree-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/_moved/fonts/figtree-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/_moved/fonts/figtree-latin-600-normal.woff2') format('woff2');
}

/* Tokens copied from apps/web/src/styles/tokens.css. */
:root {
  --javia-black: #121212;
  --javia-white: #ffffff;
  --javia-grey: #5c5c5c;
  /* Fills and decoration only (2.96:1 on white). */
  --javia-turquoise: #2ca6a4;
  /* Text and thin outlines: 5.3:1 on white, 4.81:1 on the tint. */
  --javia-turquoise-strong: #1b7775;
  --javia-turquoise-tint: #e8f6f6;
  --font-display: 'Marcellus', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step--1: clamp(0.89rem, 0.86rem + 0.14vw, 0.96rem);
  --step-0: clamp(1.0625rem, 1.03rem + 0.18vw, 1.125rem);
  --step-1: clamp(1.27rem, 1.2rem + 0.36vw, 1.5rem);
  --step-4: clamp(2.2rem, 1.82rem + 1.9vw, 3.55rem);
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--javia-white);
  color: var(--javia-black);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

.site-header,
.moved,
.site-footer {
  width: min(100% - 3rem, 40rem);
  margin-inline: auto;
}

.site-header {
  padding-block: var(--space-xl) var(--space-l);
}

.logo {
  display: block;
  width: auto;
  height: 3.5rem;
}

/* The tint panel carries the turquoise on this page. */
.moved {
  background: var(--javia-turquoise-tint);
  border-top: 4px solid var(--javia-turquoise);
  border-radius: var(--radius);
  padding: var(--space-l) var(--space-m);
}

@media (min-width: 40em) {
  .moved {
    padding: var(--space-xl);
  }
}

.moved > * {
  max-width: 72ch;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 var(--space-m);
}

h1 {
  font-size: var(--step-4);
}

h2 {
  font-size: var(--step-1);
  margin-bottom: var(--space-s);
}

p {
  margin: 0 0 var(--space-s);
}

.lead {
  font-size: var(--step-1);
  line-height: 1.45;
}

.countdown {
  margin-top: var(--space-m);
  font-weight: 500;
}

.countdown__seconds {
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--javia-turquoise-strong);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--javia-black);
  outline-offset: 2px;
}

/* Buttons copied from apps/web/src/styles/global.css (.btn block). */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-block: var(--space-m) var(--space-xl);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 2.75rem;
  padding: var(--space-2xs) var(--space-m);
  border-radius: var(--radius);
  border: 2px solid var(--javia-black);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--javia-black);
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.btn--primary {
  background: var(--javia-black);
  color: var(--javia-white);
}

.btn--secondary {
  background: transparent;
  color: var(--javia-black);
}

.btn--primary:hover {
  background: var(--javia-turquoise-strong);
  border-color: var(--javia-turquoise-strong);
  color: var(--javia-white);
}

.btn--secondary:hover {
  border-color: var(--javia-turquoise-strong);
  color: var(--javia-turquoise-strong);
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-xs);
}

.contact__list a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 2.75rem;
  font-weight: 500;
}

.glyph {
  flex: 0 0 auto;
  color: var(--javia-turquoise);
}

.site-footer {
  padding-block: var(--space-l) var(--space-xl);
  color: var(--javia-grey);
  font-size: var(--step--1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
