
@font-face {
  font-family: 'PPAgrandir';
  src: url('/fonts/PPAgrandir-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PPAgrandir';
  src: url('/fonts/PPAgrandir-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PPAgrandir';
  src: url('/fonts/PPAgrandir-Italic.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

:root {
  --color-midnight: #1d2d53;
  --color-cobalt: #234181;
  --color-regent: #265b8c;
  --color-teal: #23729d;
  --color-ice: #f1f1ff;
  --color-lilac: #e8e8f9;
  --color-yellow: #fe0;
  --color-horizon: #69a;
  --color-warning-bg: #fffca9;
  --color-success-bg: #228822;
  font-size: 15px;
}

* {
  box-sizing: border-box;
}

body, button {
  font-family: 'PPAgrandir', sans-serif;
}
html,body {
  height:100%;
}
body {
  background-color: var(--color-midnight);
  color: white;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
  min-width: 340px;
  display:flex;
  flex-direction:column;
}
footer, header, section {
  width: 100%;
}
footer {
  background-color: var(--color-ice);
  color: black;
  flex:1;
}

.container {
  width:100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.container > :last-child {
  margin-bottom: 0;
}
.container > :first-child {
  margin-top: 0;
}

h1, h2, h3 {
  font-weight: bold;
  margin: 2rem 0 1rem 0;
}
h1 {
  font-size:1.5rem;
}
h2 {
  font-size: 1.3rem;
}
h3 {
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem 0;
}

p {
  margin:1.25rem 0;
}

ul {
  padding:0;
}

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

input, textarea {
  font-family: 'PPAgrandir', sans-serif;
  font-size: 1rem;
  width: 100%;
  padding: 0.7rem;
  border-radius: 6px;
  border: none;
}

footer {
  font-size: 14px;
}

a {
  color:var(--color-teal);
  text-decoration:none;
}
a.dark {
  color:var(--color-horizon);
  font-weight:bold;
  text-decoration:none;
}
a.light {
  color:white;
  font-weight:bold;
}

a:hover {
  text-decoration:underline;
}

.bullet-tick {
  list-style: none;
  padding-left: 1.5rem;
}
.bullet-arrow {
  list-style: none;
  padding-left: 2rem;
}
.bullet-tick li, .bullet-arrow li  {
  position: relative;
  margin-bottom:0.25rem;
}
.bullet-tick li::before, .bullet-arrow li::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.3rem;
  width: 1rem;
  height: 1rem;
  background-image: url('/img/tick.svg');
  background-size: contain;
  background-repeat: no-repeat;
}
.bullet-arrow li::before {
  left: -2rem;
  background-image: url('/img/arrow-r.svg');
}

.bullet-tick-dark li::before {
  filter: invert(0%) brightness(0%);
}

.content-box {
  border-radius:10px;
  padding:0.5rem 2rem;
}
.content-box > h2 {
  margin-top:1rem
}
.content-box-info {
  background-color:var(--color-teal);
  color:white;
}
.content-box-warning {
  background-color:var(--color-warning-bg);
  color:black;
}
.content-box > h2 > img {
  height:1.5rem;
  float:left;
  margin-right:0.5rem;
}
.content-box-info > h2 > img {
  filter: invert(1);
}
.content-box-success {
  background-color:var(--color-success-bg);
  color:white;
}

button, a.button {
  position: relative;
  overflow: hidden;
  background-color: var(--color-teal);
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
  z-index: 0;
  border-radius: 6px;
  text-decoration:none;
}

button {
  text-align:center;
}

button::before, a.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: inherit;
  z-index: -1;
}

button:hover::before, a.button:hover::before {
  filter: brightness(90%);
}

button.light, a.button.light {
  background:var(--color-ice);
  color:black;
  font-weight:normal;
}

.full {
  width:100%
}

.flex-row {
  display:flex;
  align-items:center;
  gap:0.5em;
  line-height:1em;
}
.flex-center {
  justify-content:center;
}
.flex-spread {
  justify-content:space-between;
}

.input-invalid {
  background-color:var(--color-warning-bg);
}
.input-invalid-message {
  color:var(--color-yellow);
  font-size: 0.8rem;
  font-weight:bold;
  margin:0;
  margin-bottom:0.5em;
}
.stack {
  display:grid;
  grid-template-columns: 1fr;
  gap:0.5em;
}

.centre-x {
  margin:0 auto;
}