/* theme: mare (generated by tools/sitekit -- edit site.json, not this) */
@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f3f8f8;
  --surface: #e1edef;
  --ink: #0d2a36;
  --muted: #48636e;
  --rule: #cadde1;
  --accent: #9b2c1f;
  --on-accent: #ffffff;
  --font-display: "Young Serif", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: 0.005em;
  --display-leading: 1.1;
  --display-case: none;
  --body-size: 1.0625rem;
  --body-leading: 1.7;
  --ratio: 1.28;
  --radius: 8px;
  --mark-w: 0.52em;
  --mark-h: 0.52em;
  --mark-r: 50%;
}

/*
 * sitekit base stylesheet.
 *
 * Written only against the tokens in the generated theme block (colours,
 * two font stacks, a type ratio, a radius, a mark shape). Change the vibe in
 * site.json; change this file only to change every sitekit site at once.
 */

/* -- scale ---------------------------------------------------------------- */

:root {
  --step-0: var(--body-size);
  --step-1: calc(var(--step-0) * var(--ratio));
  --step-2: calc(var(--step-1) * var(--ratio));
  --step-3: calc(var(--step-2) * var(--ratio));
  --step-4: calc(var(--step-3) * var(--ratio));
  --step-5: calc(var(--step-4) * var(--ratio));
  --small: calc(var(--step-0) / var(--ratio));

  --space: 1.5rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 40rem;
  --wide: 64rem;
}

/* -- reset ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--body-leading);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }

::selection { background: var(--accent); color: var(--on-accent); }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* -- the mark: the one recurring ornament ---------------------------------- */

.brand::before,
.index__title::before,
.related__title::before {
  content: "";
  display: inline-block;
  flex: none;
  width: var(--mark-w);
  height: var(--mark-h);
  border-radius: var(--mark-r);
  background: var(--accent);
  margin-right: 0.55em;
  vertical-align: 0.08em;
}

/* -- header --------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-case);
  font-size: var(--step-1);
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
}

/* A drawn logo replaces the theme's plain mark beside the name. */
.brand--logo::before { content: none; }
.brand__logo {
  flex: none;
  width: 1.45em;
  height: 1.45em;
  margin-right: 0.45em;
  color: var(--accent);
}

.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
}

.menu__link {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--small);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.menu__link:hover { color: var(--ink); }
.menu__link[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.menu-toggle {
  font: inherit;
  font-size: var(--small);
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}

/* The toggle only exists once site.js has run; without JS the menu simply
   wraps under the brand. */
@media (max-width: 44rem) {
  .has-menu-toggle .menu { flex-basis: 100%; }
  .has-menu-toggle .menu-toggle[aria-expanded="false"] + .menu { display: none; }
  .has-menu-toggle .menu__list { flex-direction: column; gap: 0; }
  .has-menu-toggle .menu__link {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: var(--step-0);
  }
}
@media (min-width: 44.01rem) {
  .menu-toggle { display: none; }
}

/* -- main ----------------------------------------------------------------- */

.main {
  flex: 1;
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 8vw, 6rem);
}

.hero {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hero__title,
.article__title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  /* Floors, not the theme's raw values: a display face set tight reads well
     on one line and cramped once a long heading wraps. */
  letter-spacing: max(var(--display-tracking), -0.012em);
  line-height: max(var(--display-leading), 1.14);
  text-transform: var(--display-case);
  text-wrap: balance;
  margin: 0;
}

/* Headings get their own, wider box: held to the body measure, balance
   wrapping folds a large heading into a narrow four-line column. */
.hero__title { max-width: 56rem; }
.article__title { max-width: 50rem; }
.hero__lede { max-width: var(--measure); }

.hero__title { font-size: clamp(var(--step-3), 3vw + 1.4rem, var(--step-5)); }
.article__title { font-size: clamp(var(--step-3), 2.4vw + 1.2rem, var(--step-4)); }

.hero__lede {
  margin: 1.1rem 0 0;
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--muted);
  text-wrap: pretty;
}

/* Full-bleed band without leaving the centred column: the shadow paints the
   band sideways, the clip-path keeps it off the content above and below. */
.hero--deep {
  max-width: none;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
  margin-top: calc(-1 * clamp(2rem, 6vw, 4.5rem));
  padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 7vw, 5rem);
}
.hero--deep .hero__lede { color: var(--paper); opacity: 0.82; }

.article__header { margin-bottom: 2rem; }
.article__header > :not(.article__title) { max-width: var(--measure); }

.crumbs {
  font-size: var(--small);
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs__sep { margin: 0 0.4em; opacity: 0.6; }

/* -- prose: the extracted page body --------------------------------------- */

.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose figure,
.prose table { margin: 0 0 var(--space); }

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.2;
  text-wrap: balance;
  scroll-margin-top: 1.5rem;
}
.prose h2 { font-size: var(--step-2); margin: 2.6em 0 0.6em; }
.prose h3 { font-size: var(--step-1); margin: 2em 0 0.5em; }
.prose h4 { font-size: var(--step-0); margin: 1.8em 0 0.4em; }

.prose a,
.site-footer a,
.related a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.prose a:hover,
.site-footer a:hover,
.related a:hover { text-decoration-thickness: 2px; }

.prose ul,
.prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent); }

.prose strong, .prose b { font-weight: 700; }

.prose blockquote {
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}
.prose blockquote > :last-child { margin-bottom: 0; }

.prose img { display: block; border-radius: var(--radius); }
.prose figure img { margin: 0; }
.prose figcaption {
  margin-top: 0.6rem;
  font-size: var(--small);
  color: var(--muted);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* Tables scroll inside themselves rather than widening the page. */
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: var(--small);
}
.prose th,
.prose td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.prose th { background: var(--surface); font-weight: 700; }

/* A call-to-action link, for hand-written homepages. */
.button,
.prose a.button {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

/* -- home index and related pages ----------------------------------------- */

.index { margin-top: clamp(2.5rem, 6vw, 4.5rem); }

.index__title,
.related__title {
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  column-gap: 2.5rem;
}

.index__item {
  padding: 1rem 0 1.1rem;
  border-top: 1px solid var(--rule);
}

.index__link {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: var(--step-1);
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
}
.index__link:hover { color: var(--accent); }

.index__desc {
  margin: 0.4rem 0 0;
  font-size: var(--small);
  color: var(--muted);
}

.related {
  max-width: var(--measure);
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.related__list { margin: 0; padding-left: 1.2em; }
.related__item { margin-bottom: 0.45rem; }
.related__item::marker { color: var(--muted); }

/* -- footer --------------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  font-size: var(--small);
  color: var(--muted);
}

.site-footer__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2rem var(--gutter) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: baseline;
}

.site-footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  color: var(--ink);
}
.site-footer__note { margin: 0; flex: 1 1 20rem; }
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

/* -- motion and print ----------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 0.15s ease, text-decoration-thickness 0.15s ease, border-color 0.15s ease; }
  html { scroll-behavior: smooth; }
}

@media print {
  .site-header nav, .menu-toggle, .skip, .related { display: none; }
  body { background: #fff; color: #000; }
  .prose a::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
