/* Wisp website. Plain CSS; the app's Nunito font from this site; no external
   requests. */
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #fcebd5;
  --surface: #fffaf2;
  --ink: #3f2117;
  --muted: #6b4a3a;
  --line: #ecd2ae;
  --accent: #b5560a;
  --focus: #1a5fb4;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 2px solid var(--focus);
  border-radius: 6px;
  z-index: 1;
}

.skip:focus {
  top: 0.75rem;
}

header.site,
main,
footer.site {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

header.site a {
  font-weight: 800;
  font-size: 1.15rem;
  color: #5a2415;
  text-decoration: none;
  padding: 0.25rem 0;
}

header.site a[aria-current="page"] {
  color: #5a2415;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 1.5rem 0 0.5rem;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
  scroll-margin-top: 1rem;
}

p,
ul,
ol {
  margin: 0 0 0.9rem;
}

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

li {
  margin: 0 0 0.45rem;
}

.meta {
  color: var(--muted);
  margin: 0;
}

article > .meta + :not(.meta) {
  margin-top: 1.25rem;
}

.toc {
  margin: 1.25rem 0 1.5rem;
  padding: 0.75rem 1rem 0.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.toc h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.toc ol {
  columns: 2 14rem;
  column-gap: 2rem;
  margin: 0;
}

.toc li {
  break-inside: avoid;
  margin: 0;
  padding: 0 0 0.35rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

.documents li {
  margin-bottom: 0.75rem;
}

.documents .meta {
  display: block;
  font-size: 0.95rem;
}

footer.site {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 3rem;
  padding-bottom: 2rem;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

footer.site nav a {
  font-weight: 600;
  text-decoration: none;
}

footer.site nav a[aria-current="page"] {
  color: var(--ink);
}

footer.site p {
  margin: 0.6rem 0 0;
}

@media print {
  .skip,
  header.site,
  .toc,
  footer.site {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
