:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0b3b73;
  --accent-2: #d97706;
  --border: #dbe4f0;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%);
  line-height: 1.6;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: #07274a;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: rgba(7, 39, 74, 0.95);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(8px);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
}

.site-title {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-tagline {
  color: #c7d8ea;
  font-size: 0.85rem;
}

.menu,
.footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.menu a,
.footer-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.menu .current-menu-item > a,
.menu .current_page_item > a {
  color: #ffd08a;
}

.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero-wrap {
  background: radial-gradient(1200px circle at 0 0, #1f4f89 0%, #0c2d55 52%, #08203b 100%);
  color: #eaf2fb;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 3rem);
  box-shadow: var(--shadow);
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #ffd08a;
  font-weight: 700;
}

.hero h1,
.entry-title,
.archive-head h1 {
  margin: 0.3rem 0 0.9rem;
  line-height: 1.1;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.hero-copy {
  max-width: 68ch;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  background: var(--accent-2);
  color: #111;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #9fc0e3;
}

.archive-head {
  padding: 1.5rem 0 0.5rem;
}

.archive-description {
  color: var(--muted);
}

.latest-posts,
.related-posts {
  padding: 1rem 0 2.5rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-link {
  color: inherit;
  text-decoration: none;
}

.card-link:hover .card-title,
.card-link:focus .card-title {
  text-decoration: underline;
}

.card-media {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
}

.card-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.card-title {
  margin: 0.35rem 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.card-excerpt {
  color: #334155;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding: 0.8rem 0 2.5rem;
}

.posts-list {
  display: grid;
  gap: 1rem;
}

.sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  height: fit-content;
  box-shadow: var(--shadow);
}

.widget + .widget {
  margin-top: 1.2rem;
}

.widget-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.widget ul {
  margin: 0;
  padding-left: 1rem;
}

.page-article,
.single-article,
.not-found {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.2vw, 2rem);
  margin-top: 1.2rem;
  margin-bottom: 2rem;
}

.entry-content p,
.entry-content li {
  max-width: 72ch;
}

.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object {
  max-width: 100%;
}

.post-tax {
  color: var(--muted);
  font-size: 0.92rem;
}

.tags {
  margin-left: 0.7rem;
}

.pagination-wrap,
.nav-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.page-numbers {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
}

.page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.site-footer {
  background: #081a31;
  color: #d6e1ed;
  padding: 1.6rem 0;
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-title {
  margin: 0;
  font-weight: 700;
}

.footer-copy {
  margin: 0;
  color: #99aec6;
}

.footer-menu a {
  color: #d6e1ed;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (min-width: 860px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-with-sidebar {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    align-items: start;
  }

  .footer-wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

@media (min-width: 1120px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
