/* Brand fonts, self-hosted (SIL Open Font License, from Google Fonts) */
@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/roboto-slab-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
}

/* Brand colours, taken from the original careercheck.co.uk theme */
:root {
  --blue: #1e73be;
  --blue-dark: #00529d;
  --red: #bb090b;
  --text: #212121;
  --muted: #5f6368;
  --rule: #e3e6ea;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --footer: #26272d;
  --footer-text: #b9bbc2;

  --font-head: "Roboto Slab", Verdana, Geneva, sans-serif;
  --font-body: Montserrat, Arial, Helvetica, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
}

::selection {
  background: var(--blue);
  color: #fff;
}

.topbar {
  height: 6px;
  background: var(--blue);
}

.notice {
  flex: 1;
  width: calc(100% - 2rem);
  max-width: 44rem;
  margin: clamp(2rem, 8vh, 5rem) auto;
  padding: clamp(2rem, 6vw, 3.5rem);
  background: var(--bg);
  border-top: 4px solid var(--blue);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.logo {
  display: block;
  width: 171px;
  height: auto;
  margin: 0 0 2.5rem;
}

h1 {
  margin: 0 0 1.75rem;
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin-top: 1.25rem;
  background: var(--red);
}

.message p {
  margin: 0 0 1.25rem;
}

.signoff {
  margin: 2rem 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--blue);
}

.legal {
  padding: 1.75rem 1rem 2rem;
  background: var(--footer);
  color: var(--footer-text);
  font-size: 0.8125rem;
  line-height: 1.6;
  text-align: center;
}

.legal p {
  margin: 0;
}

@media (max-width: 480px) {
  .notice {
    width: 100%;
    margin: 0;
    border-top: 0;
    box-shadow: none;
  }

  .logo {
    width: 140px;
    margin-bottom: 2rem;
  }
}
