/* MindRogue site. "Instrument" palette from the app (apps/OpenModel/Sources/Views/Theme.swift, Brand):
   paper and ink, one cool link colour, monospaced figures. Light and dark follow the device. */
:root {
  --paper: #F4F2EE;
  --surface: #FBFAF8;
  --sunken: #E8E4DC;
  --ink: #16171A;
  --ink2: #4A4B50;
  --rule: #D6D1C8;
  --link: #1F5FBF;
  --running: #D9480F;
  --danger: #C1272D;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121314;
    --surface: #1A1B1D;
    --sunken: #26272A;
    --ink: #EDEBE6;
    --ink2: #A9A7A1;
    --rule: #303134;
    --link: #8AB4FF;
    --running: #FF7A3D;
    --danger: #FF6B6B;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 22px; }

header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.site a { color: var(--ink2); text-decoration: none; margin-left: 18px; font-size: 15px; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

main { padding: 40px 0 56px; }
.label {
  font: 600 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2);
  margin: 0 0 10px;
}
h1 { font-size: 34px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.01em; }
h2 { font-size: 22px; line-height: 1.25; margin: 44px 0 12px; padding-top: 18px; border-top: 1px solid var(--rule); }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.lead { font-size: 19px; color: var(--ink2); }
.muted { color: var(--ink2); }
.mono, code { font-family: var(--mono); font-size: .92em; }
code { background: var(--sunken); padding: 1px 5px; border-radius: 4px; }

.hero { text-align: left; }
.hero .icon { width: 112px; height: 112px; border-radius: 26px; display: block; margin: 0 0 22px; }

.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; margin: 18px 0;
}
.card > :last-child { margin-bottom: 0; }
.card.note { border-left: 4px solid var(--running); }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 18px 0; }
.figure { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; }
.figure .value { font: 600 22px/1.2 var(--mono); }
.figure .what { color: var(--ink2); font-size: 15px; }

table { border-collapse: collapse; width: 100%; margin: 10px 0 18px; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--rule); }
th { font: 600 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); }

details { border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); margin: 10px 0; }
summary { cursor: pointer; padding: 13px 16px; font-weight: 600; list-style-position: inside; }
details[open] summary { border-bottom: 1px solid var(--rule); }
details .body { padding: 12px 16px 4px; }
.quote { font-family: var(--mono); font-size: 14.5px; color: var(--ink2); display: block; margin-bottom: 8px; }

footer.site { border-top: 1px solid var(--rule); color: var(--ink2); font-size: 14px; padding: 22px 0 40px; }
footer.site a { color: var(--ink2); margin-right: 16px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  nav.site a { margin-left: 12px; }
  .brand span { display: none; }
}
.page-icon { width: 96px; height: 96px; border-radius: 22px; display: block; margin-bottom: 18px; }
