/* ==========================================================================
   Supported Employment Newfoundland and Labrador — temporary landing page
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary-blue: #02559a;
  --color-light-blue: #afd8ff;
  --color-gold: #ffb400;
  --color-navy: #1a2f67;
  --color-page-bg-top: #eaf4ff;
  --color-page-bg-bottom: #ffffff;
  --color-card-bg: #ffffff;
  --color-body-text: #1a2f67;
  --font-stack: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-page-bg-bottom);
  background-image: linear-gradient(
    180deg,
    var(--color-page-bg-top) 0%,
    var(--color-page-bg-bottom) 55%
  );
  font-family: var(--font-stack);
  font-weight: 500;
  color: var(--color-body-text);
  line-height: 1.5;
}

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

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  margin: 0 auto;
  padding: clamp(1rem, 3vh, 2.5rem) 1rem;
}

.card {
  width: 100%;
  max-width: 50rem;
  background: var(--color-card-bg);
  border-radius: 1.25rem;
  box-shadow: 0 1.25rem 3rem rgba(26, 47, 103, 0.12);
  padding: clamp(1.5rem, 4vh, 3.25rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
}

.logo {
  width: min(16rem, 70%);
  height: auto;
  margin: 0 auto clamp(0.85rem, 2vh, 1.5rem);
}

h1 {
  font-family: var(--font-stack);
  font-weight: 700;
  color: var(--color-primary-blue);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 clamp(0.6rem, 1.8vh, 0.75rem);
}

.accent-bar {
  width: 3.25rem;
  height: 0.3rem;
  margin: 0 auto clamp(0.75rem, 1.9vh, 1.25rem);
  background-color: var(--color-gold);
  border-radius: 0.2rem;
}

.lead {
  font-family: var(--font-stack);
  font-weight: 700;
  color: var(--color-navy);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.3;
  margin: 0 0 clamp(0.75rem, 1.9vh, 1.5rem);
}

.intro {
  max-width: 38rem;
  margin: 0 auto;
}

.intro p {
  font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
  margin: 0 0 clamp(0.6rem, 1.6vh, 0.85rem);
}

.intro p:last-child {
  margin-bottom: 0;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: clamp(1rem, 2.8vh, 2.25rem) 0;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background-color: var(--color-light-blue);
}

.divider span {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 0.75rem;
  border-radius: 50%;
  background-color: var(--color-gold);
}

.photo-wrap {
  margin: 0 auto;
  border-radius: 0.85rem;
  overflow: hidden;
  line-height: 0;
}

.photo-wrap img {
  width: 100%;
  height: auto;
}

.site-footer {
  text-align: center;
  padding: clamp(0.75rem, 1.9vh, 1.25rem) 1rem 0;
}

.site-footer p {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-navy);
}

@media (max-width: 30em) {
  .card {
    border-radius: 1rem;
  }

  .logo {
    width: min(12rem, 60%);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
