/* Self-hosted Bebas Neue (SIL OFL) - no third-party font host, no absolute /sites/... paths */
@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/bebas-neue-latin-400-normal.woff2") format("woff2"),
       url("fonts/bebas-neue-latin-400-normal.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --maroon: #5a0026;
  --footer: #292929;
  --link-fr: #fff;
  --link-en: #bababa;
}

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

html {
  background: var(--maroon);
  -webkit-text-size-adjust: 100%;   /* stop iOS from inflating text */
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;               /* iOS Safari: ignores the collapsing URL bar */
  display: flex;
  flex-direction: column;
  background: var(--maroon);
  color: #fff;
  font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
}

/* ---------- content ---------- */
.splash {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1.25rem;
}

.logo {
  display: block;
  width: min(240px, 62vw);
  height: auto;
}

.choices {
  width: 100%;
  max-width: 300px;              /* same compact block as the original mobile design */
  display: flex;
  flex-direction: column;        /* phones: stacked */
  gap: .85rem;
}

.choice { display: flex; flex-direction: column; gap: .35rem; }

.choice a {
  display: block;
  color: var(--link-fr);
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: .18em;
  font-size: min(29px, 6.6vw);       /* fallback */
  white-space: nowrap;               /* never break a link onto 2 lines */
}

/* Size the text from the width of the .choices box so the longest line always fits it */
.choices { container-type: inline-size; }
@supports (font-size: 1cqw) {
  .choice a { font-size: min(29px, 9.4cqw); }
}
.choice a.en { color: var(--link-en); }

/* Bebas Neue's » glyph is tiny, so it is scaled up to the cap height of the text,
   then squeezed to half its width (scaleX) so it is not too bold. width = half the glyph advance. */
.arrow {
  display: inline-block;
  font-size: 2.7em;
  line-height: 0;
  vertical-align: -.2em;
  letter-spacing: 0;
  white-space: nowrap;
  width: .17em;
  transform: scaleX(.5);
  transform-origin: 0 50%;
}
.choice a:hover, .choice a:focus-visible { color: #fff; }

.divider {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 2px solid #fff;
  border-radius: 2px;
}

/* ---------- footer ---------- */
.uottawa-footer {
  flex-shrink: 0;
  background: var(--footer);
  text-align: center;
  padding: 25px 30px calc(25px + env(safe-area-inset-bottom));
}
.uottawa-footer a { display: inline-block; line-height: 0; }
.uottawa-footer img {
  display: inline-block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

/* ---------- bolder look, like the original "Bebas Neue Bold" ---------- */
.choice a { font-weight: 700; }

/* ---------- desktop (> 1000px): link group | logo | link group ---------- */
@media (min-width: 1001px) {
  .splash {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: clamp(1.5rem, 3vw, 4rem);
    padding: 2rem 7.5vw;
  }
  .logo { grid-column: 2; grid-row: 1; width: clamp(240px, 18.7vw, 372px); }

  .choices { display: contents; }          /* let the two groups sit beside the logo */
  .divider { display: none; }

  .choice {
    width: fit-content;                     /* underline = width of the longest line */
    padding-bottom: .2em;
    border-bottom: 3px solid #fff;
    border-radius: 2px;
    gap: 0;
  }
  .choice:first-of-type { grid-column: 1; grid-row: 1; justify-self: start; }
  .choice:last-of-type  { grid-column: 3; grid-row: 1; justify-self: end; text-align: right; }

  .choice a {
    font-size: clamp(30px, 3.3vw, 64px);
    letter-spacing: .1em;
    white-space: nowrap;
  }
}
