:root {
  --surface: var(--paper-light);
  --line: var(--rule);
  --accent: var(--gold);
  --soft: color-mix(in srgb, var(--gold) 8%, var(--paper));
  --warning: var(--gold);
  --danger: color-mix(in srgb, #a62f24 80%, var(--ink));
  font:
    16px/1.6 Georgia,
    "Times New Roman",
    serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding-left: 190px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: var(--paper-light);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
button:hover,
.button:hover {
  filter: brightness(0.92);
}
button.secondary,
.button.secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
button.danger {
  background: var(--danger);
  border-color: var(--danger);
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--paper-light);
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  width: 190px;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3rem;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  background: var(--paper);
}
.site-header .brand {
  display: block;
  white-space: nowrap;
}
.site-header .brand em {
  display: block;
}
.site-header nav {
  width: 100%;
  flex-direction: column;
  gap: 0.4rem;
}
.site-header nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.site-header nav .ledger-link {
  color: var(--ink);
  font-weight: 700;
  border-block: 1px solid var(--line);
  margin-bottom: 0.5rem;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 0.9rem;
}
nav a {
  text-decoration: none;
  color: var(--muted);
}
nav a:hover,
nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}
main {
  width: 100%;
  max-width: 1184px;
  min-width: 0;
  min-height: 75vh;
  margin: auto;
  padding: 2.6rem clamp(1.5rem, 4vw, 4rem) 4rem;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  max-width: 950px;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}
h3 {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 0.7rem;
}
h3 a {
  color: var(--ink);
  text-decoration: none;
}
h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.eyebrow {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 650;
  color: var(--accent);
  margin-bottom: 1rem;
}
.lead {
  max-width: 710px;
  font-size: 1.12rem;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.hero {
  padding: 0.3rem 0 0.7rem;
}
.hero h1 {
  max-width: 770px;
}
.hero .lead {
  max-width: 640px;
}
.section {
  margin-top: 2.6rem;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.2rem;
}
.section-heading h2 {
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.stack {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.25rem;
  min-width: 0;
}
.card p:last-child {
  margin-bottom: 0;
}
.card .preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta {
  color: var(--muted);
  font-size: 0.83rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin: 0.7rem 0;
  overflow-wrap: anywhere;
}
.tags,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.actions {
  gap: 0.75rem;
  margin-top: 1.3rem;
}
.badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 550;
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  background: var(--soft);
  color: var(--accent);
}
.badge.warning {
  background: var(--soft);
  color: var(--warning);
  border: 1px solid var(--rule);
}
.badge.danger {
  background: color-mix(in srgb, var(--danger) 8%, var(--paper-light));
  color: var(--danger);
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 850px;
}
.notice,
.empty,
.error {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 2px;
  padding: 1.1rem 1.25rem;
  overflow-wrap: anywhere;
}
.notice p:last-child,
.empty p:last-child,
.error p:last-child {
  margin-bottom: 0;
}
.empty {
  background: transparent;
  border-style: dashed;
  color: var(--muted);
}
.error {
  background: color-mix(in srgb, var(--danger) 6%, var(--paper-light));
  border-color: var(--danger);
}
.error h3 {
  color: var(--danger);
}
.loading {
  color: var(--muted);
  padding: 1rem 0;
}
code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
}
code {
  overflow-wrap: anywhere;
}
pre {
  background: var(--ink);
  color: var(--paper-light);
  padding: 1.2rem;
  border-radius: 2px;
  overflow: auto;
  line-height: 1.7;
  tab-size: 2;
  max-width: 100%;
  max-height: 65vh;
  white-space: pre;
}
pre code {
  overflow-wrap: normal;
}
pre:focus {
  outline-offset: 2px;
}
.digest {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}
.details {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 0.5rem 1rem;
  margin: 1rem 0;
}
dt {
  color: var(--muted);
  font-size: 0.88rem;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
  margin-top: 1.3rem;
}
.form-card {
  max-width: 620px;
}
form {
  display: grid;
  gap: 1.2rem;
  min-width: 0;
}
.field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
label {
  font-weight: 550;
  font-size: 0.9rem;
}
input,
textarea,
select {
  border: 1px solid var(--muted);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: var(--surface);
  min-height: 46px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
.hint {
  color: var(--muted);
  font-size: 0.83rem;
  margin: 0;
}
form button {
  justify-self: start;
}
.private-banner {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
}
.secret {
  border: 2px solid var(--warning);
  background: var(--surface);
  padding: 1.3rem;
  border-radius: 2px;
  margin-top: 1rem;
}
.secret input {
  font-family: monospace;
}
details {
  margin-top: 1rem;
}
summary {
  cursor: pointer;
  color: var(--accent);
  padding: 0.4rem 0;
}
.site-footer {
  max-width: 1184px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 1.6rem clamp(1.5rem, 4vw, 4rem);
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer p {
  margin: 0;
}
table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
th,
td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
@media (max-width: 900px) {
  body {
    padding-left: 0;
  }
  .site-header {
    position: static;
    width: auto;
    padding: 1.1rem 1.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 2rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .site-header .brand em {
    display: inline;
  }
  .site-header nav {
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2rem 1.2rem;
  }
  .site-header nav .ledger-link {
    margin-bottom: 0;
    border: 0;
  }
}
@media (max-width: 740px) {
  .site-header {
    padding: 1rem 1.2rem;
  }
  main {
    padding: 2rem 1.2rem 3rem;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 1.15rem;
  }
  .details {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  dd {
    margin-bottom: 0.7rem;
  }
  .site-footer {
    padding: 1.5rem 1.2rem;
    flex-direction: column;
  }
  .actions > button,
  .actions > .button {
    flex-grow: 1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  .button {
    transition:
      background 0.12s,
      filter 0.12s;
  }
}
@media print {
  nav,
  button,
  .pagination,
  .site-footer,
  .secret {
    display: none;
  }
  body {
    padding-left: 0;
  }
  .site-header {
    position: static;
    width: auto;
    padding: 0 0 1rem;
    border: 0;
  }
  .site-header .brand em {
    display: inline;
  }
  main {
    padding: 0;
    min-height: 0;
  }
  pre {
    white-space: pre-wrap;
    max-height: none;
  }
}
