
:root {
  --primary: #2c3e50;
  --accent: #e74c3c;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface2: #f1f5f9;
  --text: #111827;
  --muted: #475569;
  --border: #dbe3ef;
  --link: #1d4ed8;
  --header-bg: #ffffff;
  --header-text: #0f172a;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(231, 76, 60, 0.1), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.72;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

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

.site-header {
  padding: 0;
  position: static;
  top: auto;
  z-index: auto;
  backdrop-filter: none;
}


.header-inner {
  margin-top: 18px;
  background: var(--header-bg);
  color: var(--header-text);
  border-left: 8px solid var(--accent);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}


.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--header-text);
  font-weight: 850;
  text-decoration: none;
}

.brand-link:hover {
  color: var(--header-text);
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 0;
}

.brand-name {
  letter-spacing: -0.035em;
  font-size: 18px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  text-decoration: none;
  color: var(--header-text);
  opacity: 0.82;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 750;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--header-text);
}

.site-main {
  padding: 38px 0 56px;
}

.page-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 54px);
  box-shadow: 0 16px 55px rgba(15, 23, 42, 0.10);
}

.post-header {
  max-width: 900px;
  margin-bottom: 34px;
}

.post-cover {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: max(8px, calc(var(--radius) - 4px));
  border: 1px solid var(--border);
  margin-bottom: 26px;
  background: var(--surface2);
}

.post-date {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.055em;
  margin: 0 0 20px;
}

h2 {
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin-top: 48px;
}

h3 {
  font-size: 22px;
  line-height: 1.25;
  margin-top: 32px;
}

p,
li {
  font-size: 17px;
}

.post-description,
.hero-intro {
  color: var(--muted);
  font-size: 20px;
}

.post-content {
  max-width: 860px;
}

.post-content p {
  margin: 18px 0;
}

.post-content ul,
.post-content ol {
  padding-left: 24px;
}

blockquote {
  margin: 30px 0;
  padding: 18px 22px;
  border-left: 5px solid var(--accent);
  background: linear-gradient(90deg, rgba(231, 76, 60, 0.14), transparent);
  border-radius: 0 14px 14px 0;
  color: var(--text);
}

blockquote p {
  margin: 0;
  font-size: 18px;
}

code {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.92em;
}

pre {
  background: #020617;
  color: #e5e7eb;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 18px;
  overflow-x: auto;
  white-space: pre;
}

pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  white-space: pre;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  overflow: hidden;
}

th,
td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface2);
}

img {
  max-width: 100%;
}

.site-footer {
  color: var(--muted);
  padding: 28px 0 42px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer-inner nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 780px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
  }

  .page-shell {
    padding: 24px;
  }
}

.site-motto {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
