:root {
  --color-navy: #07162f;
  --color-text: #0b1220;
  --color-blue: #155eef;
  --color-blue-hover: #0f49c6;
  --color-blue-soft: #eaf2ff;
  --color-white: #ffffff;
  --color-bg-soft: #f6f8fc;
  --color-border: #e2e8f0;
  --color-muted: #64748b;
  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-error: #dc2626;
  --font-main: "Inter", sans-serif;
  --shadow-soft: 0 18px 45px rgba(7, 22, 47, 0.08);
  --shadow-card: 0 10px 30px rgba(7, 22, 47, 0.06);
  --content-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

a {
  color: var(--color-blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  transition: color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--color-blue-hover);
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--color-navy);
  font-family: var(--font-main);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.content-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.site-header,
.site-footer {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--color-border);
}

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

.site-branding__title,
.site-branding__tagline {
  margin: 0;
}

.site-branding__title {
  font-size: 1.2rem;
  font-weight: 800;
}

.site-branding__title a {
  text-decoration: none;
  color: var(--color-navy);
}

.site-branding__tagline,
.eyebrow,
.post-card__meta {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.site-nav ul,
.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.site-footer__nav a {
  text-decoration: none;
  font-weight: 600;
}

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

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--color-blue);
}

.hero {
  padding: 5rem 0 3rem;
}

.hero__content,
.content-intro,
.page-entry,
.post-entry,
.empty-state {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.hero__content {
  padding: 3rem;
  background:
    linear-gradient(135deg, rgba(234, 242, 255, 0.95), rgba(255, 255, 255, 0.98)),
    var(--color-white);
}

.hero h1,
.content-intro h1,
.section-heading h2,
.entry-header h1 {
  margin: 0 0 1rem;
  line-height: 1.1;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  max-width: 10ch;
}

.hero__copy {
  max-width: 42rem;
  font-size: 1.125rem;
  color: var(--color-muted);
}

.button-link,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button-link:hover,
.button-link:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-1px);
}

.button-link,
.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(21, 94, 239, 0.22);
}

.button-link:hover,
.button-link:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-blue-hover);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: 0 8px 20px rgba(7, 22, 47, 0.04);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--color-bg-soft);
  color: var(--color-text);
}

.homepage-section,
.site-main {
  padding-bottom: 4rem;
}

.section,
.section-heading,
.content-intro {
  margin-bottom: 2rem;
}

.content-intro,
.page-entry,
.post-entry,
.empty-state {
  padding: 2rem;
}

.section {
  padding: 4rem 0;
}

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

.feature-card,
.post-card,
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.feature-card,
.post-card__body,
.card {
  padding: 1.5rem;
}

.post-card__title,
.feature-card h3 {
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.post-card__title a {
  text-decoration: none;
}

.card {
  overflow: hidden;
}

.text-muted {
  color: var(--color-muted);
}

.bg-soft {
  background: var(--color-bg-soft);
}

.text-blue {
  color: var(--color-blue);
}

.section-title {
  margin: 0 0 1rem;
  color: var(--color-navy);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
}

.section-heading h2 {
  font-weight: 800;
}

.section-heading p,
.entry-content > p,
.entry-content > ul,
.entry-content > ol {
  max-width: 68ch;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-image {
  margin: 1.5rem 0;
  border-radius: 18px;
  overflow: hidden;
}

.entry-content strong,
.entry-content b {
  font-weight: 700;
}

.pagination-shell {
  margin-top: 2rem;
}

.site-footer {
  border-top: 1px solid var(--color-border);
}

.site-footer,
.site-footer a {
  color: var(--color-muted);
}

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

  .hero {
    padding-top: 3rem;
  }

  .hero__content,
  .content-intro,
  .page-entry,
  .post-entry,
  .empty-state {
    padding: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }
}
