/* DuoFlick: the icon's palette. Sand, charcoal Duo, gray keys, orange for the key being pressed. */
:root {
  --sand: #efe8df;
  --sand-deep: #ddd2c4;
  --ink: #232428;
  --muted: #6d675f;
  --device: #2e3035;
  --device-edge: #1c1d21;
  --key: #50535b;
  --key-fn: #43464d;
  --press: #ff8a3d;
  --rule: rgba(35, 36, 40, 0.12);
  --link: #8a4a12;
  --focus: var(--ink);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sand: #16171a;
    --sand-deep: #0d0e10;
    --ink: #ece7e0;
    --muted: #9d978e;
    --device: #3a3d44;
    --device-edge: #26282d;
    --key: #6a6e77;
    --key-fn: #575a62;
    --rule: rgba(236, 231, 224, 0.12);
    --link: #ffb27a;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--sand);
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 1;
  line-break: strict;
  word-break: auto-phrase;
}

h1, h2 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* A phrase that should not be split across lines. */
.nb { display: inline-block; }

a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: from-font; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1040px, calc(100% - 32px)); margin: 0 auto; }

/* Header: the app's own icon and name, nothing else. */
.site-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: 0; }
.brand img { width: 32px; height: 32px; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); margin-top: 96px; padding: 28px 0 40px; font-size: 0.875rem; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 10px; }
.site-foot a { color: var(--ink); text-decoration: none; }
@media (hover: hover) {
  .site-foot a:hover { text-decoration: underline; }
}

/* Document pages (privacy, support) */
.doc { width: min(680px, calc(100% - 32px)); margin: 24px auto 0; }
.doc h1 { font-size: clamp(1.875rem, 5vw, 2.5rem); line-height: 1.3; font-weight: 900; letter-spacing: -0.01em; margin: 24px 0 8px; }
.doc .updated { color: var(--muted); font-size: 0.875rem; margin: 0 0 40px; }
.doc h2 { font-size: 1.3125rem; line-height: 1.5; font-weight: 700; margin: 44px 0 8px; }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul, .doc ol { padding-inline-start: 1.4em; margin: 0 0 12px; }
.doc li::marker { color: var(--muted); }
.doc details { border-top: 1px solid var(--rule); padding: 14px 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--rule); }
.doc summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.doc summary::-webkit-details-marker { display: none; }
/* The sign is only a visual cue; details already announces whether it is open. */
.doc summary::after { content: "+"; content: "+" / ""; color: var(--muted); font-weight: 500; }
.doc details[open] summary::after { content: "−"; content: "−" / ""; }
.doc details p { margin: 10px 0 0; color: var(--ink); }
.doc .contact { font-size: 1.1875rem; font-weight: 700; }
