/* trykide.com. Colours follow apps/apple/Kide/Theme.swift: one blue, neutral bases, no purple. */
:root {
  color-scheme: light dark;
  --bg: #f3f4f6;
  --fg: #111214;
  --muted: #5f6368;
  --surface: rgba(255, 255, 255, 0.72);
  --border: rgba(0, 0, 0, 0.06);
  --accent: #007fff;
  --on-accent: #fff;
  --glow-a: rgba(125, 184, 255, 0.42);
  --glow-b: rgba(169, 212, 255, 0.32);
  --code-bg: rgba(0, 0, 0, 0.05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050505;
    --fg: #f2f3f5;
    --muted: #9aa0a6;
    --surface: rgba(255, 255, 255, 0.065);
    --border: rgba(255, 255, 255, 0.08);
    --accent: #3a9bff;
    --glow-a: rgba(10, 99, 255, 0.28);
    --glow-b: rgba(30, 136, 255, 0.14);
    --code-bg: rgba(255, 255, 255, 0.08);
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  font:
    17px / 1.6 -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--fg);
  background:
    radial-gradient(60rem 40rem at 10% -10%, var(--glow-a), transparent 70%),
    radial-gradient(40rem 30rem at 95% 15%, var(--glow-b), transparent 70%), var(--bg);
  background-attachment: fixed;
}
a {
  color: var(--accent);
  text-underline-offset: 2px;
}
img {
  max-width: 100%;
}

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

main {
  padding: 24px 0 64px;
}
h1 {
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
}
h3 {
  font-size: 18px;
  margin: 24px 0 6px;
}
p,
li {
  margin: 0 0 12px;
}
ul,
ol {
  padding-left: 22px;
}
.muted {
  color: var(--muted);
}
.lede {
  font-size: 20px;
  color: var(--muted);
  max-width: 36em;
}

.hero {
  text-align: center;
  padding: 40px 0 16px;
}
.hero img {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 12px 40px rgba(0, 80, 200, 0.25);
}
.hero h1 {
  margin-top: 20px;
}
.hero .lede {
  margin: 0 auto;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
}
.button.secondary {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
}
.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.tile h3 {
  margin-top: 0;
}
.tile p:last-child {
  margin-bottom: 0;
}

code,
pre {
  font:
    14.5px / 1.5 ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
}
code {
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
pre {
  background: var(--code-bg);
  padding: 14px 16px;
  border-radius: 14px;
  overflow-x: auto;
}
pre code {
  background: none;
  padding: 0;
}

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

footer.site {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  font-size: 14.5px;
  color: var(--muted);
}
footer.site nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
footer.site a {
  color: var(--muted);
}

/* Last: its link rules are the most specific. */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
header.site .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 650;
  font-size: 19px;
}
header.site .brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
header.site nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
header.site nav a {
  color: var(--muted);
  text-decoration: none;
}
header.site nav a:hover,
header.site nav a[aria-current="page"] {
  color: var(--fg);
}
