:root {
  --bg: #fbf8fd;
  --surface: #ffffff;
  --text: #241a2e;
  --muted: #5e5468;
  --line: #e7ddef;
  --accent: #b0127a;
  --accent-strong: #7b1fd6;
  --brand-a: #ff1493;
  --brand-b: #7b1fd6;
  --radius: 18px;
  color-scheme: light;
}

body.gatepost {
  --bg: #f6faf6;
  --line: #d9e8dc;
  --accent: #1c6b3d;
  --accent-strong: #145530;
  --brand-a: #2a8c52;
  --brand-b: #6bb84c;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17121c;
    --surface: #221a29;
    --text: #f3edf7;
    --muted: #b9adc4;
    --line: #3a2f45;
    --accent: #ff6ac1;
    --accent-strong: #c79bff;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) body.gatepost {
    --bg: #121a15;
    --surface: #1a251e;
    --line: #2c3d31;
    --accent: #7fd69b;
    --accent-strong: #a9e6a0;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
a:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.site-header {
  background: linear-gradient(120deg, var(--brand-a), var(--brand-b));
  color: #fff;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 14px;
  padding-top: 18px; padding-bottom: 18px;
}
.site-header a { color: #fff; text-decoration: none; font-weight: 700; }
.site-header img { border-radius: 12px; image-rendering: pixelated; }
.site-header nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.site-header nav a { font-weight: 600; opacity: 0.95; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; }

main { padding: 36px 0 56px; }

h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 23px; line-height: 1.25; margin: 40px 0 10px; }
h3 { font-size: 18px; margin: 26px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }

.lead { font-size: 20px; color: var(--muted); margin-bottom: 28px; }
.meta { color: var(--muted); font-size: 15px; }

.hero { display: flex; gap: 22px; align-items: center; margin-bottom: 10px; }
.hero img { width: 112px; height: 112px; border-radius: 26px; flex: none; box-shadow: 0 6px 20px rgb(0 0 0 / 0.12); }
.hero img.pixel { image-rendering: pixelated; border-radius: 50%; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 18px 0;
}
.app-card { display: flex; gap: 18px; align-items: flex-start; }
.app-card img { width: 72px; height: 72px; border-radius: 17px; flex: none; }
.app-card h2 { margin: 0 0 4px; font-size: 21px; }
.app-card p { margin-bottom: 8px; }

.badge {
  display: inline-block; font-size: 13px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.contact {
  display: inline-block; margin-top: 4px; padding: 10px 18px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-weight: 700; text-decoration: none;
}
.contact:hover { background: var(--accent-strong); color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contact { color: #14101a; }
}

details { border-top: 1px solid var(--line); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; }
details > *:not(summary) { margin-top: 10px; }

table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 18px; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 650; }
.table-scroll { overflow-x: auto; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { padding-top: 22px; padding-bottom: 30px; display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero img { width: 88px; height: 88px; }
  .site-header nav { margin-left: 0; width: 100%; }
  .site-header .wrap { flex-wrap: wrap; }
  .app-card { flex-direction: column; }
}
