:root {
  --sm-blue: #2b3a8c;
  --sm-pink: #f25f95;
  --sm-ink: #121a2a;
  --sm-muted: #667085;
  --sm-line: #e7eaf0;
  --sm-soft: #f7f8fc;
  --sm-white: #fff;
  --sm-container: 1200px;
  --sm-radius: 20px;
  --sm-shadow: 0 14px 45px rgba(18, 26, 42, 0.08);
  --sm-section: clamp(3.75rem, 7vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--sm-ink);
  background: var(--sm-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.container { width: min(calc(100% - 40px), var(--sm-container)); margin-inline: auto; }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--sm-section); }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 99999;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--sm-ink);
  color: var(--sm-white);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--sm-line);
  background: rgba(255, 255, 255, 0.96);
}
.site-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding { flex: 0 0 auto; }
.custom-logo { width: auto; max-height: 52px; }
.site-branding__name {
  color: var(--sm-blue);
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
}
.primary-nav__list,
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav li { position: relative; }
.primary-nav a {
  display: block;
  padding-block: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}
.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--sm-blue); }
.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  display: none;
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--sm-line);
  border-radius: 14px;
  background: var(--sm-white);
  box-shadow: var(--sm-shadow);
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { padding: 9px 10px; }
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--sm-line);
  border-radius: 10px;
  background: var(--sm-white);
  color: var(--sm-ink);
  font-weight: 800;
}
.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}
.menu-toggle__icon { position: relative; }
.menu-toggle__icon::before { position: absolute; top: -6px; left: 0; }
.menu-toggle__icon::after { position: absolute; top: 6px; left: 0; }

h1, h2, h3, h4 {
  margin: 0 0 0.55em;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.45rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); }
p { margin: 0 0 1rem; }

.eyebrow {
  margin-bottom: 12px;
  color: var(--sm-pink);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f9faff 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}
.hero__title { max-width: 900px; }
.hero__text {
  max-width: 680px;
  color: var(--sm-muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero__media {
  overflow: hidden;
  border-radius: 28px;
  background: var(--sm-soft);
  box-shadow: var(--sm-shadow);
}
.hero__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary {
  background: var(--sm-blue);
  color: var(--sm-white);
  box-shadow: 0 8px 24px rgba(43, 58, 140, 0.2);
}
.button--secondary {
  border-color: #d9deef;
  background: var(--sm-white);
  color: var(--sm-blue);
}

.entry-header,
.archive-header { margin-bottom: 34px; }
.entry-title,
.archive-title { max-width: 900px; }
.entry-meta,
.post-card__meta { color: var(--sm-muted); font-size: 0.9rem; }
.entry-media {
  overflow: hidden;
  margin-bottom: 32px;
  border-radius: var(--sm-radius);
}
.entry-content { padding-bottom: 20px; }
.prose { color: #253047; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { color: var(--sm-ink); }
.prose a { color: var(--sm-blue); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose img { border-radius: 16px; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.post-card {
  overflow: hidden;
  border: 1px solid var(--sm-line);
  border-radius: var(--sm-radius);
  background: var(--sm-white);
}
.post-card__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--sm-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.post-card:hover .post-card__media img { transform: scale(1.02); }
.post-card__content { padding: 24px; }
.post-card__title { font-size: clamp(1.25rem, 2vw, 1.65rem); }
.post-card__title a { text-decoration: none; }
.post-card__content p:last-child { margin-bottom: 0; color: var(--sm-muted); }
.pagination { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: 8px 12px; border: 1px solid var(--sm-line); border-radius: 8px; text-decoration: none; }
.page-numbers.current { background: var(--sm-blue); color: var(--sm-white); border-color: var(--sm-blue); }

.search-box { margin-top: 28px; }
.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-field {
  min-width: 0;
  flex: 1;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--sm-line);
  border-radius: 10px;
}
.search-submit {
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--sm-blue);
  color: var(--sm-white);
  font-weight: 800;
}

.site-footer {
  padding-top: 58px;
  background: #111936;
  color: rgba(255, 255, 255, 0.78);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}
.site-footer__brand {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--sm-white);
  font-size: 1.3rem;
  font-weight: 800;
  text-decoration: none;
}
.site-footer__text { max-width: 520px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--sm-white); }
.site-footer__bottom {
  margin-top: 44px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}
.site-footer__bottom p { margin: 0; }

/* Minimal WooCommerce compatibility. Detailed shop/product styling comes later. */
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button { border-radius: 999px; }

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

@media (max-width: 900px) {
  .container { width: min(calc(100% - 30px), var(--sm-container)); }
  .site-header__inner { min-height: 70px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    border-bottom: 1px solid var(--sm-line);
    background: var(--sm-white);
    box-shadow: var(--sm-shadow);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav__list,
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
  }
  .primary-nav li { border-bottom: 1px solid var(--sm-line); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a { padding: 12px 4px; }
  .primary-nav .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 8px 16px;
    border: 0;
    box-shadow: none;
  }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 620px; }
}

@media (max-width: 680px) {
  .custom-logo { max-height: 44px; }
  .section { padding-block: clamp(3rem, 13vw, 4.5rem); }
  .hero__actions { align-items: stretch; }
  .hero__actions .button { width: 100%; }
  .posts-grid,
  .site-footer__grid { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
}

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