:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #1c1f1d;
  --muted: #5d645f;
  --line: #e4e6e1;
  --accent: #1f6f5c;
  --accent-ink: #ffffff;
  --radius: 14px;
  --max: 960px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121412;
    --surface: #1a1d1a;
    --text: #ecefeb;
    --muted: #9aa39c;
    --line: #2a2e2a;
    --accent: #5fc2a6;
    --accent-ink: #0e1210;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand { font-weight: 700; letter-spacing: .01em; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.brand span { color: var(--accent); }
nav.main { display: flex; align-items: center; gap: 20px; font-size: .95rem; }
nav.main a { color: var(--muted); text-decoration: none; }
nav.main a:hover { color: var(--text); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a, .lang b { padding: 3px 11px; font-size: .82rem; font-weight: 600; }
.lang b { background: var(--accent); color: var(--accent-ink); }
.lang a { color: var(--muted); }
@media (max-width: 560px) { nav.main .link { display: none; } }

.hero { padding: 88px 0 64px; }
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  line-height: 1.15; margin: 0 0 20px; letter-spacing: -.02em;
}
.hero p { font-size: 1.2rem; color: var(--muted); margin: 0 0 28px; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 11px 22px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.btn:hover { opacity: .9; }

section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 1.6rem; margin: 0 0 8px; letter-spacing: -.01em; }
section .lead { color: var(--muted); margin: 0 0 32px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 0; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; flex: 1; }
.icon {
  position: relative; align-self: flex-start; width: 56px; height: 56px; margin-bottom: 4px;
  border-radius: 14px; overflow: hidden; background: var(--line);
  display: grid; place-items: center;
}
.icon::before { content: attr(data-letter); font-weight: 700; font-size: 1.4rem; color: var(--accent); }
.icon.wide { width: 84px; background: transparent; }
.icon.wide::before { content: none; }
.icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tag {
  align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
}
/* The "Open" button at the bottom of an app or reference card. */
.btn-card { align-self: flex-start; margin-top: 6px; padding: 8px 20px; font-size: .95rem; }

/* Text runs the full width of the page column (like the cards below it). */
.about p { margin: 0 0 14px; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.brand { display: inline-flex; align-items: center; }
.brand img { height: 38px; width: auto; display: block; }
@media (prefers-color-scheme: dark) {
  .brand img { background: #fff; border-radius: 8px; padding: 3px 8px; }
}
