/* The legal pages: the teaser's type and colours on plain paper, set for
   reading long text rather than for show. */

@font-face {
  font-family: "Ultra";
  src: url("/fonts/ultra.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --turf: #17603f;
  --mown: #1a6845;
  --ink: #0d3524;
  --rule: #b9cdbf;
  --paper: #fff;
  --silk-yellow: #ffd000;
  --display: "Ultra", "Rockwell Extra Bold", "Rockwell", Georgia, serif;
  --text: "Archivo", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

:focus-visible {
  outline: 3px solid var(--silk-yellow);
  outline-offset: 3px;
}

.wrap {
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

a {
  color: var(--turf);
  text-underline-offset: 0.2em;
}

/* The masthead: the turf stripe, the name home, and the documents. */

.masthead {
  background: repeating-linear-gradient(90deg, var(--turf) 0 9rem, var(--mown) 9rem 18rem);
  color: #fff;
  padding-block: 1.25rem;
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
}

.masthead a {
  color: inherit;
}

.brand {
  font-family: var(--display);
  font-size: 1.5rem;
  text-decoration: none;
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.9375rem;
}

.masthead nav a {
  text-decoration-color: transparent;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  text-decoration-color: var(--silk-yellow);
  text-decoration-thickness: 3px;
}

/* The document. */

.doc {
  padding-block: 2rem 4rem;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
}

.meta {
  margin: 0.5rem 0 2rem;
  color: #3d5c4c;
  font-size: 0.9375rem;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 1.25rem;
  line-height: 1.3;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.0625rem;
}

p,
ul,
ol,
dl,
table {
  margin: 0 0 0.875rem;
}

ul,
ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.375rem;
}

.clause b:first-child {
  display: inline-block;
  min-width: 2.75rem;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 0 0.75rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.5rem 0.625rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

thead th {
  border-bottom: 2px solid var(--ink);
}

.colophon {
  border-top: 1px solid var(--rule);
  padding-block: 1.5rem 3rem;
  font-size: 0.875rem;
}

.colophon p {
  margin: 0 0 0.375rem;
}

@media print {
  .masthead,
  .colophon {
    display: none;
  }

  a {
    color: inherit;
  }
}
