@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/montserrat.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --navy: #13254C;
  --blue: #137EAA;
  --teal: #14A5A1;
  --green: #53C998;
  --paper: #FFFFFF;
  --ink-muted: #4E5C74;
  --rule: #D5DEE6;
  --edge: clamp(20px, 5vw, 56px);
  --pulse-cycle: 3.4s;
}

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

html { background: var(--paper); -webkit-text-size-adjust: 100%; }

body {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--navy);
  /* The same soft green and blue wash the main site sits on. */
  background:
    radial-gradient(ellipse at 100% 0%, rgb(46 194 158 / .20), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgb(19 158 184 / .14), transparent 55%),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, p { margin: 0; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

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

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px) var(--edge);
}
.logo { width: auto; height: clamp(32px, 4vw, 42px); }

.languages {
  display: flex;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgb(255 255 255 / .7);
}
.languages button {
  min-width: 44px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-muted);
  background: none;
  font: 600 13px/1 var(--font-sans);
  letter-spacing: .06em;
  cursor: pointer;
}
.languages button[aria-pressed="true"] { color: var(--paper); background: var(--navy); }
.languages button:not([aria-pressed="true"]):hover { color: var(--navy); }

/* Message */
.stage {
  align-self: center;
  width: 100%;
  padding: clamp(16px, 4vh, 64px) var(--edge);
}

.status {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}
/* The green dot from the logo, kept alive. */
.status-dot {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  opacity: 0;
}

h1 {
  margin-block: clamp(16px, 2.5vw, 28px) clamp(20px, 3vw, 36px);
  font-size: clamp(46px, min(11.5vw, 14vh), 128px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
}
/* Two tones, like the wordmark: navy "Med", teal "umin". */
h1 .accent {
  display: block;
  width: fit-content;
  padding-bottom: .08em;
  color: var(--teal);
  background: linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  max-width: 58ch;
  color: var(--ink-muted);
  font-size: clamp(16px, 1.5vw, 19px);
}

/* Heartbeat line: the main site's loading trace, running edge to edge. */
.pulse { width: 100%; height: clamp(60px, 9vh, 90px); }
.pulse path {
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.pulse-track { stroke: var(--rule); stroke-width: 1.5; }
.pulse-beat { stroke-width: 2.5; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 16px var(--edge) clamp(20px, 3vw, 32px);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

@media (prefers-reduced-motion: no-preference) {
  /* Three lit segments travel one third of the path, so the loop is seamless. */
  .pulse-beat {
    stroke-dasharray: 7 26.3333;
    animation: pulse-travel var(--pulse-cycle) linear infinite;
  }
  .status-dot::after { animation: dot-ring var(--pulse-cycle) ease-out infinite; }

  .stage > * { animation: rise 700ms cubic-bezier(.2, .7, .2, 1) both; }
  .stage > :nth-child(2) { animation-delay: 80ms; }
  .stage > :nth-child(3) { animation-delay: 160ms; }
}

@keyframes pulse-travel {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -33.3333; }
}
@keyframes dot-ring {
  0% { opacity: .55; transform: scale(1); }
  60%, 100% { opacity: 0; transform: scale(3.2); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
