/* White on black, like the app. No web fonts, scripts or trackers. */
:root {
  color-scheme: dark;
  --ground: #000;
  --text: #f2f2f2;
  --muted: #a3a3a8;
  --line: #2c2c30;
  --surface: #121214;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  padding-inline: 20px;
}

main { max-width: 40rem; margin: 0 auto; padding-block: 32px 64px; }

nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; margin-bottom: 32px; }
nav a[aria-current="page"] { color: var(--text); text-decoration: none; font-weight: 600; }

a { color: var(--text); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.mark { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--text); opacity: 0.85; margin-bottom: 20px; }

h1 { font-size: 26px; line-height: 1.35; margin: 0 0 12px; text-wrap: balance; }
h2 { font-size: 19px; margin: 40px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
h3 { font-size: 16px; margin: 24px 0 6px; }
p, ul, dl { margin: 0 0 12px; }
ul { padding-left: 1.3em; }
.lead { color: var(--muted); }
.note { color: var(--muted); font-size: 14px; }

dl.usage { display: grid; grid-template-columns: minmax(8em, 13em) 1fr; gap: 10px 20px; }
dl.usage dt { font-weight: 600; }
dl.usage dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) {
  dl.usage { grid-template-columns: 1fr; gap: 2px; }
  dl.usage dd { margin-bottom: 12px; }
}

details { border-bottom: 1px solid var(--line); padding-block: 12px; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--muted); }

.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.contact .address { font-size: 18px; font-weight: 600; word-break: break-all; user-select: all; }

footer { margin-top: 48px; color: var(--muted); font-size: 13px; }

/* Product pages (/ and /ja/app): wider, with a hero and
   a row of screenshots that scrolls sideways on its own. */
main.product { max-width: 60rem; }
.hero { text-align: center; padding-block: 24px 8px; }
.hero .icon { border-radius: 20px; box-shadow: 0 0 0 1px var(--line); }
.eyebrow { margin: 18px 0 4px; color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }
.hero h1 { font-size: clamp(40px, 9vw, 72px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; }
.hero .lead { max-width: 36rem; margin: 0 auto 20px; font-size: 17px; }
.badge { margin: 20px 0 8px; text-align: center; }
.badge img { height: 54px; width: auto; vertical-align: middle; }
.hero .note { margin: 0; }

.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none;
         padding: 8px 0 16px; margin: 24px 0 8px; }
.shots li { flex: 0 0 auto; scroll-snap-align: center; }
.shots img { display: block; width: min(62vw, 220px); height: auto; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 4px 28px; }
.features h3 { margin-top: 12px; }
.features p { color: var(--muted); }

.more { margin-top: 16px; }
.made-by { margin-top: 40px; text-align: center; color: var(--muted); }
.sibling { margin-top: 32px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px;
           background: var(--surface); font-size: 14px; color: var(--muted); }
.sibling p { margin: 0; }
