:root {
  /* Nanoko brand tokens (nanoko-brand/colors/nanoko-colors.css) */
  --bg: #F2F2F5;
  --surface: #FFFFFF;
  --text: #17171F;
  --muted: #6B6B78;
  --line: #E3E3E9;
  --accent: #FF6B3D;
  --accent-ink: #C2410C;
  --shadow: 0 1px 2px rgba(23, 23, 31, .04), 0 8px 24px rgba(23, 23, 31, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171F;
    --surface: #22222C;
    --text: #FFFFFF;
    --muted: #A0A0AE;
    --line: #2E2E3A;
    --accent-ink: #FF8A63;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent-ink); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main { flex: 1 0 auto; }
/* Header and footer span the window; only the content column is centered. */
.top .wrap, .foot .wrap { max-width: none; padding: 0 clamp(16px, 4vw, 48px); }

.top { position: sticky; top: 0; z-index: 10; padding: 14px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { display: block; height: 26px; width: auto; }
.lang { font-size: 14px; font-weight: 600; text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.lang:hover { border-color: var(--accent); }

.hero { padding: 40px 0 28px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; max-width: 22ch; text-wrap: balance; }
.hero p { color: var(--muted); font-size: 18px; margin: 0; max-width: 56ch; }

.apps { padding: 12px 0 48px; }
.apps h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style: none; margin: 0; padding: 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  height: 100%;
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.card:hover, .card:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.card img { width: 60px; height: 60px; border-radius: 14px; flex: none; }
.card h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.card p { margin: 2px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; }

.foot { border-top: 1px solid var(--line); padding: 24px 0 36px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }

.notfound { padding: 56px 0 24px; }
.notfound h1 { font-size: 34px; margin: 0 0 8px; }
.notfound p { color: var(--muted); margin: 0 0 6px; }
