/* One stylesheet for the brochure site.
 *
 * The backoffice's palette, kept deliberately: white, #111 for text, #666 for a
 * quiet second line, #eee for a rule. The two surfaces are one site now -- this
 * at the root and the backoffice under /bo -- and somebody who follows a link
 * between them should not feel the seam.
 *
 * Dark is honoured here and not there, and that is not an inconsistency worth
 * fixing. The backoffice is a tool opened in daylight by one person who chose
 * to open it; these pages are opened by strangers, on their own phones, at
 * whatever hour, and one of them is a privacy policy somebody was sent to from
 * a store listing.
 */

:root {
  color-scheme: light dark;
  --paper: #fff;
  --ink: #111;
  --quiet: #666;
  --rule: #eee;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111;
    --ink: #f4f4f4;
    --quiet: #999;
    --rule: #2a2a2a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--ink);
}

/* A page of prose, at the width the backoffice reads its own panels at. */
.panel {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.panel h1 {
  margin: 0;
  font-size: 2rem;
}

.panel h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.125rem;
}

.panel p {
  margin: 0 0 0.75rem;
}

.muted {
  color: var(--quiet);
}

/* The one page that is not prose: a name, a rule and two lines, centred in
   whatever screen it lands in. */
.holding {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.holding main {
  max-width: 26rem;
  text-align: center;
}

.holding h1 {
  margin: 0;
  font-size: clamp(2.5rem, 12vw, 4rem);
  letter-spacing: -0.02em;
}

.holding p {
  margin: 0 0 0.75rem;
}

.rule {
  width: 3rem;
  height: 1px;
  margin: 1.5rem auto;
  border: 0;
  background: var(--rule);
}

.small {
  font-size: 0.9375rem;
}
