/* Reepo (formerly Flapsoft), in Flaptown Design v5 (FlaptownDesign/v5/STANDARD.md): an open workshop made of materials,
   one light from the top left. The shared header and footer come from /site-nav.css. */
@font-face { font-family: "Syne Mono"; src: url("/SyneMono-Regular.ttf") format("truetype"); font-display: swap; }
:root { --onyx: #0e1010; --plate: #161818; --plate-hi: #1b1e1e; --pocket: #080909; --mocha: #412828; --clay: #a46f67; --rose: #b7958c; --oak: #c9bab0;
  --rose2: #b19a98; --mauve: #6a4f5c; --dusty: #937f6d; --dim: #737078; --indigo: #3e4158; --done: #9ea3c8; --working: #d4b07a; --failed: #e07a62;
  --carve: 0 -1px 1px #000000f2, -1px -1px 1px #000000a6, 0 1px 0 #c9bab052; --ease: cubic-bezier(.45, .1, .25, 1); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--onyx); color: var(--oak); font: 400 15px/25px "Syne Mono", ui-monospace, monospace; font-synthesis: none; }
body { text-shadow: var(--carve); }
h1, h2, h3, h4, p, ul, ol, table, pre { margin: 0; font-weight: 400; }
a { color: var(--rose); } a:hover { color: var(--oak); }
::selection { background: var(--mauve); color: var(--oak); }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--plate); padding: 8px 12px; }
.lbl { font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; }
.cap { font-size: 11px; line-height: 16px; letter-spacing: .04em; }
.subtle { color: var(--dusty); }
kbd { font-family: inherit; font-size: 11px; color: var(--oak); padding: 0 5px; border-radius: 3px; background: var(--pocket); box-shadow: inset 0 1px 2px #000, 0 1px 0 #c9bab012; }
code { font-family: inherit; color: var(--oak); }
.pre { white-space: pre-wrap; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 2px; }

/* materials */
.plate { background: var(--plate) repeating-linear-gradient(0deg, #c9bab003 0 1px, transparent 1px 3px); border-radius: 10px;
  box-shadow: 0 2px 0 #000, 0 14px 32px #000000b0, inset 0 1px 0 #c9bab01f, inset 1px 0 0 #c9bab010; }
.plate.v { background: var(--plate) repeating-linear-gradient(90deg, #c9bab003 0 1px, transparent 1px 3px); }
.pocket { position: relative; display: inline-flex; background: var(--pocket); border-radius: 10px; padding: 5px;
  box-shadow: inset 0 4px 10px -3px #000000e6, inset 0 2px 0 #000, inset 4px 0 8px -5px #000000b3, inset -4px 0 8px -5px #000000b3, inset 0 -1px 0 var(--mocha); }
.window { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; padding: 4px 12px; background: var(--onyx) linear-gradient(180deg, #c9bab012 0%, #c9bab005 40%, transparent 41%);
  border: 1px solid var(--mocha); border-radius: 7px; box-shadow: inset 0 1px 0 #c9bab01f, inset 0 -2px 6px #00000099, 0 1px 2px #000; }
.glass { position: absolute; inset: 2px; border-radius: 9px; pointer-events: none;
  background: radial-gradient(130% 90% at 12% -10%, #c9bab017 0%, #c9bab006 40%, transparent 60%), linear-gradient(116deg, transparent 6%, #c9bab00c 20%, #c9bab012 26%, #c9bab005 38%, transparent 46%);
  border: 1px solid #c9bab01a; box-shadow: inset 0 1px 0 #c9bab040, inset 1px 0 0 #c9bab01c, inset 0 -1px 0 #0000009e; }
.cells { letter-spacing: 0; white-space: pre; color: var(--oak); text-shadow: 0 0 1px currentColor, 0 0 6px color-mix(in srgb, currentColor 38%, transparent);
  background-image: repeating-linear-gradient(90deg, #c9bab00c 0 calc(1ch - 1px), transparent calc(1ch - 1px) 1ch); background-size: 100% 78%; background-position: 0 55%; background-repeat: repeat-x; }
.lp { position: relative; background: var(--pocket); border-radius: 6px; overflow: hidden; }
.lp > .sc { overflow-y: auto; overscroll-behavior: contain; padding: 8px; scrollbar-width: thin; scrollbar-color: var(--mocha) transparent; }
.lp::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 6px;
  box-shadow: inset 0 10px 10px -8px #000000f2, inset 0 2px 0 #000, inset 5px 0 8px -6px #000000b3, inset -5px 0 8px -6px #000000b3, inset 0 -10px 10px -9px #000000e6, inset 0 -1px 0 var(--mocha); }

/* keys and fields */
.btn, .tab { font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 6px; cursor: pointer;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; color: var(--oak); text-shadow: var(--carve);
  background: #3e415833; border: 1.5px solid #737078b3; box-shadow: 0 3px 0 #000, 0 6px 14px #00000099, inset 0 1px 0 #c9bab00f; transition: background-color .14s, border-color .14s, transform .08s, box-shadow .08s; }
.btn:hover, .tab:hover { border-color: var(--dim); color: var(--oak); background: #3e415855; }
.btn:active, .tab:active, .btn.down { transform: translateY(2px); box-shadow: 0 1px 0 #000; }
.btn.primary { background: #b7958c26; border-color: var(--rose); }
.btn.half { min-height: 32px; padding: 0 11px; font-size: 11px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn[aria-pressed="true"] { background: #b7958c30; border-color: var(--rose); transform: translateY(1px); box-shadow: 0 2px 0 #000; }
.keyrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.field { font-family: inherit; font-size: 14px; line-height: 22px; color: var(--oak); caret-color: var(--rose); background: var(--pocket); border: 0; border-radius: 5px; padding: 8px 12px; width: 100%;
  box-shadow: inset 0 3px 8px -2px #000000e6, inset 0 1px 0 #000, inset 0 -1px 0 var(--mocha); }
.field:focus-visible { outline: none; box-shadow: inset 0 3px 8px -2px #000000e6, inset 0 1px 0 #000, 0 0 0 2px var(--oak); }
.field-l { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--dusty); letter-spacing: .04em; }
.ph { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ph::after { content: ""; flex: 1; order: 1; height: 1px; min-width: 20px; background: linear-gradient(90deg, var(--mocha), transparent); }
.ph > :not(:first-child) { order: 2; }
.stack { display: flex; flex-direction: column; gap: 8px; }

/* the page */
.fs { width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 24px; display: flex; flex-direction: column; gap: 48px; }
.hero { display: flex; flex-direction: column; gap: 16px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 60px); line-height: 1.05; max-width: 16ch; }
.lede { color: var(--rose); font-size: 17px; line-height: 28px; max-width: 68ch; }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 10px; }
.door { display: flex; flex-direction: column; gap: 10px; padding: 18px; text-decoration: none; color: var(--oak); border-radius: 10px;
  background: var(--plate) repeating-linear-gradient(0deg, #c9bab003 0 1px, transparent 1px 3px); box-shadow: 0 2px 0 #000, 0 12px 26px #000000b0, inset 0 1px 0 #c9bab01f; transition: transform .1s, box-shadow .1s; }
.door:hover { transform: translateY(-1px); box-shadow: 0 3px 0 #000, 0 16px 30px #000000c0, inset 0 1px 0 #c9bab02a; }
.door:active { transform: translateY(1px); }
.door .pocket { align-self: flex-start; } .door .cells { font-size: 13px; color: var(--working); }
.door-t { font-size: 20px; line-height: 28px; }
.door-s { color: var(--rose); font-size: 13px; line-height: 21px; }

.official, .workshop, .learn, .releases { display: flex; flex-direction: column; gap: 14px; }
.workshop { padding: 20px; }
.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.card h3 { font-size: 20px; line-height: 28px; }
.card p { color: var(--rose); font-size: 13px; line-height: 21px; }
.card .meta { color: var(--dusty); font-size: 11px; letter-spacing: .04em; }
.card .keyrow { margin-top: auto; padding-top: 6px; }
.card .led { width: 6px; height: 6px; border-radius: 99px; display: inline-block; background: radial-gradient(circle at 35% 35%, #e3e6f6, #9ea3c8 55%, #3e4158); box-shadow: 0 0 0 1.5px #050606, 0 0 6px #9ea3c899; margin-right: 6px; vertical-align: 1px; }
.badge { align-self: flex-start; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--dusty); }
.filters { display: grid; grid-template-columns: minmax(200px, 1fr) auto; gap: 12px; align-items: end; }
#status { min-height: 20px; color: var(--rose); font-size: 13px; } #status.error { color: var(--failed); }
.empty { color: var(--dusty); }

/* an open project */
.project { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 16px; }
.phead { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; padding: 20px; }
.phead h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; margin: 4px 0; }
.phead #project-description { color: var(--rose); max-width: 80ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: var(--pocket); color: var(--rose);
  box-shadow: inset 0 1px 3px #000, 0 1px 0 #c9bab012; }
.chip b { font-weight: 400; color: var(--oak); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 10px; background: var(--pocket); box-shadow: inset 0 3px 8px -3px #000000e6, inset 0 -1px 0 var(--mocha); }
.tab { min-height: 36px; background: transparent; border-color: transparent; box-shadow: none; }
.tab[aria-selected="true"] { background: var(--plate); border-color: #737078b3; box-shadow: 0 2px 0 #000, inset 0 1px 0 #c9bab01f; }
.tab .n { color: var(--dusty); }
.panel { display: flex; flex-direction: column; gap: 12px; }

/* code: a file tree on the left, a reader in a well */
.source-workspace { display: grid; grid-template-columns: clamp(230px, 22vw, 320px) minmax(0, 1fr); gap: 14px; align-items: start; }
.tree { display: flex; flex-direction: column; gap: 10px; padding: 14px; position: sticky; top: 12px; max-height: calc(100vh - 24px); }
.tree .lp { flex: 1; min-height: 120px; display: flex; }
.tree .lp > .sc { flex: 1; max-height: 62vh; }
#files { display: flex; flex-direction: column; gap: 2px; }
#files .dir { margin: 6px 0 2px; color: var(--dusty); font-size: 11px; letter-spacing: .04em; padding: 0 4px; overflow-wrap: anywhere; }
#files button { font-family: inherit; text-align: left; display: block; width: 100%; padding: 5px 8px; border: 0; border-radius: 3px; cursor: pointer; font-size: 12px; line-height: 18px;
  color: var(--rose); background: transparent; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: var(--carve); }
#files button.nested { padding-left: 18px; }
#files button:hover { background: var(--plate); color: var(--oak); }
#files button[aria-pressed="true"] { background: var(--plate-hi); color: var(--oak); box-shadow: 0 1px 0 #000, inset 0 1px 0 #c9bab012, inset 2px 0 0 var(--clay); }
.file-filter-status { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.reader { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pathbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.pathbar .pocket { flex: 1; min-width: 200px; } .path { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.viewer { min-height: 280px; max-height: 78vh; overflow: auto; border-radius: 8px; scrollbar-width: thin; scrollbar-color: var(--mocha) transparent;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, #0b0c0c 0%, #070808 70%, #040505 100%);
  box-shadow: inset 0 14px 24px -10px #000000f2, inset 0 2px 0 #000, inset 12px 0 18px -12px #000000d9, inset -12px 0 18px -12px #000000d9, inset 0 -1px 0 var(--mocha); }
.code { display: table; min-width: 100%; padding: 10px 0; font-size: 13px; line-height: 21px; text-shadow: none; tab-size: 4; }
.code .row { display: table-row; }
.code .row.sel { background: #d4b07a14; } .code .row.sel .ln { color: var(--working); }
.code .ln { display: table-cell; user-select: none; text-align: right; padding: 0 14px 0 16px; color: #937f6d88; min-width: 4ch; cursor: pointer; text-decoration: none; vertical-align: top; }
.code .ln:hover { color: var(--oak); }
.code .lc { display: table-cell; white-space: pre; padding-right: 24px; color: #d9cdc4; }
.code.wrap .lc { white-space: pre-wrap; overflow-wrap: anywhere; }
/* syntax: brightness and warmth, never stoplight colours */
.t-kw { color: #c39a93; } .t-str { color: #b1b98f; } .t-com { color: #7f7769; font-style: normal; } .t-num { color: #d4b07a; }
.t-fn { color: #e9ddd2; } .t-tag { color: #c39a93; } .t-attr { color: #b19a98; } .t-prop { color: #9fb0b3; } .t-pun { color: #9a8f86; }
.prose { padding: 22px 26px; max-width: 86ch; color: #e2d7cd; text-shadow: none; font-size: 15px; line-height: 26px; }
.prose h1, .prose h2, .prose h3 { color: var(--oak); margin: 18px 0 8px; line-height: 1.25; } .prose h1 { font-size: 28px; margin-top: 0; } .prose h2 { font-size: 21px; } .prose h3 { font-size: 17px; }
.prose p, .prose ul, .prose ol, .prose pre, .prose table { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose code { background: #0e1010; padding: 1px 5px; border-radius: 3px; color: var(--oak); }
.prose pre { background: #0e1010; padding: 12px 14px; border-radius: 6px; overflow-x: auto; font-size: 13px; line-height: 21px; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; font-size: 13px; } .prose td, .prose th { border-bottom: 1px solid #2a1c1c; padding: 5px 10px; text-align: left; vertical-align: top; } .prose th { color: var(--dusty); font-weight: 400; }
.code-edit { font-size: 13px; line-height: 21px; min-height: 420px; resize: vertical; }
.savebar { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }

/* history, ideas, suggestions */
.trace { display: flex; flex-direction: column; background: var(--pocket); border-radius: 8px; padding: 4px 0; box-shadow: inset 0 3px 8px -3px #000000e6, inset 0 -1px 0 var(--mocha); }
.trace button { font-family: inherit; display: grid; grid-template-columns: 5ch minmax(0, 1fr) auto auto; gap: 14px; align-items: baseline; text-align: left; width: 100%; padding: 9px 14px; border: 0; background: transparent;
  color: var(--rose); cursor: pointer; font-size: 13px; line-height: 20px; text-shadow: var(--carve); }
.trace button + button { border-top: 1px solid #1d1414; }
.trace button:hover, .trace button[aria-current="true"] { background: var(--plate); color: var(--oak); }
.trace .v { color: var(--oak); } .trace .d { color: var(--dusty); font-size: 11px; } .trace .h { color: var(--dusty); font-size: 11px; }
.stack > article > button, #issues button, #suggestions button { font-family: inherit; width: 100%; text-align: left; padding: 10px 14px; border-radius: 6px; border: 0; cursor: pointer; color: var(--oak); font-size: 13px;
  background: var(--plate); box-shadow: 0 1px 0 #000, 0 2px 4px #000000b3, inset 0 1px 0 #c9bab012; text-shadow: var(--carve); }
#comments p { padding: 10px 12px; border-radius: 6px; background: var(--pocket); font-size: 13px; line-height: 21px; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.comparison pre { white-space: pre-wrap; background: var(--pocket); padding: 10px; border-radius: 6px; font-size: 12px; line-height: 19px; max-height: 360px; overflow: auto; }
#suggestion-files details { background: var(--pocket); border-radius: 6px; padding: 8px 12px; margin-bottom: 8px; }

/* the tour: a reading desk with the real code beside a plain explanation */
.tour { display: grid; grid-template-columns: clamp(220px, 24vw, 300px) minmax(0, 1fr); gap: 14px; align-items: start; }
.tour-rail { display: flex; flex-direction: column; gap: 6px; padding: 14px; position: sticky; top: 12px; }
.tour-rail .intro { color: var(--rose); font-size: 13px; line-height: 21px; margin-bottom: 8px; }
.tour-rail button { font-family: inherit; display: grid; grid-template-columns: 3ch 1fr; gap: 8px; text-align: left; padding: 8px 10px; border: 0; border-radius: 4px; cursor: pointer; color: var(--rose);
  background: transparent; font-size: 13px; line-height: 19px; text-shadow: var(--carve); }
.tour-rail button:hover { background: var(--plate-hi); color: var(--oak); }
.tour-rail button[aria-current="step"] { background: var(--plate-hi); color: var(--oak); box-shadow: 0 1px 0 #000, inset 2px 0 0 var(--clay); }
.tour-rail .n { color: var(--dusty); }
.tour-stop { display: flex; flex-direction: column; gap: 14px; }
.tour-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tour-head .cells { font-size: 14px; color: var(--working); }
.tour-stop h3 { font-size: 24px; line-height: 32px; }
.tour-note { color: #e2d7cd; font-size: 16px; line-height: 27px; max-width: 72ch; text-shadow: none; }
.tour-file { color: var(--dusty); font-size: 12px; }
.tour .viewer { max-height: 60vh; }

/* learning, the map, releases */
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.glossary details { background: var(--plate); border-radius: 8px; box-shadow: 0 1px 0 #000, 0 6px 14px #00000080, inset 0 1px 0 #c9bab012; }
.glossary summary { cursor: pointer; list-style: none; padding: 14px 16px; font-size: 14px; color: var(--rose); }
.glossary summary b { font-weight: 400; color: var(--oak); }
.glossary summary::-webkit-details-marker { display: none; }
.glossary summary::before { content: "▸ "; color: var(--dusty); } .glossary details[open] summary::before { content: "▾ "; }
.glossary p { padding: 0 16px 16px; color: #e2d7cd; font-size: 14px; line-height: 23px; text-shadow: none; }
.map { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.map h3 { font-size: 14px; color: var(--oak); margin: 4px 0 10px; }
.mapt { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 20px; }
.mapt td { padding: 6px 8px; border-bottom: 1px solid #241818; vertical-align: top; color: var(--rose); }
.mapt td:first-child { color: var(--dusty); white-space: nowrap; width: 1%; }
.promise { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 21px; color: #e2d7cd; text-shadow: none; margin-bottom: 14px; }
.promise li { padding-left: 18px; position: relative; }
.promise li::before { content: "✓"; position: absolute; left: 0; color: var(--done); }
.promise.not li::before { content: "◌"; color: var(--working); }
.term { background: var(--pocket); border-radius: 6px; padding: 10px 12px; font-size: 12px; line-height: 19px; color: var(--oak); overflow-x: auto; box-shadow: inset 0 2px 6px #000; text-shadow: none; }

/* dialogs */
.dlg { border: 0; padding: 22px; border-radius: 12px; color: var(--oak); width: min(560px, calc(100% - 32px));
  background: var(--plate) repeating-linear-gradient(0deg, #c9bab003 0 1px, transparent 1px 3px); box-shadow: 0 30px 80px #000, inset 0 1px 0 #c9bab01f; }
.dlg::backdrop { background: #000000c0; }
.dlg form { display: flex; flex-direction: column; gap: 14px; }
.dlg h2 { font-size: 22px; line-height: 30px; } .dlg p { color: var(--rose); font-size: 13px; line-height: 21px; }

@media (max-width: 900px) {
  .source-workspace, .tour { grid-template-columns: 1fr; }
  .tree, .tour-rail { position: static; max-height: none; }
  .tree .lp > .sc { max-height: 34vh; }
  .filters { grid-template-columns: 1fr; }
  .comparison { grid-template-columns: 1fr; }
  .phead { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* the file list scrolls; its rows never shrink to fit */
#files > * { flex: none; }
.field-l kbd { align-self: flex-start; }
.field-l:has(kbd) { flex-direction: row; align-items: center; gap: 8px; }
