/*
Theme Name: Elena Journal
Theme URI: https://neuroprofit.vip/
Author: Elena Journal
Description: Быстрая адаптивная тема для практического блога о сайтах, ИИ и работе в интернете.
Version: 1.1.1
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: elena-journal
*/

:root {
  --ink: #18212b;
  --ink-soft: #53606e;
  --paper: #fffdf9;
  --surface: #ffffff;
  --surface-2: #f3f7f6;
  --line: #dce5e2;
  --accent: #e85d56;
  --accent-dark: #b93e39;
  --teal: #176b68;
  --teal-light: #dff2ee;
  --gold: #f3c96b;
  --shadow: 0 18px 50px rgba(27, 55, 60, .11);
  --radius: 22px;
  --content: 760px;
  --wide: 1180px;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

html,
body {
  max-width: 100%;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

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

button,
input,
textarea,
select { font: inherit; }

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

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 253, 249, .94);
  border-bottom: 1px solid rgba(220, 229, 226, .8);
  backdrop-filter: blur(14px);
}

.header-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 21px;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  border-radius: 14px 14px 14px 5px;
  box-shadow: 0 9px 22px rgba(23, 107, 104, .2);
}

.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.025em;
}

.primary-nav { margin-left: auto; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: block;
  padding: 9px 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 11px;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
  background: var(--teal-light);
  color: var(--teal);
}

.primary-nav .menu-item-has-children { position: relative; }

.primary-nav .sub-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  width: min(310px, 80vw);
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: block; }

.primary-nav .sub-menu a {
  padding: 11px 13px;
  line-height: 1.35;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 3px;
}

.home-hero {
  padding: clamp(36px, 7vw, 84px) 0 44px;
  background:
    radial-gradient(circle at 13% 16%, rgba(243, 201, 107, .28), transparent 27%),
    linear-gradient(180deg, #f7fbfa 0%, var(--paper) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 4px;
}

.home-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.home-hero h1 span { color: var(--teal); }

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.58;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 19px;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(23, 107, 104, .18);
}

.button:hover {
  color: #fff;
  background: #0f5754;
}

.button.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: none;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--surface-2);
  border: 8px solid rgba(255, 255, 255, .85);
  border-radius: 32px 32px 32px 10px;
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: 250px;
  padding: 12px 15px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  background: rgba(255, 255, 255, .93);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(24, 33, 43, .15);
  backdrop-filter: blur(8px);
}

.section {
  padding: clamp(42px, 7vw, 82px) 0;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(29px, 4vw, 43px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

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

.post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(24, 33, 43, .055);
  transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--teal-light), #fff1dc);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.post-card:hover .card-media img { transform: scale(1.025); }

.editorial-visual {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #eadfce;
}

.editorial-visual::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 37, 39, .26), rgba(18, 37, 39, 0) 53%),
    linear-gradient(0deg, rgba(18, 37, 39, .2), rgba(18, 37, 39, 0) 52%);
}

.editorial-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}

.topic-card {
  position: absolute;
  z-index: 2;
  bottom: clamp(14px, 2.5vw, 26px);
  left: clamp(14px, 2.5vw, 26px);
  display: flex;
  max-width: min(calc(100% - 28px), 360px);
  align-items: center;
  gap: 12px;
  padding: 12px 15px 12px 12px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 253, 249, .9);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(16, 40, 42, .16);
  backdrop-filter: blur(12px);
}

.topic-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  color: var(--teal);
  background: var(--teal-light);
  border-radius: 13px;
}

.topic-card__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-card small,
.topic-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.topic-card small {
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.topic-card strong {
  font-size: 16px;
  line-height: 1.25;
}

.editorial-visual--ai .topic-card__icon {
  color: #176b68;
  background: #dff2ee;
}

.editorial-visual--sites .topic-card__icon {
  color: #345f91;
  background: #e5eef9;
}

.editorial-visual--income .topic-card__icon {
  color: #875e18;
  background: #fff0c9;
}

.editorial-visual--products .topic-card__icon {
  color: #a24640;
  background: #fde5df;
}

.editorial-visual--freelance .topic-card__icon {
  color: #70548d;
  background: #eee6f8;
}

.editorial-visual--agents .topic-card__icon {
  color: #176b68;
  background: #dff2ee;
}

.editorial-visual--community .topic-card__icon {
  color: #345f91;
  background: #e5eef9;
}

.editorial-visual--marketplaces .topic-card__icon {
  color: #a0523f;
  background: #f8e6de;
}

.card-media .topic-card {
  bottom: 13px;
  left: 13px;
  max-width: calc(100% - 26px);
  gap: 9px;
  padding: 9px 11px 9px 9px;
  border-radius: 13px;
}

.card-media .topic-card__icon {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 10px;
}

.card-media .topic-card__icon svg {
  width: 21px;
  height: 21px;
}

.card-media .topic-card small { font-size: 9px; }
.card-media .topic-card strong { font-size: 13px; }

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.card-kicker {
  margin-bottom: 9px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.post-card h2,
.post-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.24;
  letter-spacing: -.025em;
}

.post-card h2 a,
.post-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card-excerpt {
  margin: 14px 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.62;
}

.card-meta {
  display: flex;
  gap: 13px;
  margin-top: auto;
  color: #71808e;
  font-size: 13px;
}

.content-wrap {
  width: min(calc(100% - 32px), var(--content));
  min-width: 0;
  margin-inline: auto;
}

.content-wide {
  width: min(calc(100% - 32px), var(--wide));
  min-width: 0;
  margin-inline: auto;
}

.page-hero {
  padding: 48px 0 34px;
  background: linear-gradient(180deg, var(--surface-2), var(--paper));
}

.breadcrumbs {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.breadcrumbs a { color: inherit; }

.entry-header h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.entry-deck {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.55;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  color: #697784;
  font-size: 14px;
}

.entry-featured {
  width: min(calc(100% - 32px), 860px);
  aspect-ratio: 16 / 7.4;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid rgba(220, 229, 226, .9);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.entry-featured > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-content {
  min-width: 0;
  padding: 42px 0 70px;
  font-size: 18px;
  line-height: 1.78;
}

.entry-content > * {
  min-width: 0;
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 1.25em;
}

.entry-content p,
.entry-content li,
.entry-content a,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-deck,
.entry-meta,
.quick-answer,
.author-box {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.entry-content h2 {
  margin-top: 2em;
  margin-bottom: .72em;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.entry-content h3 {
  margin-top: 1.65em;
  margin-bottom: .62em;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.28;
  letter-spacing: -.022em;
}

.entry-content h4 {
  margin-top: 1.45em;
  margin-bottom: .5em;
  font-size: 20px;
}

.entry-content ul,
.entry-content ol { padding-left: 1.35em; }

.entry-content li { margin-bottom: .55em; }

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 18px 22px;
  background: var(--teal-light);
  border-left: 5px solid var(--teal);
  border-radius: 0 14px 14px 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.entry-content th,
.entry-content td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
}

.entry-content th { background: var(--surface-2); }

.table-scroll,
.entry-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.entry-content pre {
  max-width: 100%;
  padding: 18px;
  overflow-x: auto;
  color: #eaf4f2;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #173f43;
  border-radius: 16px;
}

.entry-content pre code {
  white-space: inherit;
  overflow-wrap: inherit;
}

.quick-answer {
  margin: 0 0 32px;
  padding: 22px 24px;
  background: #fff8e8;
  border: 1px solid #f1d99d;
  border-radius: 18px;
}

.quick-answer strong {
  display: block;
  margin-bottom: 5px;
  color: #7b5420;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.article-figure {
  width: min(100%, 640px);
  margin: 30px auto;
}

.article-figure img,
.article-figure svg {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(27, 55, 60, .09);
}

.article-figure figcaption {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

.article-toc {
  margin: 0 0 34px;
  overflow: clip;
  background: linear-gradient(135deg, #f3f8f7, #fffaf0);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.article-toc summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.article-toc summary::-webkit-details-marker { display: none; }

.article-toc summary span {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.article-toc summary span::before,
.article-toc summary span::after {
  position: absolute;
  top: 13px;
  left: 7px;
  width: 12px;
  height: 2px;
  content: "";
  background: var(--teal);
  border-radius: 2px;
}

.article-toc summary span::after { transform: rotate(90deg); }
.article-toc[open] summary span::after { transform: rotate(0); }

.article-toc nav {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
}

.article-toc ol {
  margin: 14px 0 0;
  padding-left: 1.3em;
}

.article-toc li { margin-bottom: .45em; }
.article-toc a { font-size: 15px; line-height: 1.45; }

.interactive-panel,
.article-checklist {
  margin: 34px 0;
  padding: clamp(18px, 4vw, 28px);
  background: #f3f8f7;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(27, 55, 60, .06);
}

.interactive-panel h2 {
  margin-top: 0;
  font-size: clamp(24px, 3.5vw, 31px);
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.calculator-grid label {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
}

.calculator-grid input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin-top: 6px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #cbd8d5;
  border-radius: 11px;
}

.calculator-result {
  margin: 0;
  padding: 14px 16px;
  color: #124f4c;
  font-weight: 750;
  line-height: 1.5;
  background: var(--teal-light);
  border-radius: 13px;
}

.article-checklist {
  display: grid;
  gap: 10px;
  background: #fffaf0;
}

.article-checklist label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid #eee5cf;
  border-radius: 12px;
  cursor: pointer;
}

.article-checklist input {
  width: 19px;
  height: 19px;
  margin-top: 4px;
  accent-color: var(--teal);
}

.checklist-progress {
  margin: 0 0 4px;
  color: #7b5420;
  font-size: 14px;
  font-weight: 800;
}

.checklist-reset {
  justify-self: start;
  min-height: 42px;
  padding: 8px 14px;
  color: var(--teal);
  font-weight: 750;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}

.author-box {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  margin: 44px 0;
  padding: 24px;
  background: var(--surface-2);
  border-radius: var(--radius);
}

.author-box img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: 68% center;
  border-radius: 20px;
}

.author-box h2 { margin: 0 0 6px; font-size: 23px; }
.author-box p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.page-numbers {
  min-width: 42px;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.page-numbers.current {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.site-footer {
  color: #d7e4e3;
  background: #142b2d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .9fr;
  gap: 42px;
  padding: 54px 0 38px;
}

.site-footer .brand { color: #fff; }
.site-footer p { max-width: 480px; color: #aebfbe; }
.site-footer h2 { margin: 0 0 14px; color: #fff; font-size: 17px; }

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

.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #d7e4e3; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 28px;
  color: #8fa6a4;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

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

.search-field {
  min-width: 0;
  flex: 1;
  min-height: 46px;
  padding: 10px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.search-submit {
  padding: 9px 16px;
  color: #fff;
  font-weight: 700;
  background: var(--teal);
  border: 0;
  border-radius: 11px;
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: none;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav a { padding: 12px; }
  .primary-nav .sub-menu {
    position: static;
    display: block;
    width: auto;
    margin: 2px 0 5px 14px;
    padding: 0 0 0 8px;
    background: transparent;
    border: 0;
    border-left: 2px solid var(--teal-light);
    border-radius: 0;
    box-shadow: none;
  }
  .primary-nav .sub-menu a { padding: 9px 12px; font-size: 14px; }

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

  .hero-photo {
    width: min(100%, 700px);
  }

  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .article-figure { margin-inline: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-shell,
  .content-wrap,
  .content-wide { width: min(calc(100% - 32px), var(--wide)); }
  .header-row { min-height: 66px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 39px; height: 39px; border-radius: 12px 12px 12px 4px; }
  .home-hero { padding-top: 28px; }
  .home-hero h1 { font-size: clamp(38px, 12.8vw, 56px); }
  .hero-grid { gap: 28px; }
  .hero-photo { border-width: 5px; border-radius: 24px 24px 24px 8px; }
  .hero-badge { right: 12px; left: 12px; max-width: none; }
  .section-heading { display: block; }
  .section-heading > :last-child { margin-top: 12px; }
  .post-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 34px 0 26px; }
  .entry-header h1 { font-size: clamp(27px, 8.3vw, 38px); }
  .entry-deck { margin-top: 17px; font-size: 18px; line-height: 1.52; }
  .entry-meta { margin-top: 16px; font-size: 13px; }
  .entry-featured {
    width: min(calc(100% - 32px), 860px);
    aspect-ratio: 16 / 9;
    margin-top: 22px;
    border-radius: 17px;
  }
  .entry-featured .editorial-visual > img { object-position: 57% center; }
  .entry-featured .topic-card {
    bottom: 11px;
    left: 11px;
    max-width: calc(100% - 22px);
    padding: 8px 10px 8px 8px;
    border-radius: 12px;
  }
  .entry-featured .topic-card__icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 9px;
  }
  .entry-featured .topic-card__icon svg { width: 20px; height: 20px; }
  .entry-featured .topic-card small { font-size: 8px; }
  .entry-featured .topic-card strong { font-size: 12px; }
  .entry-content { padding-top: 30px; font-size: 17px; line-height: 1.72; }
  .entry-content h2 { font-size: clamp(25px, 8.2vw, 32px); }
  .entry-content h3 { font-size: clamp(21px, 6.8vw, 27px); }
  .table-scroll table,
  .entry-content .wp-block-table table { min-width: 620px; }
  .entry-content .wp-block-table { overflow-x: auto; }
  .quick-answer { padding: 18px; }
  .article-figure { margin-block: 24px; }
  .calculator-grid { grid-template-columns: 1fr; }
  .article-toc summary { min-height: 54px; padding: 12px 14px; }
  .article-toc nav { padding: 0 14px 14px; }
  .interactive-panel,
  .article-checklist { margin-block: 26px; padding: 16px; border-radius: 16px; }
  .author-box { grid-template-columns: 76px 1fr; padding: 18px; }
  .author-box img { width: 76px; height: 76px; border-radius: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-about { grid-column: auto; }
  .footer-bottom { display: block; }
}

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