:root {
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-heading: "Inter", "Segoe UI", sans-serif;
  --color-bg: #f5f7fa;
  --color-surface: #ffffff;
  --color-text: #1a2333;
  --color-muted: #5b6472;
  --color-accent: #0c7bdc;
  --color-accent-dark: #095caa;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid rgba(16, 28, 44, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.site-brand__link {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
}

.site-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.site-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--color-text);
  font-weight: 500;
}

.site-main {
  padding: 2.5rem 0 3.5rem;
}

.site-footer {
  background: var(--color-text);
  color: #d9deeb;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
}

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin: 0 auto;
  max-width: 48ch;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.post-card {
  background: var(--color-surface);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(14, 28, 45, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.post-card__cover img {
  border-radius: 0;
}

.post-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-card__body h2 {
  font-size: 1.25rem;
  margin: 0;
}

.post-card__meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.post-card__excerpt {
  margin: 0;
  color: var(--color-text);
}

.post-card__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.post-card__tags li {
  background: rgba(12, 123, 220, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.post-card--compact {
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(14, 28, 45, 0.06);
  margin-bottom: 1rem;
}

.post {
  background: var(--color-surface);
  border-radius: 18px;
  padding: 2.25rem;
  box-shadow: 0 16px 38px rgba(14, 28, 45, 0.08);
}

.post__header h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.post__meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.post__body h2 {
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.post__body h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
}

.post__body p {
  margin-bottom: 1.25rem;
}

.post__body ul,
.post__body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  padding-left: 0.25rem;
}

.post__body blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
  color: var(--color-muted);
  margin: 1.5rem 0;
}

.post__body pre {
  background: #111b2a;
  color: #f4f7fb;
  padding: 1rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.95rem;
}

.post-tags {
  margin-top: 2.5rem;
}

.post-tags ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.post-tags a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(12, 123, 220, 0.12);
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

.page {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 15px 30px rgba(14, 28, 45, 0.07);
}

.page__body p {
  margin-bottom: 1.2rem;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
}

.contact-form button {
  justify-self: start;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-form button:hover,
.contact-form button:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(12, 123, 220, 0.25);
}

.tag__posts {
  display: grid;
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .post {
    padding: 1.75rem;
  }
}
