

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/InstrumentSerif-latin-400-normal.9b8dd1ecf641.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: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/InstrumentSerif-latin-ext-400-normal.b160c869d0b2.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: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/InstrumentSerif-latin-400-italic.bc891bdd08ad.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: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/InstrumentSerif-latin-ext-400-italic.148ffff0cacc.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: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterTight-latin-wght-normal.f5af7a761c2b.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: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterTight-latin-ext-wght-normal.496654ac82a3.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;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-size: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

strong,
b {
  font-weight: 600;
}

.measure {
  max-inline-size: var(--measure);
}

.text-muted {
  color: var(--muted);
}

.text-soft {
  color: var(--ink-soft);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.htmx-indicator {
  opacity: 0;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
  transition: opacity 200ms ease-in;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap, var(--space-4));
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap, var(--space-3));
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, calc(var(--measure) / 2)), 1fr));
  gap: var(--gap, var(--space-6));
}

.gap-1 { --gap: var(--space-1); }
.gap-2 { --gap: var(--space-2); }
.gap-3 { --gap: var(--space-3); }
.gap-4 { --gap: var(--space-4); }
.gap-5 { --gap: var(--space-5); }
.gap-6 { --gap: var(--space-6); }
.gap-8 { --gap: var(--space-8); }
.gap-10 { --gap: var(--space-10); }

.skip-link {
  position: absolute;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
  z-index: 10;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--link);
  box-shadow: var(--shadow-raised);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

main:focus {
  outline: none;
}

.test-version-banner {
  margin: 0;
  padding: var(--space-2) var(--space-4);
  background: var(--plum-tint);
  color: var(--plum-ink);
  text-align: center;
}

.test-version-banner a {
  color: inherit;
  text-decoration: underline;
}

.app {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  display: none;
}

.app-body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
}

.app-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5) var(--space-2);
}

.app-header-brand {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.app-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-2);
}

.app-main {
  flex: 1 0 auto;
  min-width: 0;
  padding: var(--space-2) var(--space-5) var(--space-8);
}

.app-columns {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-8);
}

.app-primary {
  display: flex;
  flex: 999 1 var(--measure);
  flex-direction: column;
  gap: var(--space-6);
  min-width: 0;
}

.app-aside {
  display: flex;
  flex: 1 1 var(--aside-width);
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.app-tabbar {
  position: sticky;
  inset-block-end: 0;
  z-index: 5;
  padding: var(--space-2) var(--space-2) max(var(--space-2), env(safe-area-inset-bottom));
  background: var(--surface-sidebar);
  border-block-start: 1px solid var(--line);
}

@media (min-width: 60em) {
  .app-sidebar {
    position: sticky;
    inset-block-start: 0;
    display: flex;
    flex: 1 1 var(--sidebar-min);
    flex-direction: column;
    gap: var(--space-1);
    min-width: var(--sidebar-min);
    max-width: var(--sidebar-max);
    height: 100vh;
    overflow-y: auto;
    padding: var(--space-6) var(--space-4);
    background: var(--surface-sidebar);
    border-inline-end: 1px solid var(--line);
  }

  .app-body {
    flex: 999 1 0;
  }

  .app-header {
    padding: var(--space-5) var(--space-10);
  }

  .app-header-brand {
    visibility: hidden;
  }

  .app-main {
    padding: var(--space-2) var(--space-10) var(--space-10);
  }

  .app-tabbar {
    display: none;
  }
}

.app-sidebar-footer {
  margin-block-start: auto;
  padding-block-start: var(--space-4);
}

.public,
.error-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.public-header,
.error-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5);
}

.public-main,
.error-page-main {
  flex: 1 0 auto;
  min-width: 0;
  padding: var(--space-8) var(--space-5);
}

@media (min-width: 60em) {
  .public-header,
  .error-page-header {
    padding: var(--space-6) var(--space-10);
  }

  .public-main,
  .error-page-main {
    padding: var(--space-10);
  }
}

.entry {
  inline-size: 100%;
  max-inline-size: calc(var(--measure) * 2);
  margin-inline: auto;
}

.entry-title {
  overflow-wrap: break-word;
}

.entry-title em {
  color: var(--action);
}

.entry-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--measure) * 0.75)), 1fr));
  gap: var(--space-6);
}

.entry-choice {
  display: flex;
  min-width: 0;
}

.entry-choice > .card {
  flex: 1 1 auto;
  gap: var(--space-5);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
}

.entry-choice > .card > .button {
  align-self: flex-start;
  margin-block-start: auto;
}

.public-main-narrow {
  inline-size: 100%;
  max-inline-size: calc(var(--measure) * 0.6);
  margin-inline: auto;
}

.page-intro {
  margin-block-end: var(--space-6);
}

@media print {
  .app-sidebar,
  .app-header,
  .app-tabbar,
  .app-aside,
  .skip-link,
  .page-intro > a,
  .shell-footer {
    display: none !important;
  }
}
