/* Microfacet's look, shared by the pages (About, Pricing, Privacy; the homepage carries
   its own copy of the tokens). Load it after the page's own <style>: the tokens win by
   specificity, the rest by order.

   Two looks: day (shoji paper, hinoki, indigo) and night (the same screen lit from behind,
   like a lantern). The look follows the visitor's clock, night from 7 pm to 7 am; the
   lightbulb in the top bar overrides it until the clock next turns (look.js). */

@font-face { font-family: "Shippori Mincho"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/shippori-mincho-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Shippori Mincho"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/shippori-mincho-latin-700.woff2") format("woff2"); }

:root {
  --display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --look-ms: .9s;
}

:root[data-look="day"],
:root:not([data-look]) {
  color-scheme: light;
  --bg: #e8e5dc;
  --surface: #f2f0ea;
  --surface-2: #ebe7de;
  --line: #cdc6b6;
  --text: #22211e;
  --soft: #46443e;
  --muted: #747066;
  --brass: #9a774a;
  --accent: #2c3e5a;
  --accent-ink: #f3f1ea;
  --tag-bg: rgb(242 240 234 / .94);
}

:root[data-look="night"] {
  color-scheme: dark;
  --bg: #1c1916;
  --surface: #25211d;
  --surface-2: #2c2722;
  --line: #3b342c;
  --text: #f1e6d2;
  --soft: #d3c7b2;
  --muted: #a09584;
  --brass: #e9a752;
  --accent: #e9a752;
  --accent-ink: #1c1916;
  --tag-bg: rgb(37 33 29 / .94);
}

body {
  transition: background-color var(--look-ms) ease, color var(--look-ms) ease;
}

:focus-visible { outline-color: var(--accent); }

/* Headings in Mincho; small labels in plain sentence case. */
h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { line-height: 1.05; }
.eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
  color: var(--muted);
}

/* The top bar sits on a rule across the page. */
.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  transition: background-color var(--look-ms) ease, border-color var(--look-ms) ease;
}
.logo { color: var(--text); }
.nav .pill { border-radius: 3px; }

/* Panels: quiet, nearly square. */
.card, .price-part, .facets figure, .minimum { border-radius: 3px; }
.card .more::after { content: none; }

/* Buttons */
.button {
  border-radius: 2px;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.button:hover { background: var(--accent); filter: brightness(1.06); }
.button.ghost { background: transparent; color: var(--text); border-color: var(--text); }
.button.arrow::after { content: none; }

/* The lightbulb: dark mode on and off. */
.bulb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 2px 0 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
  pointer-events: auto;
  transition: color .3s ease;
}
.bulb:hover { color: var(--text); }
.bulb svg { width: 22px; height: 22px; overflow: visible; }
.bulb .glass { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; transition: fill .4s ease, stroke .4s ease; }
.bulb .base { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.bulb .rays { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; opacity: 0; transition: opacity .4s ease; }
.bulb[aria-pressed="true"] { color: var(--text); }
.bulb[aria-pressed="true"] .glass { fill: var(--accent); stroke: var(--accent); }
.bulb[aria-pressed="true"] .rays { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  body, .topbar, .bulb, .bulb .glass, .bulb .rays { transition: none; }
}

/* Narrow phones: the logo, the bulb and Contact. */
@media (max-width: 440px) {
  .nav a:not(.pill) { display: none; }
}
