/* The two house colours, written once. Sage is an accent for rules and
   backgrounds; it is not used for text unless the contrast check passes. */
:root {
  --navy: #00013a;
  --sage: #6b9e7a;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Variable.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--navy);
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

h1,
.brand {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
}

.band {
  background: var(--sage);
  color: var(--navy);
  padding: 0.75rem 1.5rem;
}

.brand {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

main,
footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

footer {
  border-top: 2px solid var(--sage);
  margin-top: 2rem;
  font-size: 1rem;
}

a {
  color: var(--navy);
  text-decoration: underline;
}

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

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: var(--navy);
  color: #ffffff;
  padding: 0.5rem 1rem;
}

.skip:focus {
  top: 0.5rem;
}

h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.25;
  margin-top: 2rem;
}

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2rem;
}

.band nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.band nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration-thickness: 3px;
}

.lead {
  font-size: 1.25rem;
}

.fact {
  border-left: 6px solid var(--sage);
  padding-left: 1rem;
  font-weight: 600;
}

dt {
  font-weight: 700;
  margin-top: 1rem;
}

dd {
  margin-left: 0;
}
