/* wrapsheetapp.com: the app's Nordic look (apps/mobile/src/theme/themes.ts), Jost served from here so
   a visitor's browser asks no other site for anything */
@font-face { font-family: Jost; font-weight: 300; font-display: swap; src: url(fonts/Jost_300Light.ttf) format("truetype"); }
@font-face { font-family: Jost; font-weight: 400; font-display: swap; src: url(fonts/Jost_400Regular.ttf) format("truetype"); }
@font-face { font-family: Jost; font-weight: 500; font-display: swap; src: url(fonts/Jost_500Medium.ttf) format("truetype"); }

:root {
  --paper: #F5F4F0;
  --sheet: #FFFFFF;
  --rule: #EBEAE6;
  --ink: #1A1A1A;
  --muted: #67655F;
  --faint: #9A9790;
  --pen: #6F8269;
  --pen-soft: #EEF1EC;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 17px/1.6 Jost, system-ui, sans-serif;
  letter-spacing: 0.01em;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

header { border-bottom: 1px solid var(--rule); }
header .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 18px; }
.brand { font-weight: 500; font-size: 20px; letter-spacing: 0.04em; color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { font-weight: 400; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--pen); }

main { padding: 40px 0 56px; }

h1 { font-weight: 400; font-size: 34px; line-height: 1.2; letter-spacing: 0.01em; margin: 0 0 8px; }
h2 { font-weight: 500; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pen); margin: 40px 0 10px; }
h3 { font-weight: 500; font-size: 17px; margin: 24px 0 4px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
strong, b { font-weight: 500; }
a { color: var(--pen); text-underline-offset: 3px; }

.lede { font-size: 20px; color: var(--muted); margin-bottom: 28px; }
.dated { font-size: 14px; color: var(--faint); margin-bottom: 32px; }

.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 20px 22px; margin: 0 0 16px; }
.card > :last-child { margin-bottom: 0; }
.note { background: var(--pen-soft); border-radius: 6px; padding: 14px 18px; margin: 0 0 16px; }

.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 8px; }
.links a { display: block; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.links a span { display: block; font-size: 14px; color: var(--muted); }
.links a:hover { border-color: var(--pen); }

table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 500; }
.table { overflow-x: auto; }

footer { border-top: 1px solid var(--rule); font-size: 14px; color: var(--faint); }
footer .wrap { padding-top: 20px; padding-bottom: 32px; }
footer p { margin: 0 0 6px; }
footer a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  .lede { font-size: 18px; }
}
