:root {
  color-scheme: light;
  --bg: #f6f4ee;
  --panel: #fffdf8;
  --ink: #282923;
  --muted: #575a51;
  --line: #cbc9bd;
  --accent: #334d3b;
  --error: #8c251f;
  font: 16px/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .13em; }
h1, h2, h3, p, ul { margin: 0; }
h1, h3 { font-family: Georgia, serif; font-weight: 500; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.05em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1.65rem; }
small { display: block; color: var(--muted); overflow-wrap: anywhere; }
form { margin: 0; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 3px solid #786128; outline-offset: 3px; }
.shell { width: min(100%, 1100px); margin-inline: auto; padding-inline: clamp(18px, 5vw, 56px); }
.skip { position: absolute; left: 18px; top: -80px; }
.skip:focus { top: 8px; z-index: 1; background: var(--panel); padding: 8px; }
.header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.header nav, .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; text-decoration: none; }
.brand span, .badge { display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; color: var(--accent); font-weight: 700; }
.brand span { width: 26px; height: 26px; }
.badge { width: 42px; height: 42px; }
.main { display: grid; gap: 24px; padding-block: clamp(30px, 7vw, 72px); }
.intro { display: grid; gap: 16px; justify-items: start; }
.intro p, .card p { color: var(--muted); }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.section { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 24px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.switcher { display: grid; gap: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.card { display: grid; justify-items: start; gap: 12px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; }
.rows { list-style: none; padding: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.rows time { color: var(--muted); }
.editor { width: min(100%, 36rem); display: grid; justify-items: start; gap: 15px; }
.editor > div { width: 100%; }
label { font-weight: 600; }
.editor label { display: block; margin-bottom: 4px; }
.editor input:not([type="checkbox"]), .editor select, .editor textarea { width: 100%; }
input:not([type="checkbox"]), select, textarea { min-height: 44px; padding: 8px 10px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
textarea { resize: vertical; }
.helptext { display: block; color: var(--muted); font-size: .88rem; }
.errorlist { color: var(--error); padding-left: 20px; }
button, .button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: white; font-weight: 650; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { text-decoration: underline; }
.secondary { color: var(--accent); background: var(--panel); border-color: var(--line); }

@media (max-width: 520px) {
  .header { align-items: start; flex-direction: column; padding-block: 12px; gap: 8px; }
}
