/* Блог Dale > Crea — цвета и шрифт по брендбуку (CLAUDE.md, «Брендбук Dale Crea Studio») */
:root {
  --blue: #4f46ff;
  --black: #0b0d12;
  --panel: #1a1d23;
  --soft: #f2f3f5;
  --white: #ffffff;
  --ink: #151821;
  --muted: #5b6270;
  --line: rgba(11, 13, 18, 0.12);
  --max: 1080px;
  --narrow: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

a { color: var(--blue); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--max), 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(var(--narrow), 100% - 40px); }

/* --- шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 18, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { color: var(--white); font-weight: 700; font-size: 20px; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--blue); }
.logo em { font-style: normal; font-weight: 500; color: #aeb5c2; margin-left: 8px; font-size: 15px; }
.langs { display: flex; gap: 4px; }
.langs a {
  color: #aeb5c2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 9px;
  border-radius: 8px;
}
.langs a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.langs a[aria-current] { color: var(--white); background: var(--blue); }

/* --- главная блога */
.hero { padding: 56px 0 24px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(36px, 6vw, 56px); line-height: 1.1; color: var(--black); }
.hero p { margin: 0; color: var(--muted); font-size: 20px; max-width: 640px; }

.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 24px 0 64px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.card h2 { margin: 4px 0 8px; font-size: 22px; line-height: 1.3; }
.card h2 a { color: var(--black); text-decoration: none; }
.card h2 a:hover { color: var(--blue); }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; font-size: 16px; }
.empty { color: var(--muted); padding: 24px 0 64px; }

.meta { color: var(--muted); font-size: 14px; font-weight: 500; margin: 0; }

.langs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 24px 0 64px; }
.lang-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
}
.lang-card:hover { border-color: var(--blue); }
.lang-card strong { font-size: 20px; color: var(--black); }
.lang-card span { font-size: 15px; color: var(--muted); }

/* --- пост */
.post { padding: 40px 0 64px; }
.back { display: inline-block; font-size: 15px; font-weight: 500; text-decoration: none; margin-bottom: 24px; }
.post h1 { margin: 0 0 12px; font-size: clamp(30px, 5vw, 44px); line-height: 1.15; color: var(--black); }
.note {
  margin: 20px 0 0;
  padding: 12px 16px;
  background: #e8e7ff;
  border-radius: 10px;
  font-size: 15px;
}
.content { margin-top: 32px; }
.content h2 { font-size: 28px; line-height: 1.25; margin: 48px 0 12px; color: var(--black); }
.content h3 { font-size: 21px; margin: 32px 0 8px; color: var(--black); }
.content p, .content ul, .content ol { margin: 0 0 20px; }
.content li { margin-bottom: 6px; }
.content img { max-width: 100%; height: auto; border-radius: 12px; }
.content blockquote {
  margin: 24px 0;
  padding: 4px 20px;
  border-left: 4px solid var(--blue);
  color: var(--muted);
}
.content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
}
.content pre {
  background: var(--panel);
  color: #e6e8ee;
  border-radius: 12px;
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.55;
}
.content pre code { background: none; border: 0; padding: 0; color: inherit; }
.content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; display: block; overflow-x: auto; }
.content th, .content td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.content th { font-weight: 600; }

.tags { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: 14px; font-weight: 500; color: var(--muted); }

/* --- подвал */
.site-footer { background: var(--black); color: #aeb5c2; padding: 32px 0; font-size: 15px; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0 0 6px; }
.site-footer .slogan { color: var(--white); font-weight: 600; font-size: 17px; }
.site-footer .muted { color: #7d8492; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .logo em { display: none; }
  .langs a { padding: 6px 7px; }
  .hero { padding-top: 36px; }
}
