:root {
  color-scheme: light;
  --paper: #f6f8f6;
  --ink: #14211e;
  --muted: #52645e;
  --line: #c9d5ce;
  --accent: #075748;
  --bright: #d2efdf;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #0a7866; outline-offset: 4px; }
h1, h2, h3 { line-height: 1.15; }
h1 { margin: 0 0 0.6em; font-size: clamp(2.1rem, 5vw, 4.8rem); letter-spacing: -0.055em; font-weight: 730; overflow-wrap: anywhere; }
h2 { margin: 0.35em 0; font-size: 1.45rem; }
p { max-width: 67ch; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.skip { position: absolute; left: 1rem; top: -9rem; background: white; padding: 0.6rem; z-index: 1; }
.skip:focus { top: 1rem; }
.masthead { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding: 1.1rem clamp(1rem, 5vw, 5rem); background: #132823; color: #f0f8f4; }
.masthead a, .quiet { color: inherit; }
.brand, .masthead nav { display: flex; align-items: center; gap: 0.8rem; }
.brand { font-weight: 730; text-decoration: none; }
.masthead nav { gap: 1.25rem; }
.masthead .quiet { padding: 0; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 0.22em; }
.monogram, .app-icon { display: inline-grid; place-items: center; width: 2.15rem; height: 2.15rem; font-weight: 790; background: var(--bright); color: var(--accent); }
.site-main { width: min(100%, 82rem); margin: 0 auto; padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem); }
.section-name { font-size: 0.875rem; font-weight: 720; text-transform: uppercase; letter-spacing: 0.14em; margin: 0 0 1.25rem; color: var(--accent); }
.welcome { margin: clamp(1rem, 5vw, 4rem) 0 2rem; }
.welcome p, .muted { color: var(--muted); }
.button { display: inline-block; padding: 0.55rem 0.9rem; border: 1px solid var(--accent); background: var(--accent); color: white; text-decoration: none; font-weight: 650; }
.button:hover { background: #073d34; color: white; }
.secondary { background: transparent; color: var(--accent); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 22rem)); gap: 1rem; }
.app-card { border: 1px solid var(--line); background: white; color: var(--ink); padding: 1.5rem; text-decoration: none; }
.app-card:hover { border-color: var(--accent); }
.app-card p { margin: 0.3rem 0 0; color: var(--muted); }
.app-icon { margin-bottom: 0.6rem; }
.wiki-grid { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: clamp(1rem, 4vw, 3rem); }
.wiki-grid aside { border-right: 1px solid var(--line); padding-right: 1.25rem; }
.wiki-grid aside nav { display: grid; gap: 0.65rem; margin-bottom: 1.3rem; }
.wiki-grid aside form, .editor label { display: grid; gap: 0.35rem; }
.wiki-content { max-width: 56rem; }
.wiki-content h1 { font-size: clamp(2rem, 5vw, 3.65rem); }
input, textarea, select { width: 100%; padding: 0.5rem; border: 1px solid #82958c; background: white; color: var(--ink); }
textarea { font-family: ui-monospace, monospace; resize: vertical; }
.editor { display: grid; gap: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.page-list { padding: 0; list-style: none; }
.page-list li { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.page-list li a { font-size: 1.1rem; font-weight: 650; overflow-wrap: anywhere; }
.page-list li span { display: block; font-size: 0.875rem; }
.page-list p { margin: 0.25rem 0 0; }
.prose { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1rem; overflow-wrap: anywhere; }
.prose pre, .notice { padding: 0.9rem; background: #e6eee9; }
.prose pre { overflow: auto; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; margin-left: 0; }
.notice { margin: 1rem 0; }
@media (max-width: 47rem) {
  .wiki-grid { grid-template-columns: minmax(0, 1fr); }
  .wiki-grid aside { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 1rem; }
  .wiki-grid aside nav { display: flex; flex-wrap: wrap; gap: 1rem; }
}
