:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #15181d;
  --muted: #5c6470;
  --line: #e3e6eb;
  --accent: #23897d;
  --accent-soft: #e3f4f1;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #161a21;
    --text: #e9edf2;
    --muted: #9aa3af;
    --line: #262c36;
    --accent: #4cc2b3;
    --accent-soft: #15302d;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

header { padding: 56px 0 28px; }
header h1 { margin: 0; font-size: 34px; letter-spacing: -.02em; }
header p { margin: 6px 0 0; color: var(--muted); }
header .links { margin-top: 14px; display: flex; gap: 18px; flex-wrap: wrap; }

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.feature .shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #0e1116; }
.feature .body { padding: 26px 28px 28px; }
.feature .title { display: flex; align-items: center; gap: 16px; }
.feature .title img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.feature h2 { margin: 0; font-size: 26px; letter-spacing: -.01em; }
.feature .tag { color: var(--muted); font-size: 15px; }
.feature p { margin: 16px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.chips li { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 3px 12px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--line); color: var(--text); background: var(--surface);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }

h3.section { margin: 48px 0 16px; font-size: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  color: var(--text);
}
.card:hover { border-color: var(--accent); text-decoration: none; }
.card strong { font-size: 16px; word-break: break-word; }
.card span { color: var(--muted); font-size: 14px; }
.card .lang { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--muted); }
.card .lang i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 0; }

footer { padding: 44px 0 56px; color: var(--muted); font-size: 14px; }

/* Simple text pages */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 32px; margin-bottom: 24px; }
.doc h1 { margin-top: 0; font-size: 28px; }
.doc h2 { font-size: 19px; margin-top: 28px; }
.doc .date { color: var(--muted); margin-top: -8px; }
.back { display: inline-block; margin: 32px 0 16px; }

@media (max-width: 560px) {
  header { padding-top: 36px; }
  header h1 { font-size: 28px; }
  .feature .body, .doc { padding: 20px; }
  .feature h2 { font-size: 22px; }
}
