:root { color-scheme: light; --paper: #f8f7f2; --ink: #243b31; --muted: #626e64; --line: #dedfd5; --green: #265b42; --tint: #edf0e4; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--green); }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #bc6f2c; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 64px)); margin: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 23px 0; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { text-decoration: none; font-size: 35px; font-weight: 800; letter-spacing: -2px; }
.brand span { color: #73834a; margin-left: 3px; }
nav { display: flex; gap: 28px; font-size: 14px; }
nav a { text-decoration: none; }
.muted { color: var(--muted); }
.skip { position: absolute; top: -80px; background: white; padding: 10px; z-index: 10; }
.skip:focus { top: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -1.7px; margin-bottom: 24px; }
h2 { font-size: 25px; letter-spacing: -.6px; }
h3 { font-size: 21px; }
.eyebrow { font-size: 11px; letter-spacing: 1.7px; font-weight: 750; }
.hero { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 60px; padding: 72px 0 62px; }
.hero h1 { font-size: clamp(42px, 5vw, 64px); line-height: 1.08; letter-spacing: -2.6px; }
em { font-family: Georgia, serif; font-weight: normal; }
.intro { color: var(--muted); font-size: 17px; margin-bottom: 0; }
.verse { padding: 24px 30px 30px; border-left: 1px solid #c8cfb7; }
.verse-mark { font: 80px/.8 Georgia, serif; color: #83935c; }
.verse p { font: italic 25px/1.55 Georgia, serif; }
.verse .eyebrow { color: var(--muted); }
.catalog { border-top: 1px solid var(--line); padding-top: 34px; }
.section-heading, .admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.section-heading h2 { margin: 0; }
.section-heading > span { white-space: nowrap; font-size: 13px; }
.filters { margin: 25px 0 30px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-size: 13px; margin-bottom: 12px; }
legend .muted { font-weight: normal; }
.tag-options, .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-option { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font-size: 13px; cursor: pointer; background: #fffefa; }
.filter-option:has(:checked) { background: #e3ead9; border-color: #8a9b75; }
input[type=checkbox] { accent-color: var(--green); width: 16px; height: 16px; flex-shrink: 0; }
.filters .actions { margin-top: 14px; font-size: 13px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 11px 19px; border-radius: 6px; background: var(--green); color: white; border: 1px solid var(--green); font-size: 14px; font-weight: 650; text-decoration: none; }
.button:hover { color: white; background: #1c4532; }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button.secondary:hover { background: var(--tint); }
.button.small { padding: 7px 14px; font-size: 13px; }
.button.full { width: 100%; margin: 12px 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 25px; }
.card { background: #fffefa; border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 4px; background: var(--tint); font-size: 11px; text-decoration: none; overflow-wrap: anywhere; }
.card h3 { margin: 24px 0 12px; overflow-wrap: anywhere; }
.card h3 a { text-decoration: none; }
.card-description { font-size: 14px; color: var(--muted); }
.card-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; margin-top: auto; gap: 10px; font-size: 13px; }
.card-bottom a { text-decoration: none; font-weight: 650; }
.votes { border: 1px solid var(--line); border-radius: 5px; padding: 3px 9px; font-weight: 600; }
.empty { text-align: center; padding: 65px 24px; grid-column: 1 / -1; border: 1px dashed #c4caba; border-radius: 10px; margin: 25px 0; }
.empty p { color: var(--muted); }
.how { margin: 64px 0; padding: 35px; border-radius: 10px; background: var(--tint); }
.how h2 { margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.steps span { color: #758361; font: italic 26px Georgia, serif; }
.steps h3 { font-size: 16px; margin: 13px 0 8px; }
.steps p { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.site-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 25px 0; margin-top: 60px; gap: 20px; font-size: 12px; color: var(--muted); }
.back { display: inline-block; margin: 32px 0; text-decoration: none; font-size: 14px; color: var(--muted); }
.detail-heading { max-width: 850px; margin-bottom: 32px; }
.detail-heading h1 { overflow-wrap: anywhere; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 28px; }
.paper { padding: 30px; border: 1px solid var(--line); border-radius: 10px; background: #fffefa; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.view-switch { display: flex; padding: 3px; background: var(--tint); border-radius: 6px; }
.view-switch button { background: transparent; border: 0; border-radius: 4px; padding: 7px 12px; font-size: 13px; color: var(--muted); }
.view-switch button[aria-pressed=true] { background: white; color: var(--ink); box-shadow: 0 1px 3px #243b3115; }
.copy-status { font-size: 13px; color: var(--green); margin: 16px 0; }
.copy-status:empty { display: none; }
.markdown { padding-top: 25px; overflow-wrap: anywhere; }
.markdown h1 { font-size: 30px; }
.markdown h2 { font-size: 24px; }
.markdown h3 { font-size: 20px; }
.markdown pre, .raw { white-space: pre-wrap; overflow-wrap: anywhere; background: #f3f3eb; padding: 20px; border-radius: 5px; font: 14px/1.7 ui-monospace, monospace; }
.markdown img { max-width: 100%; height: auto; }
.markdown table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.markdown th, .markdown td { border: 1px solid var(--line); padding: 8px; }
.markdown blockquote { margin-left: 0; border-left: 3px solid #8a9b75; padding-left: 20px; color: var(--muted); }
.tip { background: var(--tint); padding: 25px; border-radius: 10px; }
.tip p, .vote-box p { font-size: 14px; }
.tip p:last-child { margin-bottom: 0; }
.vote-box { margin-top: 25px; padding: 0 0 0 2px; }
.vote-box h2 { font-size: 20px; margin-bottom: 8px; }
.vote-count strong { font-size: 34px; }
.vote-count span { color: var(--muted); }
.vote-box small { display: block; color: var(--muted); font-size: 12px; }
.test-notice { color: #785620; background: #fff0cc; border-radius: 5px; padding: 8px; font-size: 12px !important; }
.error, .success { padding: 12px 16px; border-radius: 6px; }
.error { background: #f9e8e2; color: #922f20; }
.success { background: #e1eedb; color: #275236; }
.login { max-width: 480px; margin: 70px auto 110px; }
.login h1 { font-size: 32px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack label, .tag-create label, .tag-edit label { font-size: 14px; font-weight: 600; }
input:not([type=checkbox]):not([type=hidden]), textarea { width: 100%; padding: 11px 12px; border: 1px solid #bfc5b7; border-radius: 5px; background: white; color: var(--ink); }
textarea { resize: vertical; font-family: ui-monospace, monospace; font-size: 14px; line-height: 1.6; }
.stack .button { margin-top: 12px; }
.actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.text-button { background: none; border: 0; padding: 0; color: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.danger { color: #9d3b2c; }
.admin-heading { margin-top: 50px; }
.admin-heading h1 { margin-bottom: 0; }
.admin-actions { margin: 30px 0; }
.admin-row { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.admin-row h2 { font-size: 21px; margin: 10px 0; overflow-wrap: anywhere; }
.admin-row .actions { flex-shrink: 0; font-size: 14px; }
.status { border-radius: 4px; padding: 3px 7px; background: #eae8e0; font-size: 11px; }
.status.published { background: #e0ebd7; color: #315731; }
.editor { max-width: 900px; }
.editor fieldset { margin: 16px 0; }
.publish-option { display: flex; align-items: flex-start; gap: 12px; padding: 15px; background: var(--tint); border-radius: 5px; }
.publish-option small { display: block; font-weight: normal; color: var(--muted); }
.tag-create { display: flex; align-items: flex-end; gap: 20px; max-width: 650px; margin: 30px 0; }
.tag-create > div { flex: 1; }
.tag-create .button { flex-shrink: 0; }
.tag-row { display: flex; align-items: center; gap: 30px; max-width: 760px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.tag-edit { display: flex; align-items: flex-end; gap: 15px; flex: 1; }
.tag-edit > div { flex: 1; }
.tag-edit label { font-weight: normal; font-size: 12px; }
@media (max-width: 900px) {
  .hero { gap: 25px; }
  .verse { padding-right: 0; }
  .verse p { font-size: 21px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .vote-box { margin-top: 0; }
  .admin-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { padding: 17px 0; gap: 12px; }
  .brand { font-size: 30px; }
  nav { gap: 12px; font-size: 11px; }
  .hero { grid-template-columns: 1fr; padding: 40px 0; gap: 30px; }
  .hero h1 { font-size: 45px; }
  .verse { padding: 0 0 0 18px; }
  .verse-mark { display: none; }
  .verse p { font-size: 21px; margin-bottom: 8px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 22px; }
  legend .muted { display: block; }
  .cards, .steps, .detail-sidebar { grid-template-columns: 1fr; }
  .how { padding: 25px; margin: 40px 0; }
  .steps { gap: 24px; }
  .site-footer { flex-direction: column; gap: 8px; }
  .paper { padding: 20px; }
  .toolbar { gap: 12px; }
  .toolbar .button { padding: 7px 10px; }
  .view-switch button { padding: 7px 9px; }
  .admin-heading { align-items: flex-start; }
  .tag-create { flex-direction: column; align-items: stretch; }
  .tag-row { gap: 15px; }
  .tag-edit { gap: 10px; }
}
