:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --text: #d6d6d6;
  --heading: #ffffff;
  --muted: #9a9a9a;
  --accent: #c9a227;
  --line: #262626;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 "Roboto", system-ui, -apple-system, sans-serif;
}

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

h1, h2, h3 {
  color: var(--heading);
  font-family: "Raleway", sans-serif;
  line-height: 1.25;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--muted);
  font-family: "Raleway", sans-serif;
  font-weight: 600;
}

.brand img { height: 28px; width: auto; }

nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
nav a { color: var(--text); text-decoration: none; }
nav a:hover { color: var(--accent); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #0a0a0a !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.intro {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.intro h1 { font-size: clamp(32px, 6vw, 52px); margin: 0 0 8px; }
.intro p { color: var(--muted); max-width: 640px; margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 12px;
  padding: 22px;
}

.card h2 { font-size: 21px; margin: 6px 0 10px; }
.card h2 a { color: var(--heading); text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.card p { margin: 0 0 12px; font-size: 15px; }

.meta { color: var(--muted); font-size: 13px; margin: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.meta a { color: var(--accent); text-decoration: none; }
.more { font-size: 14px; font-weight: 600; text-decoration: none; }

.post { max-width: 720px; margin: 0 auto; padding: 48px 0; }
.post h1 { font-size: clamp(30px, 5vw, 44px); margin: 10px 0 24px; }
.post-body h2 { margin-top: 36px; }
.post-body img { max-width: 100%; height: auto; border-radius: 10px; }
.post-body code { background: var(--surface); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.post-body blockquote { border-left: 3px solid var(--accent); margin: 24px 0; padding: 4px 18px; color: var(--muted); }

.tags a { margin-right: 12px; text-decoration: none; font-size: 14px; }

.cta {
  margin-top: 48px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 12px;
  text-align: center;
}
.cta h2 { margin-top: 0; }

.pager { display: flex; justify-content: space-between; align-items: center; padding: 32px 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 24px 0; color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  nav a:not(.btn) { display: none; }
  .brand img { height: 24px; }
}

.search-form { margin-top: 20px; max-width: 520px; }
.search-form input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--heading);
  font: inherit;
  font-size: 16px;
}
.search-form input:focus { outline: none; border-color: var(--accent); }
.muted { color: var(--muted); font-size: 15px; }
