/* The classic style, from sachahjkl/classic-site-template (theme/classic.css): a page about one screen across, a header
   line, a nav line of plain links, a text column and a news column, Verdana for the text and Trebuchet for the headings,
   blue underlined links that turn purple once visited, thin grey rules; light and dark from prefers-color-scheme. */

/* tokens */
:root {
  --bg: #ffffff;
  --fg: #1b1b1b;
  --muted: #5a5650;
  --rule: #b9b3aa;
  --link: #0645ad;
  --link-visited: #5b2a86;
  --accent: #c2560f;
  --code-bg: #f3f1ee;
  --font-body: Verdana, Geneva, "DejaVu Sans", sans-serif;
  --font-head: "Trebuchet MS", "Lucida Grande", "DejaVu Sans", sans-serif;
  --font-mono: "Courier New", "DejaVu Sans Mono", monospace;
  --gutter: 16px;
  --column: 62rem;
  --measure: 68ch;
  --news-width: 17rem;   /* the columns stack under 760px (a media query cannot read a variable) */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161514; --fg: #e8e4de; --muted: #a59f96; --rule: #4a4640;
    --link: #8ab4f8; --link-visited: #c58af9; --accent: #f08a3c; --code-bg: #24221f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161514; --fg: #e8e4de; --muted: #a59f96; --rule: #4a4640;
  --link: #8ab4f8; --link-visited: #c58af9; --accent: #f08a3c; --code-bg: #24221f;
  color-scheme: dark;
}

/* the page */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 13px/1.5 var(--font-body);
  padding-inline: var(--gutter);
  padding-block: 18px 28px;
  overflow-wrap: break-word;
}
.page { max-width: var(--column); margin: 0 auto; }
a { color: var(--link); }
a:visited { color: var(--link-visited); }
a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
img, svg, video { max-width: 100%; height: auto; }
code, pre, kbd { font-family: var(--font-mono); }
code { font-size: 0.95em; background: var(--code-bg); padding: 0 0.2em; }
pre { background: var(--code-bg); border: 1px solid var(--rule); padding: 0.5rem 0.7rem; overflow-x: auto; line-height: 1.35; }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--rule); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--gutter); top: 4px; background: var(--bg); padding: 0.2rem 0.5rem; z-index: 10; }

/* the header line, the nav line and the footer line */
.masthead { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.masthead img { width: 48px; height: 48px; }
.masthead .name { font: bold 2.1rem/1 var(--font-head); letter-spacing: -0.01em; color: var(--fg); text-decoration: none; }
.masthead .tagline { font-style: italic; color: var(--muted); }
nav.site { margin-top: 0.6rem; padding-block: 0.35rem; border-block: 1px solid var(--rule); }
nav.site a { white-space: nowrap; }
nav.site a[aria-current="page"] { color: var(--fg); font-weight: bold; text-decoration: none; }
nav.site .sep { color: var(--muted); padding-inline: 0.25rem; }
.foot { margin-top: 1.4rem; padding-top: 0.4rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.92em; }

/* text */
main { display: block; min-width: 0; margin-top: 1.1rem; }
h1, h2, h3, h4 { font-family: var(--font-head); text-wrap: balance; }
h1 { font-size: 1.45rem; font-weight: normal; margin: 0 0 0.5rem; }
h2 { font-size: 1.15rem; margin: 1.4rem 0 0.35rem; }
h3 { font-size: 1rem; margin: 1rem 0 0.3rem; }
p { margin: 0 0 0.7rem; max-width: var(--measure); }
ul, ol { margin: 0 0 0.7rem; padding-left: 1.3rem; max-width: var(--measure); }
li + li { margin-top: 0.2rem; }
blockquote { margin: 0 0 0.7rem; padding-left: 0.8rem; border-left: 3px solid var(--rule); color: var(--muted); }
table { border-collapse: collapse; font-variant-numeric: tabular-nums; margin-bottom: 0.7rem; }
th, td { text-align: left; padding: 0.15rem 0.9rem 0.15rem 0; vertical-align: baseline; }
th { border-bottom: 1px solid var(--rule); font-family: var(--font-head); }
tbody tr + tr td { border-top: 1px solid var(--rule); }
.table-box { overflow-x: auto; max-width: 100%; }

/* the facts table: the number right-aligned, its unit, what it is */
table.facts tbody tr + tr td { border-top: 0; }
table.facts td.n { text-align: right; padding-right: 0.3rem; white-space: nowrap; font-weight: bold; font-family: var(--font-mono); }
table.facts td.u { color: var(--muted); white-space: nowrap; }

/* the home: a text column and a news column */
.columns { display: grid; grid-template-columns: minmax(0, 1fr) var(--news-width); gap: 2rem; margin-top: 1.1rem; }
.columns main { margin-top: 0; }
.columns aside { border-left: 1px solid var(--rule); padding-left: 1.2rem; min-width: 0; }
.columns aside h2 { font-size: 1.35rem; margin-top: 0; letter-spacing: 0.04em; text-transform: uppercase; }
.download { margin: 0.2rem 0 0.9rem; }
.download a { font-weight: bold; }
.download .small { color: var(--muted); }
.item { margin-bottom: 0.9rem; }
.date { font-family: var(--font-mono); color: var(--accent); font-weight: bold; }
.all { color: var(--muted); }
@media (max-width: 760px) {
  .columns { grid-template-columns: minmax(0, 1fr); }
  .columns aside { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 0.6rem; }
}

/* the news page: one entry under the other, a rule between them */
.news-list .item { padding-top: 0.4rem; border-top: 1px solid var(--rule); max-width: var(--measure); }

/* the screenshots: a grid of captures, each a link to the full picture */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem; margin: 0.6rem 0 0.7rem; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; border: 1px solid var(--rule); }
.shots figcaption { color: var(--muted); font-size: 0.92em; margin-top: 0.2rem; }
.lead img { display: block; width: 100%; border: 1px solid var(--rule); margin-bottom: 0.3rem; }
.lead { margin: 0 0 0.9rem; }
.lead figcaption { color: var(--muted); font-size: 0.92em; }
