:root {
  color-scheme: light; --ink: #272327; --muted: #635961; --paper: #fbf8f5;
  --line: #ded5d9; --pink: #fae2eb; --berry: #97214c; --white: #fff;
  font-family: system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--berry); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #9c2b74; outline-offset: 3px; }
.mast { position: relative; display: flex; justify-content: center; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); padding: 1.2rem 2rem; background: white; }
.brand { font-family: Georgia, serif; color: var(--ink); font-size: clamp(1.4rem, 4vw, 2.25rem); font-weight: bold; letter-spacing: -.065em; text-decoration: none; white-space: nowrap; }
.mark, .brand-dot { color: var(--berry); }
.mark { margin-right: .2em; }
nav { position: absolute; right: 2rem; display: flex; align-items: center; gap: .65rem; font-size: .88rem; }
main { max-width: 1500px; padding: 1.5rem clamp(1rem, 4vw, 4rem) 4rem; margin: auto; }
h1, h2, h3, p { margin-top: 0; overflow-wrap: anywhere; }
h1 { font: bold clamp(2rem, 5vw, 4.5rem)/1.04 Georgia, serif; letter-spacing: -.05em; margin-bottom: .65rem; }
h2 { font-size: 1rem; line-height: 1.3; }
h3 { font-size: 1rem; }
.intro { padding: 2.25rem clamp(1rem, 4vw, 3rem); border-radius: 1.25rem; background: #f7e5ec; margin: 1rem 0 1.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 750; margin-bottom: .8rem; color: #75465c; }
.availability-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.availability, .pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .79rem; font-weight: 650; padding: .32rem .65rem; border-radius: 2rem; background: white; }
.availability i { width: .55rem; height: .55rem; border-radius: 50%; background: #686468; }
.availability .green { background: #25804e; }
.availability .amber { background: #ad6400; }
.availability .red { background: #b7173b; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; font-size: .88rem; }
.switch { position: relative; }
summary { cursor: pointer; font-weight: 650; }
.switch summary { background: white; border: 1px solid var(--line); border-radius: .6rem; padding: .55rem .75rem; list-style: none; }
.switch div { position: absolute; z-index: 1; width: max-content; max-width: 85vw; background: white; border: 1px solid var(--line); border-radius: .6rem; padding: .35rem; box-shadow: 0 8px 25px #3020281a; }
.switch a { display: block; padding: .45rem .65rem; }
[aria-current=page] { font-weight: bold; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; align-items: start; }
.lane { min-height: 15rem; padding: .8rem; border: 1px solid var(--line); border-radius: .95rem; background: #f2edef; }
.lane-title { display: flex; align-items: baseline; justify-content: space-between; gap: .35rem; }
.lane-title span, .archive summary span { font-size: .8rem; font-weight: 650; color: var(--muted); }
.card, .new-request, .panel, .narrow { background: white; border: 1px solid var(--line); border-radius: .85rem; padding: .85rem; margin-bottom: .65rem; }
.card h3 { margin: .55rem 0 .35rem; }
.card h3 a { color: var(--ink); }
.card p, .empty { font-size: .85rem; margin: .26rem 0; color: var(--muted); }
.pill { background: #eee9ee; }
.pill.request, .pill.progress { background: var(--pink); color: #751d44; }
.pill.approval { background: #fff0cf; color: #744b09; }
.pill.bill, .pill.archive { background: #e0f1e7; color: #22583a; }
.archive { margin-bottom: .65rem; }
.archive summary { margin-bottom: .45rem; }
.archive summary span { float: right; }
form { display: grid; gap: .65rem; }
form + form { margin-top: .7rem; }
label, legend { display: grid; gap: .35rem; font-size: .9rem; font-weight: 650; }
input, textarea, select, button { font: inherit; }
input:not([type=checkbox]), textarea, select { width: 100%; color: var(--ink); background: #fffdfa; padding: .62rem; border: 1px solid #baadb4; border-radius: .45rem; }
textarea { min-height: 5.5rem; resize: vertical; }
button { justify-self: start; cursor: pointer; border: 1px solid transparent; border-radius: .5rem; background: var(--berry); color: white; padding: .56rem .85rem; font-size: .87rem; font-weight: 680; }
button.quiet { border-color: var(--line); background: white; color: var(--berry); }
.check { display: flex; align-items: center; gap: .35rem; }
fieldset { border: 1px solid var(--line); border-radius: .5rem; }
.narrow { max-width: 43rem; margin: 1.5rem auto; padding: clamp(1rem, 5vw, 2.5rem); }
.narrow h1, .detail h1 { font-size: clamp(1.9rem, 4vw, 3.15rem); }
.back { display: inline-block; margin-bottom: 1rem; }
.detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; }
.detail > section:only-child { grid-column: 1 / -1; max-width: 55rem; width: 100%; }
.detail .panel { padding: 1rem; }
.detail h1 { margin-top: .6rem; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.event { border-bottom: 1px solid var(--line); margin-bottom: .65rem; }
small, .muted { color: var(--muted); }
hr { border: 0; border-bottom: 1px solid var(--line); margin: 1rem 0; }
.list { padding-left: 1.2rem; }
@media (max-width: 1000px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .board, .detail { grid-template-columns: minmax(0, 1fr); }
  .lane { min-height: 0; }
  .mast { flex-wrap: wrap; padding: .85rem; }
  nav { position: static; }
}
