:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.07);
  --accent: #0a84ff;
  --accent-strong: #0057d9;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(10, 132, 255, 0.05), transparent 34rem),
    linear-gradient(180deg, #fafbfc 0%, #eef2f7 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.site {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  margin-top: 16px;
  margin-bottom: 24px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
  color: var(--muted);
}

.nav a {
  color: inherit;
}

.hero {
  padding: 52px 0 28px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.08);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero p {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.22);
}

.button-primary:hover {
  background: #0074e8;
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  border-color: rgba(17, 24, 39, 0.08);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.post-list {
  display: grid;
  gap: 14px;
  padding: 14px 0 72px;
}

.post-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.post-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.post-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.article {
  max-width: 760px;
  padding: 44px 0 80px;
}

.article h1 {
  margin: 0 0 10px;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.article h2 {
  margin-top: 36px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.article p,
.article li {
  font-size: 18px;
}

.article code {
  background: rgba(17, 24, 39, 0.06);
  border-radius: 6px;
  padding: 0.12em 0.36em;
}

.article img {
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.search-page {
  max-width: 860px;
}

.search-hero {
  padding: 12px 0 24px;
}

.search-hero h1 {
  margin-top: 0;
}

.search-panel {
  display: grid;
  gap: 18px;
}

.search-field {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

.search-field span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 18px;
}

.search-meta {
  color: var(--muted);
  font-size: 14px;
}

.search-results {
  display: grid;
  gap: 16px;
}

.search-card {
  padding: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

.search-card-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}

.search-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.search-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.08);
  color: var(--accent-strong);
  font-size: 13px;
}

.search-empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.site-footer {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .article h1 {
    font-size: 38px;
  }

  .search-card-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
