/* The website's About page (web/about/), built by Scripts/build-web-about.py.
   Same look as web/index.html and the manual: white page, Baloo 2 for the
   name, quince red. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f6f5f1;
  --text: #222222;
  --muted: #666666;
  --rule: #e4e2da;
  --accent: #e04325;
  --accent-soft: #cbbe1e;
  --code-bg: #f1efe8;
  --text-width: 40rem;
  --figure-width: 68rem;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.masthead {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 3.5rem; padding: 0 var(--gutter);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex; align-items: center; gap: .5rem;
  font-family: "Baloo 2", -apple-system, sans-serif; font-weight: 700;
  font-size: 1.5rem; color: var(--accent);
}
.brand:hover { text-decoration: none; }
.brand img { width: 2rem; height: 2rem; }
.masthead nav a { color: var(--text); font-weight: 500; }

/* Text in a readable column; pictures wider than the text where there is room. */
.page {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [wide-start] minmax(0, calc((var(--figure-width) - var(--text-width)) / 2))
    [text-start] min(var(--text-width), calc(100% - 2 * var(--gutter))) [text-end]
    minmax(0, calc((var(--figure-width) - var(--text-width)) / 2)) [wide-end]
    minmax(var(--gutter), 1fr) [full-end];
  padding-bottom: 4rem;
}
.page > * { grid-column: text; }

.hero { text-align: center; padding: 3rem 0 1.5rem; }
.hero img { width: min(40vw, 180px); height: auto; }
.hero h1 {
  font-family: "Baloo 2", -apple-system, sans-serif; font-size: 3.5rem; line-height: 1;
  color: var(--accent); margin: .75rem 0 .5rem;
}
.hero .subtitle { font-size: 1.2rem; margin: 0; }
.hero .author { color: var(--muted); margin: .25rem 0 0; }

h2 {
  font-size: 1.5rem; line-height: 1.25; margin: 3rem 0 1rem;
  padding-bottom: .4rem; border-bottom: 2px solid var(--accent);
}
p { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin: .4rem 0; }
li::marker { color: var(--accent-soft); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
       background: var(--code-bg); padding: .05em .3em; border-radius: 3px; }

figure.shot { grid-column: wide; margin: 1.5rem 0 2.5rem; text-align: center; }
figure.shot a { display: inline-block; width: var(--w, 100%); max-width: 100%; }
figure.shot img {
  display: block; width: 100%; height: auto;
  border-radius: 8px; box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}
figure.shot figcaption {
  font-size: .92rem; color: var(--muted); line-height: 1.5;
  max-width: var(--text-width); margin: .75rem auto 0; text-align: left;
}

.more { margin-top: 3rem; text-align: center; font-size: 1.1rem; font-weight: 600; }

@media (max-width: 700px) {
  body { font-size: 1rem; }
  .hero { padding: 2rem 0 1rem; }
  .hero img { width: 120px; }
  .hero h1 { font-size: 2.75rem; }
  h2 { font-size: 1.3rem; margin-top: 2.25rem; }
  /* Edge to edge on a phone: every pixel of a screenshot counts there. */
  figure.shot { grid-column: full; margin: 1.25rem 0 2rem; }
  figure.shot a { width: 100%; }
  figure.shot img { border-radius: 0; box-shadow: none; }
  figure.shot figcaption { padding: 0 var(--gutter); }
}

/* Legal notice and privacy, at the foot of the About and beta pages. */
.site-footer {
  display: flex; justify-content: center; gap: 1.5rem;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--rule);
  font-size: .9rem;
}
.site-footer a { color: var(--muted); }
