/* Bregma Capital - splash screen */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette, from BREGMA_Logo_Colors.pdf */
  --navy: #00264f;   /* Pantone 7463 */
  --blue: #1d6cb5;   /* Pantone 3506 */

  /* Derived */
  --paper: #f6f8fb;
  --ink-2: #3a4a66;

  --pad: clamp(1.5rem, 4vw, 3.5rem);
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  color-scheme: light only;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Everything is centred on one screen, sitting slightly above the middle. */
.splash {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(3.5rem, 12vh, 8rem);
  padding: var(--pad);
  padding-bottom: calc(var(--pad) + 6vh);
  text-align: center;
}

.logo {
  display: block;
  width: clamp(260px, 46vw, 640px);
  max-width: 100%;
  height: auto;
}

.contact h2 {
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  margin: 0 0 1rem;
}
.contact a {
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.15;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
  transition: text-decoration-color 150ms ease;
}
.contact a:hover {
  text-decoration-color: var(--navy);
}
.contact a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 6px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .contact a { transition: none; }
}
