/* The creators' cabinet (ds/crm 2026-11-25): the site evoredux.com's look (site/src/style.css) - Oswald and Play
   (SIL OFL 1.1, site/fonts, copied here by the setup), the ash ground, the ember accent, the lobby's strip under a
   title; the light theme - the game's light steel dialogs. Chart colours checked by the dataviz validator: dark bars
   #d4852c on #1b191c, light #c96f12 on #fbfaf7. No inline styles anywhere (CSP): every look is a class here. */

@font-face { font-family: "Oswald"; src: url("/static/fonts/Oswald-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Play"; src: url("/static/fonts/Play-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #121014; --card: #1b191c; --card-2: #242126; --line: #3a3431; --text: #e6e2dc; --dim: #a49e96;
  --accent: #f4a549; --accent-text: #f4a549; --on-accent: #16141a; --data: #d4852c; --ok: #7fb77e; --err: #e07a5f;
  --display: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Play", "Segoe UI", Roboto, system-ui, sans-serif;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #ecebe7; --card: #fbfaf7; --card-2: #f2f0ec; --line: #d9d5ce; --text: #16141a; --dim: #625c55;
  --accent: #d9822b; --accent-text: #a2520a; --on-accent: #16141a; --data: #c96f12; --ok: #3f7d3e; --err: #b0412a;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #ecebe7; --card: #fbfaf7; --card-2: #f2f0ec; --line: #d9d5ce; --text: #16141a; --dim: #625c55;
    --accent: #d9822b; --accent-text: #a2520a; --on-accent: #16141a; --data: #c96f12; --ok: #3f7d3e; --err: #b0412a;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 1rem; line-height: 1.5; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.1; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 .6em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.muted { color: var(--dim); font-size: .875rem; }
.right { text-align: end; }
.wrap { max-width: 75rem; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* the top bar */
.top { display: flex; align-items: center; gap: 1.5rem; padding: 0 clamp(16px, 3vw, 40px); min-height: 64px;
  background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: .6rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo { font-family: var(--display); font-size: 1.4rem; letter-spacing: .01em; }
.sub { font-size: .7rem; letter-spacing: .2em; color: var(--accent-text); }
.nav { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-inline-start: 2rem; }
.nav a { color: var(--dim); padding: 1.2rem 0 1.05rem; border-bottom: 3px solid transparent; }
.nav a.on { color: var(--text); border-bottom-color: var(--accent); }
.nav a:hover { color: var(--text); text-decoration: none; }
.tools { display: flex; align-items: center; gap: 1rem; margin-inline-start: auto; }
.who { color: var(--text); font-size: .9rem; }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 3px; padding: .25rem .6rem;
  font-size: .85rem; }
.langs summary::-webkit-details-marker { display: none; }
.langs .menu { position: absolute; inset-inline-end: 0; top: 2.2rem; background: var(--card); border: 1px solid var(--line);
  border-radius: 4px; display: flex; flex-direction: column; min-width: 4rem; z-index: 5; }
.langs .menu a { padding: .35rem .8rem; color: var(--text); }
.langs .menu a.on { color: var(--accent-text); }
.theme { display: inline-flex; width: 18px; height: 18px; border: 1.5px solid var(--dim); border-radius: 50%; overflow: hidden; }
.theme .half { width: 50%; background: var(--dim); }
form.inline { display: inline; }
button.link { background: none; border: 0; color: var(--dim); font: inherit; font-size: .9rem; cursor: pointer; padding: 0; }
button.link:hover { color: var(--text); }

/* titles, cards */
.h2 { font-size: clamp(2rem, 2vw + 1.2rem, 2.6rem); margin: 2rem 0 1.5rem; }
.h2::after { content: ""; display: block; width: 3.25rem; height: 3px; margin-top: .4em; background: var(--accent); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.caps { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--dim); margin-bottom: .8rem; }
.big { font-family: var(--display); font-size: 2.4rem; line-height: 1.1; }
.accent { color: var(--accent-text); }
.row { display: grid; gap: 1.25rem; }
.row.two { grid-template-columns: 7fr 5fr; }
.row.halves { grid-template-columns: 1fr 1fr; }
.row > .card { margin-bottom: 0; }
.row + * { margin-top: 1.25rem; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.split.head { align-items: flex-end; margin: 2.2rem 0 1rem; }
.field { width: 100%; overflow-wrap: anywhere; background: var(--card-2); color: var(--text); border: 1px solid var(--line); border-radius: 4px;
  padding: .7rem .9rem; font: inherit; font-size: 1.05rem; margin-bottom: .8rem; }
.copy { user-select: all; -webkit-user-select: all; cursor: text; }

/* buttons */
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 3px;
  padding: .6rem 1.1rem; font: inherit; cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn[disabled] { opacity: .55; cursor: default; }

/* alerts */
.alert { border-radius: 4px; padding: .7rem 1rem; margin: 1rem 0; border: 1px solid var(--line); }
.alert.ok { border-color: var(--ok); }
.alert.err { border-color: var(--err); }

/* the period switch */
.switch { display: flex; flex-wrap: wrap; gap: .25rem; background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  padding: 3px; align-items: center; }
.switch > a, .switch summary { color: var(--dim); padding: .35rem .8rem; border-radius: 3px; cursor: pointer; list-style: none; }
.switch summary::-webkit-details-marker { display: none; }
.switch a.on, .switch details[open] summary { background: var(--card-2); color: var(--text); }
.switch a:hover { text-decoration: none; color: var(--text); }
.custom form { display: flex; gap: .6rem; align-items: flex-end; padding: .6rem; flex-wrap: wrap; }

/* the tiles and the days */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 1.25rem; }
.tile { margin-bottom: 0; }
.multi { margin-top: .4rem; }
.mrow { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; align-items: end; margin-bottom: .9rem; }
.mname { display: flex; flex-direction: column; }
.mname b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.mplot { position: relative; height: 4.5rem; border-bottom: 1px solid var(--line); }
.spark { width: 100%; height: 100%; display: block; }
.spark .bar { fill: var(--data); }
.spark .zero { fill: var(--line); }
.spark .hatch { fill: var(--card-2); stroke: var(--line); stroke-width: .6; stroke-dasharray: 2 2; }
.mmax { position: absolute; top: -.2rem; inset-inline-end: 0; font-size: .7rem; color: var(--dim); background: var(--card);
  padding: 0 .25rem; }
.maxis { display: flex; justify-content: space-between; margin-inline-start: 12rem; font-size: .75rem; color: var(--dim); }
details.table summary { cursor: pointer; color: var(--dim); font-size: .875rem; margin-top: .6rem; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
form.done { margin-top: .8rem; }
th { text-align: start; color: var(--dim); font-weight: 400; padding: .3rem .4rem; border-bottom: 1px solid var(--line); }
td { padding: .35rem .4rem; border-bottom: 1px solid var(--card-2); overflow-wrap: anywhere; }

/* the level */
.steps { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0 0 1rem; flex-wrap: wrap; }
.steps li { color: var(--dim); display: flex; align-items: center; gap: .5rem; }
.steps li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--dim); }
.steps li.done::before { background: var(--dim); }
.steps li.on { color: var(--text); }
.steps li.on::before { background: var(--accent); border-color: var(--accent); }
.meter { height: 8px; background: var(--card-2); border-radius: 4px; overflow: hidden; margin: .2rem 0 1rem; }
.meter span { display: block; height: 100%; background: var(--data); border-radius: 4px; }
.w0 { width: 0; } .w5 { width: 5%; } .w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; }
.w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; }
.w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; }
.w90 { width: 90%; } .w95 { width: 95%; } .w100 { width: 100%; }

/* lists, forms */
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: .45rem 0; border-bottom: 1px solid var(--card-2); overflow-wrap: anywhere; }
.tag { font-size: .7rem; border: 1px solid var(--line); border-radius: 3px; padding: 0 .35rem; color: var(--dim); }
.form label { display: block; margin-bottom: 1rem; color: var(--dim); font-size: .9rem; }
.form input, .form textarea, .form select, .custom input {
  display: block; width: 100%; margin-top: .35rem; background: var(--card-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 4px; padding: .55rem .7rem; font: inherit; font-size: 1rem; }
.form small { display: block; margin-top: .3rem; }
.form.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; align-items: end; }
.form.grid label { margin-bottom: .8rem; }
.form.inline { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.form.inline label { flex: 1 1 16rem; margin-bottom: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.check { display: inline-flex !important; align-items: center; gap: .4rem; color: var(--text) !important; margin: 0 !important; }
.check input { width: auto !important; display: inline !important; margin: 0 !important; }
.codes { width: 100%; font-family: ui-monospace, monospace; font-size: 1.1rem; background: var(--card-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 4px; padding: .8rem; margin-bottom: .8rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.thumb img { width: 100%; border-radius: 4px; display: block; }
.hero { max-width: 42rem; padding: 2rem 0 3rem; }
.lead { font-size: 1.15rem; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--line);
  margin-top: 2.5rem; padding-top: 1.2rem; padding-bottom: 2rem; font-size: .875rem; }
.foot a { color: var(--dim); }

/* phones */
@media (max-width: 52rem) {
  .row.two, .row.halves { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .mrow { grid-template-columns: 1fr; gap: .2rem; }
  .mname { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .mname b { font-size: 1.15rem; }
  .mplot { height: 3.5rem; }
  .maxis { margin-inline-start: 0; }
  .nav { margin-inline-start: 0; gap: 1rem; order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap;
    scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: .6rem 0; white-space: nowrap; }
  .big { font-size: 1.9rem; }
  .form.grid { grid-template-columns: 1fr 1fr; }
  .card { padding: 1rem 1.1rem; }
}
