:root {
  color-scheme: light;
  --ink: #1c2927;
  --muted: #526461;
  --border: #d7e2dc;
  --paper: #fff;
  --background: #f5f8f6;
  --accent: #14594b;
  --accent-soft: #e4f0e9;
  --danger: #a12033;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #287b68; outline-offset: 3px; }

.skip { position: absolute; inset: .5rem auto auto .5rem; transform: translateY(-180%); background: var(--paper); padding: .5rem 1rem; }
.skip:focus { transform: none; z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.top { background: var(--paper); border-bottom: 1px solid var(--border); }
.top-inner, .frame { width: min(100% - 2.5rem, 66rem); margin-inline: auto; }
.top-inner { min-height: 4.25rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; padding-block: .6rem; }
.wordmark { color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -.025em; font-size: 1.15rem; }
.top nav, .account { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; font-size: .9rem; }
.top nav a, .secondary, .account { color: var(--muted); }
.account { margin-left: auto; overflow-wrap: anywhere; }
.account span { max-width: 24rem; }
.frame { padding-block: 3rem 5rem; }

h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.06; letter-spacing: -.047em; overflow-wrap: anywhere; }
h2 { font-size: 1.28rem; letter-spacing: -.022em; }
h3 { font-size: 1rem; overflow-wrap: anywhere; }
.page-title { margin-bottom: 1.75rem; }
.page-title p { margin-top: .6rem; max-width: 45rem; color: var(--muted); }
.identifier { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
.back { margin-bottom: .85rem; }
.section { margin-top: 2rem; }
.section > h2 { margin-bottom: .65rem; }
.section > p { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.card, .items, .editor, .note { border: 1px solid var(--border); border-radius: .65rem; background: var(--paper); }
.card { padding: clamp(1rem, 3vw, 1.35rem); }
.card > h2 { margin-bottom: .65rem; }
.card > p, .card div > p { color: var(--muted); }
.card > p + .button, .note + .button { margin-top: .9rem; }
.signin { max-width: 34rem; margin-inline: auto; display: grid; gap: 1rem; justify-items: start; }
.signin h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.row, .inline, .actions, .items li { display: flex; gap: .8rem; align-items: center; }
.row, .items li { justify-content: space-between; }
.inline input { min-width: 0; flex: 1 1 auto; }
.actions { justify-content: end; flex-wrap: wrap; }
.items { list-style: none; margin: 0; padding: 0; }
.items li { padding: .85rem 1.1rem; }
.items li + li { border-top: 1px solid var(--border); }
.items p { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.search { margin-bottom: .75rem; }
.hits li { display: block; }
.hits .excerpt { margin-top: .35rem; color: var(--ink); }
.items .role-text { font-size: .83rem; text-align: right; overflow-wrap: anywhere; }
.items .status { color: #74500b; font-size: .83rem; margin-top: .32rem; }
.items .status.ready { color: var(--accent); }
.items + .editor, .edit-actions { margin-top: .75rem; }

.editor > summary { cursor: pointer; color: var(--accent); font-weight: 650; padding: .8rem 1.1rem; }
.editor[open] > summary { border-bottom: 1px solid var(--border); }
.editor > form { padding: 1rem 1.1rem; }
.editor + .editor { margin-top: .65rem; }
.stack { display: grid; gap: .5rem; align-content: start; }
.stack label { font-weight: 620; }
.stack label:not(:first-child) { margin-top: .28rem; }
.stack small { color: var(--muted); font-weight: 400; margin-left: .3rem; }
.stack > button { justify-self: start; margin-top: .35rem; }
input:not([type="checkbox"]), textarea { width: 100%; color: var(--ink); background: #fcfefd; border: 1px solid #aebfb8; border-radius: .4rem; padding: .5rem .65rem; font: inherit; }
input[type="file"] { max-width: 100%; }
textarea { resize: vertical; }
button, .button { color: var(--accent); background: var(--paper); border: 1px solid #aebfb8; border-radius: .4rem; padding: .44rem .75rem; font: inherit; font-size: .9rem; font-weight: 640; cursor: pointer; display: inline-block; text-decoration: none; }
button:hover, .button:hover { background: var(--accent-soft); }
.primary { color: white; background: var(--accent); border-color: var(--accent); }
.primary:hover { color: white; background: #104c40; }
.quiet { color: var(--muted); padding: .28rem .46rem; }
.danger { color: var(--danger); }
.danger:hover { background: #fff0f2; }
.checks { display: flex; flex-wrap: wrap; gap: .75rem; }
.checks label { display: flex; align-items: center; gap: .3rem; font-weight: 500; margin: 0 !important; }
.checks input { margin: 0; accent-color: var(--accent); }
.rights-form { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) max-content max-content; gap: .8rem; align-items: center; }
.note { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem; line-height: 1.65; }

@media (max-width: 42rem) {
  .frame { padding-block: 1.8rem 3rem; }
  .top-inner { gap: .5rem 1rem; }
  .account { margin-left: 0; width: 100%; }
  .grid, .rights-form { grid-template-columns: 1fr; }
  .row, .items li { align-items: start; flex-wrap: wrap; }
  .items .role-text { text-align: left; }
}
