/* Bojicas Design System 0.3.0. Made by build.py from tokens.json and src/; do not edit by hand.
   Code under the MIT licence; fonts under the SIL Open Font License 1.1.
   https://github.com/bojicas/bojicas-design-system */

/* Fonts: served from your own site, so no visitor data goes to a font service. */

@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/space-grotesk-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/space-grotesk-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* Colours and sizes, for light and dark mode. */

:root {
  --bg: #FAFBFC;
  --card: #FFFFFF;
  --ink: #14233A;
  --muted: #4A5A70;
  --line: #DDE3EA;
  --blue: #226DBD;
  --orange: #E8740C;
  --paper: #FAFBFC;
  --focus: var(--blue);
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --size-label: 13px;
  --size-small: 14px;
  --size-body: 17px;
  --size-lead: 21px;
  --size-h2: 22px;
  --size-title: clamp(36px, 5vw, 48px);
  --size-display: clamp(42px, 6vw, 64px);
  --space-xs: 6px;
  --space-s: 12px;
  --space-m: 24px;
  --space-l: 40px;
  --space-xl: 72px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --radius-bar: 2px;
  --touch-min: 44px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1B2D;
    --card: #15243A;
    --ink: #E4ECF5;
    --muted: #9AAABD;
    --line: #2A3A52;
    --blue: #6AA6E8;
    --orange: #F28C28;
    --paper: #F2F4F7;
    --focus: var(--orange);
  }
}

/* Base: the page, text and links. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Running text: headings, paragraphs, lists and links inside an article. */
.prose h2 { margin: 44px 0 0; font-weight: 600; font-size: var(--size-h2); line-height: 1.3; }
.prose h3 { margin: 32px 0 0; font-weight: 600; font-size: 18px; line-height: 1.35; }
.prose > :first-child { margin-top: 26px; }
.prose p, .prose li, .prose dd { font-size: var(--size-body); line-height: 1.6; }
.prose p { margin: 14px 0 0; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 22px; }
.prose li + li { margin-top: var(--space-xs); }
.prose li::marker { color: var(--orange); }
.prose strong { font-weight: 600; }
.prose a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.prose a:hover { text-decoration-thickness: 2px; }
.prose code { font-family: var(--mono); font-size: 0.9em; }

/* Every link and button shows where the keyboard is. */
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Components. Each one works in light and dark mode and from 360 px to wide screens. */

/* Eyebrow: a small mono label with an orange bar, above or below a title. */
.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: var(--radius-bar);
  background: var(--orange);
  margin-bottom: 18px;
}
.eyebrow.bar-below::before { display: none; }
.eyebrow.bar-below::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: var(--radius-bar);
  background: var(--orange);
  margin: 14px auto 0;
}

/* Titles and the lead line under them. */
.display { margin: 0; font-weight: 600; font-size: var(--size-display); line-height: 1.02; letter-spacing: -0.02em; }
.title { margin: 32px 0 0; font-weight: 600; font-size: var(--size-title); line-height: 1.08; letter-spacing: -0.02em; }
.lead { margin: 18px 0 0; max-width: 36ch; font-size: var(--size-lead); line-height: 1.45; color: var(--muted); }
.role { margin: 12px 0 0; font-family: var(--mono); font-size: var(--size-small); color: var(--muted); }

/* Button: a blue pill with an arrow. → leads to one of your own sites, ↗ to a site of someone else. */
.buttons { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-s); }
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--touch-min);
  padding: 0 20px;
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-pill);
  color: var(--blue);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease;
}
.button:hover { background: var(--blue); color: var(--bg); }
.button:focus-visible { outline-offset: 3px; }
.button .arrow { display: inline-block; color: var(--orange); font-weight: 400; transition: color 120ms ease, transform 120ms ease; }
/* On hover the button fills with blue, where orange is too faint: the arrow takes the text colour and moves its way. */
.button:hover .arrow { color: inherit; transform: translate(2px, -2px); }
.button:hover .arrow-own { transform: translateX(3px); }

/* Card: a raised panel, for example one person on a family page. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--space-m); }
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-l) 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.card .about { margin: 18px 0 0; max-width: 30ch; font-size: 18px; line-height: 1.5; text-wrap: balance; flex: 1; }
.card .button { margin-top: var(--space-m); }

/* Avatar: a pen drawing in a circle, on its white paper in both modes. */
.avatar { width: 168px; height: 168px; border-radius: 50%; border: 1px solid var(--line); object-fit: cover; background: var(--paper); }

/* Back link: "← Name" at the top of a page. On hover only the name is underlined, not the arrow. */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--touch-min);
  font-family: var(--mono);
  font-size: var(--size-small);
  color: var(--blue);
  text-decoration: none;
}
.back-link .arrow { color: var(--orange); }
.back-link:hover .back-link-text { text-decoration: underline; text-underline-offset: 4px; }

/* Link to someone else's site, also in running text: the text is underlined, then a small orange ↗ without
   a line. The arrow is a plain character, so a line never breaks between the last word and the arrow. */
a.out { text-decoration-line: none; }
a.out .out-text { text-decoration-line: underline; text-decoration-thickness: inherit; }
/* The arrow is always the small mono one of a label, so it stays discreet next to larger text. */
a.out .arrow-out { position: relative; left: 0; top: 0; margin-right: 2px; color: var(--orange); font-family: var(--mono); font-size: var(--size-label); transition: left 120ms ease, top 120ms ease; }
/* The arrow sits close to the link, with its space after it, so it has room to move on hover without touching
   the next word. On hover it moves its way, out of the site, a little less than the arrow of a button. It moves by position,
   not by transform, so it stays a plain character that never wraps alone. */
a.out:hover .arrow-out { left: 1.5px; top: -1.5px; }
/* In a list of facts a value link is a flex box; there the text flows inline, so the arrow follows the last
   word when the text wraps. The padding keeps the link 44 px high. */
.facts dd > a.out, .facts dt > a.out, .prose dd > a.out, .prose dt > a.out { display: inline-block; padding-block: 8.5px; }

/* Tags: "#name" links, for example under the title of a post. The orange # is part of the link,
   but like the arrow of the back link it has no line under it: only the name is underlined. */
.tags { list-style: none; margin: var(--space-s) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-s); }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  font-family: var(--mono);
  font-size: var(--size-small);
  color: var(--blue);
  text-decoration: none;
}
.tag .tag-mark { color: var(--orange); margin-right: 2px; }
.tag .tag-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tag:hover .tag-name { text-decoration-thickness: 2px; }

/* Facts: label beside value on wide screens, above it on narrow ones (owner, contact, documents).
   A definition list in running text gets the same look, since Markdown cannot add a class. */
.facts, .prose dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  column-gap: 28px;
  margin: var(--space-s) 0 0;
}
.facts dt, .prose dt { grid-column: 1; font-family: var(--mono); font-size: var(--size-small); color: var(--muted); }
/* Each value is at least 44 px high, so a link that stands alone is easy to tap. */
.facts dd, .prose dd { grid-column: 2; margin: 0; padding-block: 8.5px; font-size: var(--size-body); line-height: 1.6; }
.facts dd > a, .facts dt > a, .prose dd > a, .prose dt > a { display: inline-flex; align-items: center; min-height: var(--touch-min); margin-block: -8.5px; color: var(--blue); }

/* Footer: copyright and place, then the legal links, with orange dots outside the links. */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 var(--space-s);
  padding: 16px 24px 24px;
  font-family: var(--mono);
  font-size: var(--size-label);
  color: var(--muted);
}
.footer-meta, .footer-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0 var(--space-s); margin: 0; padding: 0; list-style: none; }
.footer-meta span + span::before,
.footer-links li::before { content: "·"; content: "·" / ""; margin-right: var(--space-s); color: var(--orange); }
.footer-links a { display: inline-flex; align-items: center; min-height: var(--touch-min); color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer-links a:hover { text-decoration-thickness: 2px; }
.footer-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }

@media (max-width: 600px) {
  /* Narrow screens: the legal links get their own line, without a leading dot. */
  .footer { flex-direction: column; }
  .footer-links li:first-child::before { content: none; }
  .facts, .prose dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dt, .facts dd, .prose dt, .prose dd { grid-column: 1; }
  .facts dd + dt, .prose dd + dt { margin-top: var(--space-xs); }
}

@media (prefers-reduced-motion: reduce) {
  .button, .button .arrow { transition: none; }
  .button:hover .arrow, .button:hover .arrow-own { transform: none; }
  a.out .arrow-out { transition: none; }
  a.out:hover .arrow-out { left: 0; top: 0; }
}
