/* stitch.g-apps.in: Stitch's look (ui/theme/Theme.kt) for the web: warm near-black, one coral accent */
:root {
  color-scheme: dark light;
  --bg: #0F0E0D; --panel: #1A1817; --raised: #252220; --text: #F4EFEA; --text2: #C9C1B9; --muted: #A8A099;
  --line: rgba(255, 255, 255, 0.08); --accent: #FF7A59; --accent-text: #FF7A59; --on-accent: #2A0F07;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #FAF8F6; --panel: #FFFFFF; --raised: #F3EFEB; --text: #1C1917; --text2: #57524D; --muted: #736D67;
    --line: rgba(0, 0, 0, 0.08); --accent-text: #B8442A;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
main, header, footer { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header { display: flex; align-items: center; gap: 12px; padding-top: 28px; padding-bottom: 8px; }
header a { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
header nav { margin-left: auto; display: flex; gap: 18px; font-size: 15px; }
header nav a { font-weight: 400; color: var(--text2); }
header nav a[aria-current] { color: var(--text); font-weight: 600; }
.mark { width: 30px; height: 30px; flex: none; border-radius: 8px; }
h1 { font-size: 38px; line-height: 44px; letter-spacing: -0.02em; margin: 36px 0 10px; }
h1 em { font-style: normal; color: var(--accent-text); }
h2 { font-size: 21px; line-height: 27px; letter-spacing: -0.01em; margin: 40px 0 8px; }
h3 { font-size: 16px; margin: 22px 0 4px; }
p, li { color: var(--text2); }
strong { color: var(--text); font-weight: 600; }
a { color: var(--accent-text); }
.lede { font-size: 19px; line-height: 1.55; color: var(--text2); margin: 0 0 24px; }
.updated { color: var(--muted); font-size: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 16px 0; }
.card p:first-child { margin-top: 0; } .card p:last-child { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } h1 { font-size: 30px; line-height: 36px; } }
.grid .card { margin: 0; }
.grid h3 { margin-top: 0; }
.badge { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; text-decoration: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; color: var(--text2); }
th { color: var(--muted); font-weight: 600; font-size: 13px; border-top: 0; }
td:first-child { color: var(--text); font-weight: 500; }
details { border-top: 1px solid var(--line); padding: 10px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--text); }
footer { margin-top: 56px; padding-top: 20px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
