/* Piece8's site: the app's own dark look (one theme on purpose: the app has only this one). */
:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --surface: #18181e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --muted: rgba(255, 255, 255, 0.62);
  --accent: #ff6b45;
  --accent-2: #ff4d59;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
nav.top, main, footer { max-width: 720px; margin: 0 auto; }
nav.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
nav.top .brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
nav.top .links { display: flex; gap: 20px; font-size: 15px; }
nav.top .links a { color: var(--muted); }
nav.top .links a[aria-current="page"] { color: var(--text); }
main { padding: 40px 0 56px; }
.hero { text-align: center; padding: 24px 0 36px; }
.hero img { width: 128px; height: 128px; }
.hero h1 {
  font-size: 48px; line-height: 1.05; margin: 12px 0 12px; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ff8c4d, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 20px; margin: 0 auto; max-width: 30em; text-wrap: balance; }
h1 { font-size: 34px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: 20px; margin: 32px 0 8px; }
p { margin: 0 0 14px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.lead { font-size: 19px; }
.features { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 10px; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.features strong { color: var(--accent); font-weight: 600; }
.note { color: var(--muted); font-size: 15px; border-left: 3px solid var(--accent); padding-left: 14px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin: 12px 0; }
details[open] { padding-bottom: 6px; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "–"; }
.mail { word-break: break-all; }
.mail.big { font-size: 20px; font-weight: 600; }
footer { padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
@media (max-width: 480px) {
  .hero h1 { font-size: 40px; }
  h1 { font-size: 28px; }
}
