@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/eb-garamond.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/eb-garamond-italic.woff2") format("woff2"); }

/* Palette taken from the mandeng logo files */
:root {
  color-scheme: light;
  --paper: #f5f8f8;
  --ink: #111221;
  --muted: #56606b;
  --accent: #007980;
  --accent-deep: #006469;
  --rule: #d5e3e4;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #111221;
    --ink: #edeef5;
    --muted: #a3a9ba;
    --accent: #2fd8d0;
    --accent-deep: #2fd8d0;
    --rule: #262a3d;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.1875rem/1.6 "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  padding-inline: 1.25rem;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 36rem; margin-inline: auto; padding-block: 4rem 3rem; display: flex; flex-direction: column; gap: 2.5rem; }

/* Logo swaps with the colour scheme via <picture> */
.logo img { display: block; width: 100%; max-width: 20rem; height: auto; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand img { width: 1.9rem; height: auto; }
.brand span { font-size: 1.35rem; letter-spacing: 0.01em; }

.label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0;
}

h1 { font-weight: 500; font-size: 2.4rem; line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-weight: 500; font-size: 1.35rem; margin: 2.2rem 0 0.4rem; text-wrap: balance; }
p, ul { margin: 0 0 1rem; max-width: 65ch; }
ul { padding-left: 1.2rem; }
li { margin-bottom: 0.55rem; }
li::marker { color: var(--accent); }
strong { font-weight: 600; }

.lede { font-size: 1.35rem; font-style: italic; color: var(--muted); margin: 0; }
.doc header { display: flex; flex-direction: column; gap: 0.6rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }

footer { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: 1rem; color: var(--muted); }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

@media (max-width: 30rem) {
  body { font-size: 1.125rem; }
  .wrap { padding-block: 2.5rem 2rem; gap: 2rem; }
  h1 { font-size: 2rem; }
}
code { font-family: inherit; font-size: 1em; background: none; padding: 0; color: var(--accent-deep); }
.doc header { padding-bottom: 0; border-bottom: 0; }

article h1 { margin-bottom: 1.5rem; }
