:root {
  --navy: #1a3a5c;
  --navy-dark: #11283f;
  --red: #c0392b;
  --red-dark: #962c22;
  --gold: #d4a017;
  --cream: #fafaf8;
  --ink: #172234;
  --muted: #5f6b7a;
  --line: #dfe5ea;
  --card: #ffffff;
  --soft: #f3f6f8;
  --shadow: 0 18px 45px rgba(17, 40, 63, .14);
  --radius: 6px;
  --font-display: "Oswald", Impact, sans-serif;
  --font-body: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 1000;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 10px 14px;
  font-weight: 900;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  display: none;
  background: var(--navy);
  color: #fff;
  font-size: .9rem;
}

.topbar a {
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}

.topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo img {
  width: 185px;
}

.nav-toggle {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  color: var(--navy);
  padding: 9px 12px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.nav-menu {
  position: absolute;
  inset: 74px 16px auto;
  display: none;
  list-style: none;
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav-menu.is-open {
  display: grid;
}

.nav-menu a {
  display: block;
  padding: 12px;
  border-radius: 4px;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.nav-menu a:hover {
  background: #fff3f1;
  color: var(--red);
}

.nav-menu .nav-cta {
  background: var(--red);
  color: #fff;
  text-align: center;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(17, 40, 63, .96), rgba(26, 58, 92, .82)),
    var(--navy);
  color: #fff;
}

.blog-hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--navy));
}

.blog-hero__grid {
  display: grid;
  gap: 30px;
  padding-block: 48px 58px;
}

.blog-hero h1,
.article-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 10vw, 4.85rem);
  line-height: .96;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.blog-hero h1 {
  max-width: 720px;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .24);
}

.blog-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, .86);
  font-size: 1.1rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.blog-hero .eyebrow,
.site-footer .eyebrow {
  color: var(--gold);
}

.hero-actions,
.share-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.sticky-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 4px;
  padding: 12px 18px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
}

.button--primary {
  background: var(--red);
}

.button--primary:hover {
  background: var(--red-dark);
}

.button--secondary {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .38);
}

.blog-hero__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.blog-hero__media img {
  aspect-ratio: 1.38;
  object-fit: cover;
}

.blog-hero__media figcaption {
  padding: 12px 14px;
  color: rgba(255, 255, 255, .82);
  background: rgba(17, 40, 63, .78);
  font-size: .92rem;
}

.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.trust-strip__grid {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.trust-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.blog-shell {
  padding-block: 34px 58px;
}

.blog-layout,
.article-layout {
  display: grid;
  gap: 28px;
}

.tool-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(17, 40, 63, .07);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.08;
}

.tool-panel h2,
.sidebar-card h2,
.related-section h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  text-transform: uppercase;
}

.search-form input,
.contact-form input,
.contact-form textarea,
.download-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button,
.pagination button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
}

.filter-button.is-active,
.pagination button[aria-current="page"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.results-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.post-grid {
  display: grid;
  gap: 18px;
}

.post-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(17, 40, 63, .07);
}

.post-card img {
  width: 100%;
  aspect-ratio: 1.72;
  object-fit: cover;
  background: var(--soft);
}

.post-card__body {
  padding: 18px;
}

.post-card__meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff2ef;
  color: var(--red);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.post-card h3 {
  margin: 12px 0 10px;
  font-size: clamp(1.2rem, 2.2vw, 1.42rem);
  line-height: 1.12;
}

.post-card h3 a {
  color: inherit;
  text-decoration: none;
}

.post-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.form-note a {
  color: var(--red);
  font-weight: 900;
}

.read-more {
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.sidebar-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.sidebar-cta {
  background: linear-gradient(180deg, #fff, #fff8f6);
  border-top: 5px solid var(--red);
}

.contact-form,
.download-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 5px;
  color: var(--navy);
  font-weight: 900;
}

.form-note {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.recent-posts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-posts a {
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

.reviews blockquote {
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
}

.reviews blockquote:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.reviews div {
  color: var(--gold);
  letter-spacing: .08em;
}

.reviews cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.article-page {
  background: #fff;
}

.article-container {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.article-header {
  display: grid;
  gap: 18px;
  padding-block: 36px 22px;
}

.article-header__image {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.article-header__image img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.article-body {
  min-width: 0;
}

.article-body p,
.article-body li {
  font-size: 1.05rem;
}

.article-body h2 {
  margin: 42px 0 10px;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  text-transform: uppercase;
}

.article-body h3 {
  margin: 26px 0 8px;
  font-size: 1.35rem;
}

.article-body a:not(.button) {
  color: var(--red);
  font-weight: 900;
}

.article-body ul,
.article-body ol {
  padding-left: 1.25rem;
}

.inline-cta {
  margin: 30px 0;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(26, 58, 92, .96), rgba(17, 40, 63, .96)),
    var(--navy);
  color: #fff;
  border-radius: var(--radius);
}

.inline-cta h2,
.inline-cta h3 {
  margin: 0 0 8px;
  color: #fff;
}

.inline-cta p {
  color: rgba(255, 255, 255, .84);
}

.author-box {
  display: grid;
  gap: 14px;
  margin: 36px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.share-list a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 10px 0;
  background: #fff;
}

.faq-list summary {
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}

.related-section {
  margin-top: 48px;
  padding-block: 44px;
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.sticky-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  background: var(--red);
  box-shadow: var(--shadow);
}

.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 40, 63, .68);
}

.exit-popup[hidden] {
  display: none;
}

.exit-popup__panel {
  position: relative;
  width: min(100%, 480px);
  padding: 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.exit-popup__close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 1.8rem;
  cursor: pointer;
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .78);
  padding: 44px 0 80px;
}

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

.site-footer a {
  color: var(--gold);
  font-weight: 900;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .topbar { display: block; }
  .trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .author-box { grid-template-columns: 72px 1fr; align-items: center; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-menu a { padding: 10px 12px; }
  .blog-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
    align-items: center;
    padding-block: 70px 80px;
  }
  .trust-strip__grid { grid-template-columns: repeat(4, 1fr); }
  .blog-layout,
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .article-sidebar {
    position: sticky;
    top: 96px;
  }
  .footer-grid { grid-template-columns: 1.2fr .8fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
