/*
Theme Name: NZ Local Blog Theme
Theme URI: https://example.com
Author: Codex
Description: A responsive WordPress blog theme for New Zealand local categories including preschool, plastic surgeons, doctors, rugs and home decor, ventilation systems, and more.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: nz-local-blog-theme
*/

@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800;900&display=swap");

:root {
  --ink: #13201b;
  --muted: #65726c;
  --line: #dde6e1;
  --paper: #fbfcfa;
  --soft: #eef5f1;
  --brand: #0f7c67;
  --brand-dark: #075344;
  --accent: #c4502d;
  --gold: #d7a948;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(19, 32, 27, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--brand-dark);
  text-decoration: none;
}

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

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

.site-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 250, 0.94);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.site-branding {
  display: grid;
  gap: 2px;
}

.site-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.site-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(7, 83, 68, 0.92), rgba(15, 124, 103, 0.68)),
    url("assets/nz-landscape.svg") center/cover no-repeat;
  color: var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 48px;
  align-items: center;
  min-height: 480px;
  padding: 72px 0 64px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
}

.hero-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.hero-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-panel a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-weight: 750;
}

.section {
  padding: 56px 0;
}

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

.section-header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.section-header p {
  max-width: 540px;
  margin: 8px 0 0;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-card,
.post-card,
.widget {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(19, 32, 27, 0.06);
}

.category-card {
  min-height: 170px;
  padding: 22px;
}

.category-card .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 1.45rem;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 1.14rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  padding: 48px 0 64px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.post-card {
  overflow: hidden;
}

.post-card-content {
  padding: 22px;
}

.post-card .post-thumbnail {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--soft);
}

.post-card .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card h2,
.post-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.22;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

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

.entry-content {
  max-width: 760px;
  font-size: 1.05rem;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2rem;
  line-height: 1.18;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.widget-area {
  display: grid;
  gap: 18px;
}

.widget {
  padding: 20px;
}

.widget h2,
.widget-title {
  margin: 0 0 14px;
  font-size: 1.08rem;
}

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

.search-form {
  display: flex;
  gap: 8px;
}

.search-form label {
  flex: 1;
}

.search-field,
input[type="text"],
input[type="search"],
input[type="email"],
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0;
}

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

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.page-numbers,
.nav-links a,
.nav-links span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.current {
  background: var(--brand);
  color: var(--white);
}

@media (max-width: 900px) {
  .header-inner,
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-inner,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 24px, 1160px);
  }

  .hero-inner {
    min-height: auto;
    padding: 54px 0;
  }

  .category-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .main-navigation ul {
    justify-content: flex-start;
  }

  .search-form {
    flex-direction: column;
  }
}

/* Magazine upgrade */
:root {
  --ink: #171717;
  --muted: #6f747b;
  --line: #e8e2d8;
  --paper: #fffaf3;
  --soft: #f4efe6;
  --brand: #006b5f;
  --brand-dark: #013b35;
  --accent: #ec5a2e;
  --gold: #ffbd2e;
  --plum: #682c5d;
  --sky: #d9edf6;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.site-header {
  background: rgba(255, 250, 243, 0.96);
}

.site-title {
  font-size: 1.55rem;
  text-transform: uppercase;
}

.main-navigation a {
  padding: 8px 10px;
  border-radius: 999px;
}

.main-navigation a:hover {
  background: var(--ink);
  color: var(--white);
}

.top-strip {
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.top-strip-inner {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 42px;
  font-size: 0.92rem;
}

.top-strip strong {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.magazine-hero {
  padding: 34px 0 54px;
  background:
    linear-gradient(90deg, rgba(236, 90, 46, 0.08), transparent 35%),
    linear-gradient(180deg, var(--paper), #ffffff);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.84fr 0.84fr;
  grid-auto-rows: 235px;
  gap: 18px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.feature-card-large {
  grid-row: span 2;
}

.feature-image,
.feature-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.feature-image img {
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 220ms ease;
}

.feature-card:hover .feature-image img {
  transform: scale(1.05);
}

.feature-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82));
  pointer-events: none;
}

.feature-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 18px;
  color: var(--white);
}

.feature-content .post-meta,
.feature-content .post-meta a {
  color: rgba(255, 255, 255, 0.86);
}

.feature-content h1,
.feature-content h2 {
  margin: 0;
  line-height: 1.04;
}

.feature-content h1 {
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 4.25rem);
}

.feature-content h2 {
  font-size: 1.22rem;
}

.feature-content a {
  color: var(--white);
}

.feature-content p {
  max-width: 640px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.section-tinted {
  background: var(--soft);
}

.category-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.category-card {
  position: relative;
  min-height: 255px;
  overflow: hidden;
  padding: 0;
  background: var(--ink);
}

.category-card > img {
  display: block;
  width: 100%;
  height: 116px;
  object-fit: cover;
}

.category-card .icon {
  margin: -24px 18px 14px;
  border: 2px solid var(--white);
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
}

.category-card h3,
.category-card p {
  padding: 0 18px;
}

.category-card h3 a {
  color: var(--white);
}

.category-card p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

.post-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(19, 32, 27, 0.14);
}

.post-card .post-thumbnail {
  aspect-ratio: 4 / 3;
}

.post-card h2,
.post-card h3 {
  font-size: 1.38rem;
}

.post-meta span:first-child,
.post-meta a:first-child {
  color: var(--accent);
}

.sidebar-stack {
  display: grid;
  gap: 18px;
}

.author-widget img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
  border-radius: var(--radius);
  object-fit: cover;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.newsletter-band {
  padding: 58px 0;
  background: linear-gradient(135deg, var(--brand-dark), var(--plum));
  color: var(--white);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 32px;
  align-items: center;
}

.newsletter-inner h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
}

.newsletter-inner p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
}

.newsletter-form input {
  border-color: transparent;
}

.newsletter-form button {
  background: var(--gold);
  color: var(--ink);
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card-large {
    grid-column: 1 / -1;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .top-strip-inner,
  .newsletter-form {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .newsletter-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-auto-rows: 260px;
  }

  .feature-card-large {
    min-height: 440px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form button {
    width: 100%;
  }
}

/* Ontario-inspired editorial color and font pass */
:root {
  --ink: #111111;
  --muted: #6d6258;
  --line: #e6d9c6;
  --paper: #faf1e4;
  --soft: #f3e4cf;
  --brand: #d94722;
  --brand-dark: #111111;
  --accent: #e84b25;
  --gold: #f2b544;
  --plum: #7c2f1d;
  --sky: #f9d8c5;
  --white: #fffaf3;
  --shadow: 0 18px 42px rgba(47, 30, 17, 0.11);
  --radius: 4px;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
}

body {
  background:
    linear-gradient(90deg, rgba(217, 71, 34, 0.045), transparent 28%),
    var(--paper);
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
.site-title,
.page-title,
.feature-content h1,
.feature-content h2,
.section-header h2,
.newsletter-inner h2,
.post-card h2,
.post-card h3 {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 0;
}

.site-header {
  border-bottom: 2px solid var(--ink);
  background: rgba(250, 241, 228, 0.97);
}

.header-inner {
  min-height: 88px;
}

.site-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 0.88;
  text-transform: none;
}

.site-title a {
  color: var(--ink);
}

.site-description {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-navigation a {
  border-radius: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-navigation a:hover,
.main-navigation a:focus {
  background: var(--accent);
  color: #ffffff;
}

.top-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.top-strip-inner {
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}

.top-strip strong {
  border-radius: 0;
  background: var(--ink);
  color: #ffffff;
  letter-spacing: 0.08em;
}

.magazine-hero {
  padding: 34px 0 60px;
  background:
    radial-gradient(circle at 16% 20%, rgba(242, 181, 68, 0.2), transparent 28%),
    linear-gradient(180deg, var(--paper), #fff8ee);
}

.hero-grid {
  gap: 20px;
}

.feature-card,
.category-card,
.post-card,
.widget,
.newsletter-form {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.08);
}

.feature-card::after {
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.04), rgba(17, 17, 17, 0.86));
}

.feature-content {
  padding: 22px;
}

.feature-content h1 {
  font-size: clamp(2.45rem, 5.8vw, 5.2rem);
  line-height: 0.9;
}

.feature-content h2 {
  font-size: 1.45rem;
  line-height: 1;
}

.post-meta {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-content .post-meta span:first-child,
.post-meta span:first-child,
.post-meta a:first-child {
  display: inline-flex;
  width: fit-content;
  padding: 3px 7px;
  background: var(--accent);
  color: #ffffff;
}

.section {
  padding: 66px 0;
}

.section-header {
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.94;
}

.section-header p {
  color: var(--muted);
  font-weight: 500;
}

.section-tinted {
  background:
    linear-gradient(180deg, var(--soft), #fff5e8);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-card {
  background: #151210;
}

.category-card .icon {
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent);
  font-family: var(--font-body);
}

.category-card h3 {
  font-size: 1.28rem;
  line-height: 1;
}

.post-card,
.widget {
  background: #fffaf3;
}

.post-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 12px 12px 0 rgba(17, 17, 17, 0.11);
}

.post-card h2,
.post-card h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1;
}

.post-card h2 a,
.post-card h3 a,
.category-card h3 a {
  color: inherit;
}

.post-card-content {
  padding: 24px;
}

.widget h2,
.widget-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  line-height: 1;
}

.tag-cloud a {
  border-color: var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}

.tag-cloud a:hover {
  background: var(--accent);
  color: #ffffff;
}

.newsletter-band {
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.94), rgba(124, 47, 29, 0.94)),
    var(--ink);
}

.newsletter-inner h2 {
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  line-height: 0.9;
}

.newsletter-form {
  background: #fffaf3;
}

.newsletter-form button,
.button,
button,
input[type="submit"] {
  border-radius: 0;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.newsletter-form button:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--ink);
}

input[type="text"],
input[type="search"],
input[type="email"],
textarea,
.search-field {
  border-color: var(--ink);
  border-radius: 0;
  background: #fffdf8;
  font-family: var(--font-body);
}

.site-footer {
  border-top: 2px solid var(--ink);
  background: var(--ink);
}

/* Modern premium restyle */
:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --paper: #f7f8fb;
  --soft: #eef4ff;
  --brand: #2563eb;
  --brand-dark: #1e3a8a;
  --accent: #f97316;
  --gold: #facc15;
  --plum: #7c3aed;
  --sky: #e0f2fe;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.12);
  --radius: 18px;
  --font-body: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.13), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(249, 115, 22, 0.12), transparent 26rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
.site-title,
.page-title,
.feature-content h1,
.feature-content h2,
.section-header h2,
.newsletter-inner h2,
.post-card h2,
.post-card h3 {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.site-shell {
  width: min(1220px, calc(100% - 36px));
}

.site-header {
  border-bottom: 1px solid rgba(228, 231, 236, 0.85);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.05);
}

.header-inner {
  min-height: 76px;
}

.site-title {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1;
  font-weight: 900;
  text-transform: none;
}

.site-title a {
  color: var(--ink);
}

.site-description {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.main-navigation ul {
  gap: 6px;
}

.main-navigation a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.main-navigation a:hover,
.main-navigation a:focus {
  background: #eff6ff;
  color: var(--brand);
}

.top-strip {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.top-strip-inner {
  min-height: 46px;
  border-bottom: 0;
}

.top-strip strong {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--plum));
  color: #ffffff;
  letter-spacing: 0;
  text-transform: none;
}

.magazine-hero {
  padding: 42px 0 64px;
  background: transparent;
}

.hero-grid {
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  grid-auto-rows: 245px;
  gap: 22px;
}

.feature-card,
.category-card,
.post-card,
.widget,
.newsletter-form {
  border: 1px solid rgba(228, 231, 236, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(16, 24, 40, 0.09);
}

.feature-card {
  background: #0f172a;
}

.feature-card::after {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.82)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.4), transparent 58%);
}

.feature-content {
  padding: clamp(18px, 3vw, 34px);
}

.feature-content h1 {
  max-width: 760px;
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.feature-content h2 {
  font-size: clamp(1rem, 1.55vw, 1.24rem);
  line-height: 1.18;
}

.feature-content p {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.post-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.feature-content .post-meta span:first-child,
.post-meta span:first-child,
.post-meta a:first-child {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand);
}

.feature-content .post-meta span:first-child,
.feature-content .post-meta a:first-child {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.section {
  padding: 68px 0;
}

.section-header {
  align-items: flex-end;
  padding-bottom: 0;
  border-bottom: 0;
}

.section-header h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  line-height: 1.15;
}

.section-header p {
  color: var(--muted);
  font-weight: 500;
}

.section-tinted {
  background: rgba(255, 255, 255, 0.58);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.category-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 0;
  background: #ffffff;
  color: var(--ink);
}

.category-card > img {
  width: 100%;
  height: 150px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.category-card .icon {
  width: auto;
  min-width: 46px;
  height: 34px;
  margin: -17px 18px 16px;
  padding: 0 12px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--plum));
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.category-card h3 {
  color: var(--ink);
  min-height: 2.4em;
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.15;
}

.category-card h3 a {
  color: var(--ink);
}

.category-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-card,
.widget {
  background: #ffffff;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 58px rgba(16, 24, 40, 0.14);
}

.post-card .post-thumbnail {
  aspect-ratio: 16 / 10;
}

.post-card h2,
.post-card h3 {
  color: var(--ink);
  font-size: clamp(1.08rem, 1.55vw, 1.32rem);
  line-height: 1.25;
  letter-spacing: 0.005em;
}

.latest-section .section-header {
  margin-bottom: 26px;
}

.latest-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.post-card-content {
  padding: 22px;
}

.widget {
  padding: 22px;
}

.widget h2,
.widget-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  letter-spacing: 0.01em;
}

.tag-cloud a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f9fafb;
  color: var(--ink);
}

.tag-cloud a:hover {
  background: var(--brand);
  color: #ffffff;
}

.newsletter-band {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 20rem),
    linear-gradient(135deg, #111827, #1e3a8a 58%, #7c3aed);
}

.newsletter-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.08;
}

.page-title {
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  line-height: 1.08;
}

.newsletter-form {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.newsletter-form button,
.button,
button,
input[type="submit"] {
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.newsletter-form button:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--brand);
}

input[type="text"],
input[type="search"],
input[type="email"],
textarea,
.search-field {
  border-color: var(--line);
  border-radius: 12px;
  background: #ffffff;
  font-family: var(--font-body);
}

.site-footer {
  border-top: 0;
  background: #0f172a;
}

.front-page-content:empty {
  display: none;
}

.front-page-content > .elementor,
.elementor-full-width-template > .elementor {
  width: 100%;
}

.front-page-content:not(:empty) + .top-strip {
  margin-top: 0;
}

.archive-hero,
.article-hero {
  padding: 48px 0;
  background:
    radial-gradient(circle at 9% 10%, rgba(37, 99, 235, 0.1), transparent 24rem),
    linear-gradient(180deg, #ffffff, var(--paper));
  border-bottom: 1px solid var(--line);
}

.archive-hero-inner,
.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 34px;
  align-items: center;
}

.archive-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 850;
}

.archive-description,
.article-deck {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.archive-stats {
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.archive-stats strong {
  color: var(--brand);
  font-size: 3rem;
  line-height: 1;
}

.archive-stats span {
  color: var(--muted);
  font-weight: 750;
}

.category-filter-bar {
  position: sticky;
  top: 76px;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: blur(10px);
}

.category-filter-inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 0;
}

.category-filter-inner a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.category-filter-inner a:hover,
.category-filter-inner a.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.archive-results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.archive-results-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.archive-results-header p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.article-hero-image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.author-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.author-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--plum));
  color: #ffffff;
  font-weight: 900;
}

.author-line strong,
.author-line span {
  display: block;
}

.author-line span {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-layout {
  align-items: start;
}

.article-content-card {
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(16, 24, 40, 0.07);
}

.entry-content {
  max-width: 780px;
  color: #344054;
  font-size: 1.04rem;
}

.entry-content p {
  margin: 0 0 1.25rem;
}

.entry-content h2 {
  margin: 2.1rem 0 0.8rem;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.entry-content h3 {
  margin: 1.7rem 0 0.65rem;
  color: var(--ink);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}

.entry-content blockquote {
  margin: 2rem 0;
  padding: 22px;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #eff6ff;
  color: var(--ink);
  font-weight: 700;
}

.article-tags {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-posts {
  margin-top: 34px;
}

.section-header.compact {
  margin-bottom: 18px;
}

.section-header.compact h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .hero-grid {
    grid-auto-rows: 250px;
  }

  .feature-card-large {
    min-height: 430px;
  }

  .archive-hero-inner,
  .article-hero-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .latest-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Final visual polish */
:root {
  --ink: #0b1220;
  --muted: #5f6b7a;
  --line: #dbe3ef;
  --paper: #f4f7fb;
  --soft: #edf4ff;
  --brand: #185cff;
  --brand-dark: #0b2e7a;
  --accent: #ff6b2c;
  --plum: #8b5cf6;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

body {
  background:
    radial-gradient(circle at 8% 5%, rgba(24, 92, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(255, 107, 44, 0.16), transparent 26rem),
    linear-gradient(180deg, #fbfdff 0%, var(--paper) 42%, #ffffff 100%);
}

.site-header {
  border-bottom: 1px solid rgba(219, 227, 239, 0.72);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.site-title {
  letter-spacing: -0.04em;
}

.site-title a::after {
  content: ".";
  color: var(--accent);
}

.main-navigation a {
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
  background: linear-gradient(135deg, rgba(24, 92, 255, 0.12), rgba(139, 92, 246, 0.12));
  color: var(--brand);
  transform: translateY(-1px);
}

.top-strip {
  background: linear-gradient(90deg, #0b1220, #172554 55%, #312e81);
  color: #ffffff;
}

.top-strip-inner {
  color: rgba(255, 255, 255, 0.86);
}

.top-strip strong {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.magazine-hero {
  padding: 46px 0 74px;
}

.hero-grid {
  grid-auto-rows: 270px;
}

.feature-card {
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 30px 85px rgba(15, 23, 42, 0.2);
}

.feature-card-large {
  min-height: 562px;
}

.feature-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.22), transparent 22rem);
  pointer-events: none;
}

.feature-card::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 12, 28, 0.02), rgba(6, 12, 28, 0.86)),
    linear-gradient(90deg, rgba(6, 12, 28, 0.55), transparent 64%);
}

.feature-content {
  z-index: 2;
}

.feature-content h1 {
  max-width: 680px;
  text-wrap: balance;
}

.feature-content h1 a,
.feature-content h2 a {
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.section {
  padding: 78px 0;
}

.section-header {
  margin-bottom: 30px;
}

.section-header h2 {
  max-width: 780px;
  color: var(--ink);
  text-wrap: balance;
}

.section-header p {
  font-size: 1rem;
}

.category-card,
.post-card,
.widget,
.archive-stats,
.article-content-card {
  border: 1px solid rgba(219, 227, 239, 0.95);
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.09);
}

.category-card,
.post-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.category-card:hover,
.post-card:hover {
  border-color: rgba(24, 92, 255, 0.26);
  transform: translateY(-7px);
  box-shadow: 0 30px 78px rgba(15, 23, 42, 0.16);
}

.category-card > img,
.post-card .post-thumbnail img,
.feature-image img {
  filter: saturate(1.06) contrast(1.02);
}

.category-card .icon {
  background: linear-gradient(135deg, var(--brand), var(--plum));
  box-shadow: 0 14px 30px rgba(24, 92, 255, 0.34);
}

.category-card h3,
.post-card h2,
.post-card h3 {
  letter-spacing: -0.025em;
}

.post-card {
  overflow: hidden;
}

.post-card-content {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), #ffffff),
    #ffffff;
}

.post-meta span:first-child,
.post-meta a:first-child {
  background: linear-gradient(135deg, rgba(24, 92, 255, 0.12), rgba(139, 92, 246, 0.12));
  color: var(--brand);
}

.latest-section {
  background:
    radial-gradient(circle at 80% 0%, rgba(24, 92, 255, 0.11), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(237, 244, 255, 0.78));
}

.newsletter-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.22), transparent 22rem),
    radial-gradient(circle at 90% 0%, rgba(255, 107, 44, 0.42), transparent 24rem),
    linear-gradient(135deg, #071022, #11358c 54%, #6638d6);
}

.newsletter-band::before {
  position: absolute;
  inset: auto -8% -38% auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  content: "";
  background: rgba(255, 255, 255, 0.12);
}

.newsletter-inner {
  position: relative;
}

.newsletter-form {
  padding: 10px;
  border-radius: 18px;
}

.newsletter-form button {
  min-width: 130px;
}

@media (max-width: 760px) {
  .magazine-hero {
    padding: 28px 0 52px;
  }

  .feature-card-large {
    min-height: 470px;
  }

  .section {
    padding: 54px 0;
  }
}
