/* The Veranda website (tools/site/build.py, DECISIONS V139): Veranda Look 3
   "Sunroom"'s palette, taken from its screens: the sage desktop, mist-white
   bands, sky-blue selections, the ink; the dark theme's own. No JavaScript. */
:root {
  --sage: #77aa88;
  --sage-deep: #4f7f60;
  --mist: #eeeeff;
  --band: #ddddee;
  --sky: #aaccee;
  --ink: #222233;
  --grey: #9999aa;
  --sun: #ffee55;
  --paper: #ffffff;
  --page: #f4f4fa;
  --text: #222233;
  --muted: #55556a;
  --link: #2a5d9a;
  --shadow: rgba(34, 34, 51, 0.18);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sage: #334433;
    --sage-deep: #8fc39f;
    --mist: #333344;
    --band: #2a2a3a;
    --sky: #334466;
    --ink: #eeeeff;
    --grey: #777788;
    --sun: #ddcc44;
    --paper: #2a2a38;
    --page: #222233;
    --text: #eeeeff;
    --muted: #b8b8cc;
    --link: #9cc4f0;
    --shadow: rgba(0, 0, 0, 0.45);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }
code, pre { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.9em; }
code { background: var(--band); padding: 0.05em 0.3em; border-radius: 3px; }
pre { background: var(--band); padding: 0.8em 1em; overflow-x: auto; border-radius: 4px; }
pre code { background: none; padding: 0; }

/* the menu bar, as the X16's */
.bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 1.2em; flex-wrap: wrap;
  padding: 0.45em 16px;
  background: var(--mist);
  border-bottom: 1px solid var(--grey);
}
.brand { display: flex; align-items: center; gap: 0.45em; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { image-rendering: pixelated; border-radius: 2px; }
.bar nav { display: flex; gap: 0.2em; flex-wrap: wrap; }
.bar nav a { color: var(--text); text-decoration: none; padding: 0.15em 0.6em; border-radius: 3px; }
.bar nav a:hover, .bar nav a[aria-current="page"] { background: var(--sky); }

main { max-width: 1120px; margin: 0 auto; padding: 1.5em 16px 2em; }
main.narrow { max-width: 820px; }
h1 { font-size: 2em; line-height: 1.2; margin: 0.3em 0 0.5em; }
h2 { font-size: 1.4em; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.1em; margin: 0.2em 0 0.3em; }
.lead { font-size: 1.08em; }

/* home: the desktop beside the text, the sage behind it, the page's whole width */
.sage { background: var(--sage); border-bottom: 1px solid var(--grey); }
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2em; align-items: start;
  max-width: 1120px; margin: 0 auto; padding: 2em 16px;
}
/* a screenshot at its own size is sharp: 640 pixels wide where there is room */
@media (min-width: 1360px) { .hero { max-width: 1240px; grid-template-columns: minmax(0, 1fr) 642px; } }
.hero .intro { background: var(--paper); border: 1px solid var(--grey); border-radius: 6px; padding: 0.4em 1.2em 1em;
  box-shadow: 4px 4px 0 var(--shadow); }
.shot { margin: 0; }
.shot img, figure img, .card img { border: 1px solid var(--grey); border-radius: 4px;
  box-shadow: 4px 4px 0 var(--shadow); background: #000; }
.shot img { width: 100%; }
figcaption { font-size: 0.85em; color: #fff; margin-top: 0.4em; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4); }
.download { border-top: 1px solid var(--band); margin-top: 0.8em; }
.download h2 { margin-top: 0.6em; }
.ver { margin: 0.2em 0; }
.button {
  display: inline-block; background: var(--sky); color: var(--ink); text-decoration: none; font-weight: 600;
  padding: 0.45em 1em; border: 1px solid var(--ink); border-radius: 4px; box-shadow: 2px 2px 0 var(--shadow);
}
.button:hover { background: var(--sun); color: #222233; }
.small, .note, .hw, .date { color: var(--muted); font-size: 0.88em; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2em; }
.card { background: var(--paper); border: 1px solid var(--grey); border-radius: 6px; overflow: hidden; display: flex;
  flex-direction: column; }
.card img { display: block; width: 100%; border: 0; border-bottom: 1px solid var(--grey); border-radius: 0; box-shadow: none; }
.card div { padding: 0.6em 1em 0.8em; }
.card h3 a { color: var(--text); text-decoration: none; }
.card p { margin: 0.3em 0; }
.card .gallery { padding: 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--grey);
  border-bottom: 1px solid var(--grey); }
.gallery img { display: block; width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.credit { color: var(--muted); font-size: 0.85em; }
.install { background: var(--paper); border: 1px solid var(--grey); border-radius: 6px; padding: 0.2em 1.2em 0.6em;
  margin-top: 2em; }

/* releases */
.release { background: var(--paper); border: 1px solid var(--grey); border-radius: 6px; padding: 0.2em 1.2em 0.6em;
  margin: 1em 0; }
.release h2 { margin: 0.6em 0 0; }
.badge { font-size: 0.6em; vertical-align: middle; background: var(--sun); color: #222233; border-radius: 3px;
  padding: 0.1em 0.5em; }

/* the manual */
.manual { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2em; max-width: 1180px; margin: 0 auto;
  padding: 1.2em 16px 2em; }
.manual .doc { max-width: 820px; padding: 0; margin: 0; }
.side { font-size: 0.92em; }
.side details { position: sticky; top: 3.4em; max-height: calc(100vh - 4em); overflow: auto; background: var(--paper);
  border: 1px solid var(--grey); border-radius: 6px; padding: 0.4em 0.9em; }
.side summary { font-weight: 700; cursor: pointer; }
.side ul { list-style: none; padding: 0; margin: 0.2em 0 0.6em; }
.side li a { text-decoration: none; }
.side p { margin: 0.6em 0 0.1em; }
.doc figure { margin: 1em 0; }
.doc figure img { width: 640px; }
.table { overflow-x: auto; margin: 1em 0; }
table { border-collapse: collapse; width: 100%; background: var(--paper); font-size: 0.95em; }
th, td { border: 1px solid var(--band); padding: 0.35em 0.6em; text-align: left; vertical-align: top; }
th { background: var(--band); }
blockquote { margin: 1em 0; padding: 0.2em 1em; border-left: 4px solid var(--sage); background: var(--paper); }

footer { border-top: 1px solid var(--grey); background: var(--mist); color: var(--muted); font-size: 0.88em;
  padding: 0.6em 16px; text-align: center; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6em; }
  .hero { grid-template-columns: 1fr; gap: 1.2em; }
  .manual { grid-template-columns: 1fr; gap: 1em; }
  .side details { position: static; max-height: none; }
  .side details:not([open]) { padding-bottom: 0.4em; }
}
