:root {
  --navy: #0d3d77;
  --navy-dark: #082d5a;
  --red: #ef3d3d;
  --text: #243247;
  --muted: #6c7788;
  --line: #e5e8ee;
  --bg: #f7f8fb;
  --white: #ffffff;
  --shadow: 0 12px 34px rgba(14, 37, 76, 0.08);
  --radius: 18px;
  --max-width: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--navy); color: var(--white); }
.button-primary:hover { background: var(--navy-dark); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

.text-link:hover { text-decoration: underline; }

.section-kicker, .eyebrow {
  margin: 0 0 14px;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--navy);
}

.section-kicker { color: var(--red); }

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 232, 238, 0.7);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 88px;
}

.brand img { width: 190px; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.main-nav a {
  position: relative;
  font-weight: 700;
  color: var(--muted);
  padding: 8px 0;
}

.main-nav a.active, .main-nav a:hover { color: var(--text); }

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 999px;
}

.hero {
  padding: 42px 0 0;
  background: radial-gradient(circle at top right, rgba(13, 61, 119, 0.03), transparent 24%), linear-gradient(to bottom, #ffffff, #fcfdff);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 30px;
}

.hero-copy { padding: 34px 0 86px; }

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #11284f;
  max-width: 720px;
}

.accent { color: var(--red); }

.hero-accent-line {
  width: 74px;
  height: 4px;
  border-radius: 999px;
  margin: 30px 0 26px;
  background: var(--red);
}

.hero-text {
  max-width: 530px;
  margin: 0;
  font-size: 1.2rem;
  color: #5a677a;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
}

.hero-image-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  min-height: 620px;
}

.hero-image {
  max-height: 740px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 24px rgba(16, 33, 64, 0.08));
}

.about-section {
  padding: 48px 0 38px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr 420px;
  gap: 42px;
  align-items: center;
}

.about-headshot img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.about-copy h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1.1;
  color: #162743;
  letter-spacing: -0.025em;
}

.about-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-side {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  padding-left: 10px;
  border-left: 1px solid #dfe4ec;
}

.standing-image {
  max-height: 440px;
  object-fit: contain;
  justify-self: center;
  filter: drop-shadow(0 14px 22px rgba(16, 33, 64, 0.08));
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--muted);
  font-weight: 600;
}

.feature-icon, .category-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #dce2eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  background: #fff;
}

.posts-section, .categories-section { padding: 38px 0 26px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.post-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(15, 39, 76, 0.04);
  transition: 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 39, 76, 0.08);
}

.post-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8edf5;
}

.post-body { padding: 16px 16px 18px; }

.post-category {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.post-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.46rem;
  line-height: 1.12;
  color: #132949;
  letter-spacing: -0.025em;
}

.post-card p:not(.post-category) {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.98rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #8994a5;
  font-size: 0.88rem;
}

.subscribe-section { padding: 28px 0 34px; }

.subscribe-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  background: var(--white);
  border-radius: 20px;
  padding: 26px 28px;
  position: relative;
  box-shadow: var(--shadow);
}

.subscribe-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 3px;
  background: repeating-linear-gradient(90deg, var(--red) 0 14px, transparent 14px 28px, var(--navy) 28px 42px, transparent 42px 56px);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.subscribe-logo img { width: 104px; }

.subscribe-copy h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.1;
  color: #182b49;
  letter-spacing: -0.025em;
}

.subscribe-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

.subscribe-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.subscribe-form input {
  width: 300px;
  min-height: 50px;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
  outline: none;
}

.subscribe-form input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(13, 61, 119, 0.08);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: 0.2s ease;
}

.category-card:hover {
  border-color: #c8d3e2;
  transform: translateY(-2px);
}

.category-card strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.category-card span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  padding: 30px 0 14px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.footer-brand img {
  width: 190px;
  margin-bottom: 14px;
}

.footer-brand p, .footer-column p {
  margin: 0;
  color: var(--muted);
}

.footer-column h4 {
  margin: 0 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--navy);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li + li { margin-top: 10px; }
.footer-column a { color: var(--text); }
.footer-column a:hover, .footer-subscribe-link:hover { color: var(--navy); }
.social-mark { display: inline-block; width: 20px; color: var(--navy); font-weight: 800; }
.footer-subscribe-link { margin-top: 14px; }

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  text-align: center;
  color: #8b96a6;
  font-size: 0.9rem;
}

@media (max-width: 1200px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 220px 1fr; }
  .about-side {
    grid-column: 1 / -1;
    grid-template-columns: 200px 1fr;
    border-left: 0;
    border-top: 1px solid #dfe4ec;
    padding-left: 0;
    padding-top: 24px;
  }
  .subscribe-box { grid-template-columns: 1fr; text-align: center; }
  .subscribe-logo { justify-self: center; }
  .subscribe-form { justify-content: center; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 16px 0;
  }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 20px;
    padding: 12px 0;
  }
  .main-nav.open { display: flex; }
  .header-actions { grid-column: 1 / -1; justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 24px; }
  .hero-image-wrap { justify-content: center; min-height: auto; }
  .hero-image { max-height: 540px; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-headshot { justify-self: center; }
  .about-copy { max-width: 720px; margin: 0 auto; }
  .about-side { grid-template-columns: 1fr; justify-items: center; }
  .feature-list { max-width: 480px; text-align: left; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max-width)); }
  .brand img, .footer-brand img { width: 170px; }
  .hero { padding-top: 26px; }
  .hero h1 { font-size: 3.2rem; }
  .hero-text { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .post-grid, .category-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-header { align-items: flex-start; flex-direction: column; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input { width: 100%; }
  .subscribe-box { padding: 24px 18px; }
}
