:root {
  --ink: #0b1220;
  --muted: #536076;
  --line: #dfe6ef;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --primary: #2563eb;
  --primary-dark: #1746b3;
  --accent: #06b6d4;
  --success: #0f9f6e;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(11, 18, 32, 0.08);
  --container: 1180px;
  --narrow: 780px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--primary); }
h1, h2, h3 { line-height: 1.35; margin-block: 0 0.7em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.65rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin-block: 0 1.2em; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.container-narrow { width: min(calc(100% - 32px), var(--narrow)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-muted { background: var(--surface-soft); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; top: 12px; inset-inline-start: 12px; z-index: 9999; padding: 10px 14px; background: #fff; color: var(--ink); border-radius: 8px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(223,230,239,.85); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; text-decoration: none; }
.brand-gz { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); font-family: Arial, sans-serif; }
.brand-name { font-size: 1.08rem; }
.custom-logo { max-height: 52px; width: auto; }
.primary-navigation ul { display: flex; align-items: center; gap: 26px; list-style: none; padding: 0; margin: 0; }
.primary-navigation a { color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 700; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--primary); }
.menu-toggle { display: none; width: 46px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px; }
.menu-toggle span[aria-hidden] { display: block; width: 100%; height: 2px; margin: 4px 0; background: var(--ink); }

.hero { overflow: hidden; background: radial-gradient(circle at 15% 15%, rgba(6,182,212,.13), transparent 30%), radial-gradient(circle at 85% 10%, rgba(37,99,235,.16), transparent 32%), var(--surface-soft); padding-block: clamp(72px, 12vw, 148px); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: clamp(36px, 7vw, 88px); }
.eyebrow { margin-bottom: 14px; color: var(--primary); font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin-bottom: 18px; }
.hero-lead { max-width: 670px; color: var(--muted); font-size: clamp(1.05rem, 2.3vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 10px 20px; border-radius: 12px; font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { color: #fff; background: var(--primary-dark); }
.button-secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.method-card { position: relative; padding: 34px; color: #fff; background: var(--ink); border-radius: 28px; box-shadow: var(--shadow); }
.method-number { position: absolute; top: 18px; inset-inline-end: 24px; color: rgba(255,255,255,.25); font: 800 3.6rem/1 Arial, sans-serif; }
.method-card h2 { font-size: 1.6rem; }
.method-card p { color: #cbd5e1; }
.method-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
.method-flow span { padding: 9px 6px; text-align: center; font-size: .78rem; font-weight: 700; border-radius: 999px; background: rgba(255,255,255,.1); }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; }
.text-link::after { content: "←"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(-4px); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card { position: relative; min-height: 220px; padding: 26px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.category-card:hover { color: var(--ink); transform: translateY(-5px); border-color: rgba(37,99,235,.35); box-shadow: var(--shadow); }
.category-count { float: inline-end; display: grid; place-items: center; min-width: 34px; height: 34px; padding-inline: 8px; color: var(--primary); background: #eff6ff; border-radius: 999px; font-weight: 800; }
.category-card p { color: var(--muted); font-size: .92rem; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #dbeafe, #cffafe); text-decoration: none; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .card-media img { transform: scale(1.035); }
.card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(37,99,235,.28); font: 900 4rem/1 Arial, sans-serif; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.card-body h2 { font-size: 1.27rem; }
.card-body h2 a { color: var(--ink); text-decoration: none; }
.card-body p { color: var(--muted); font-size: .92rem; }
.card-body .text-link { margin-top: auto; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: .75rem; font-weight: 700; }

.page-header { max-width: 820px; margin-bottom: 48px; }
.page-header h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.page-header > p, .archive-description { color: var(--muted); font-size: 1.06rem; }
.single-layout { padding-top: clamp(54px, 8vw, 96px); }
.article-header { margin-bottom: 34px; }
.article-header > a { display: inline-block; margin-bottom: 14px; color: var(--primary); font-size: .82rem; font-weight: 800; text-decoration: none; }
.article-header h1 { font-size: clamp(2rem, 4.5vw, 3.45rem); line-height: 1.42; }
.article-deck { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.3rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .8rem; }
.article-hero { width: min(calc(100% - 32px), 1040px); margin: 0 auto 44px; }
.article-hero img { width: 100%; border-radius: 24px; }
.entry-content { font-size: 1.04rem; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { margin-top: 2.2em; padding-top: .2em; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.entry-content h3 { margin-top: 1.8em; }
.entry-content p, .entry-content li { color: #202b3d; }
.entry-content a { overflow-wrap: anywhere; }
.entry-content :not(pre) > code { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.entry-content img { border-radius: 14px; }
.entry-content figure { margin-block: 2em; }
.entry-content figcaption { margin-top: 8px; color: var(--muted); font-size: .78rem; text-align: center; }
.entry-content blockquote { margin: 2em 0; padding: 20px 24px; background: #eff6ff; border-inline-start: 4px solid var(--primary); border-radius: 14px; }
.entry-content pre { overflow-x: auto; direction: ltr; padding: 20px; color: #e5eefb; background: var(--ink); border-radius: 14px; text-align: left; }
.entry-content table { width: 100%; margin-block: 2em; border-collapse: collapse; font-size: .9rem; }
.entry-content th, .entry-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: start; }
.entry-content th { background: var(--surface-soft); }
.article-footer { margin-top: 58px; padding-top: 34px; border-top: 1px solid var(--line); }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; padding: 24px; background: var(--surface-soft); border-radius: var(--radius); }
.related-guides { margin-top: 34px; }
.related-guides > h2 { margin-bottom: 16px; font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.related-guides__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-guide { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.related-guide p { margin-bottom: 8px; color: var(--primary); font-size: .75rem; font-weight: 800; }
.related-guide h3 { margin-bottom: 14px; font-size: 1rem; }
.related-guide h3 a { color: var(--ink); text-decoration: none; }
.author-avatar { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.75rem; font-weight: 900; }
.author-box h2 { margin-bottom: 4px; font-size: 1.2rem; }
.author-box p { margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.author-label { color: var(--primary) !important; font-weight: 800; }
.post-navigation { margin-top: 30px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; padding: 18px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.nav-next { text-align: end; }

.empty-state { grid-column: 1 / -1; padding: 50px 28px; text-align: center; background: #fff; border: 1px dashed #b8c4d4; border-radius: var(--radius); }
.error-page { margin-block: 40px; }
.error-code { margin: 0; color: var(--primary); font: 900 clamp(5rem, 16vw, 10rem)/1 Arial, sans-serif; }
.search-form { display: flex; max-width: 560px; margin: 24px auto; }
.search-field { flex: 1; min-width: 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 0 12px 12px 0; font: inherit; }
.search-submit { padding: 13px 18px; color: #fff; background: var(--primary); border: 0; border-radius: 12px 0 0 12px; font: 700 .9rem/1 inherit; cursor: pointer; }
.navigation.pagination { margin-top: 38px; }
.nav-links { display: flex; justify-content: center; gap: 8px; }
.page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; padding-inline: 10px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--primary); border-color: var(--primary); }

.site-footer { padding-top: 58px; color: #cbd5e1; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 38px; align-items: start; }
.footer-brand { margin-bottom: 6px; color: #fff; font-size: 1.25rem; font-weight: 800; }
.site-footer ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 24px; list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 42px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .method-card { max-width: 620px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: block; }
  .primary-navigation { display: none; position: absolute; top: calc(100% + 1px); inset-inline: 16px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-navigation a { display: block; padding: 10px 8px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-inner { min-height: 66px; }
  .category-grid, .posts-grid, .footer-grid, .related-guides__grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .method-card { padding: 26px; }
  .method-number { font-size: 2.8rem; }
  .site-footer ul { justify-content: flex-start; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .author-box { grid-template-columns: 1fr; }
}

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