/*
Theme Name: IT газетёнка
Theme URI: https://internet-prosto.ru/
Author: Internet Prosto
Description: Авторская журнальная тема: контрастная обложка, полезные рубрики и удобное чтение статей. Не требует Elementor.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: it-gazetenka
Tags: blog, news, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

:root {
  --ink: #111729;
  --muted: #69758d;
  --blue: #2459ff;
  --blue-dark: #1544d9;
  --orange: #ff714a;
  --line: #e7ebf2;
  --paper: #fbfcff;
  --soft: #f3f5fa;
  --navy: #081326;
  --radius: 5px;
  --font: "Golos Text", Arial, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body,
input,
button,
textarea,
select {
  font-family: var(--font);
}
img,
video {
  max-width: 100%;
  height: auto;
}
img {
  display: block;
}
figure {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font-size: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #7596ff;
  outline-offset: 5px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.16;
}
p {
  margin: 0 0 1em;
}
button {
  color: inherit;
}
input,
textarea {
  min-width: 0;
}
.shell {
  width: calc(100% - 112px);
  max-width: 1320px;
  margin-inline: auto;
}
.ph {
  line-height: 1;
  display: inline-block;
  flex-shrink: 0;
}
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.skip-link:focus {
  clip-path: none;
  display: block;
  top: 12px;
  left: 12px;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  height: auto;
  width: auto;
  z-index: 10000;
}
.text-link {
  color: var(--blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-header {
  background: #fff;
}
.header-main {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}
.brand {
  font-weight: 800;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.055em;
  white-space: nowrap;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}
.brand-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: var(--blue);
  margin-top: 1px;
  flex-shrink: 0;
}
.brand-tagline {
  font-size: 16px;
  color: var(--muted);
  white-space: nowrap;
}
.custom-logo-link {
  max-width: 300px;
  display: block;
}
.custom-logo {
  max-height: 65px;
  width: auto;
}
.header-search {
  width: 300px;
}
.search-form {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 6px;
  max-width: 100%;
}
.search-form:focus-within {
  background: #fff;
  border-color: var(--blue);
}
.search-form input {
  background: transparent;
  border: 0;
  outline: 0;
  width: 100%;
  padding: 12px 45px 12px 18px;
  color: var(--ink);
  font-size: 13px;
  border-radius: 6px;
  min-height: 46px;
}
.search-form input::placeholder {
  color: #7c879b;
}
.search-form button {
  position: absolute;
  right: 2px;
  top: 2px;
  height: 42px;
  width: 42px;
  background: transparent;
  border: 0;
  font-size: 23px;
  display: grid;
  place-items: center;
}
.search-form button:hover {
  color: var(--blue);
}
.header-bottom {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-menu > li {
  position: relative;
}
.nav-menu a {
  font-size: 16px;
  font-weight: 550;
  white-space: nowrap;
  display: block;
  padding-block: 16px;
  line-height: 1.3;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"],
.current-menu-item > a {
  color: var(--blue);
}
.nav-menu .sub-menu {
  list-style: none;
  position: absolute;
  z-index: 20;
  top: 100%;
  left: -16px;
  min-width: 230px;
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 16px;
  margin: 0;
  box-shadow: 0 12px 32px #1117290c;
}
.nav-menu .sub-menu a {
  white-space: normal;
  padding: 10px 0;
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
  display: block;
}
.header-description {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  line-height: 1.4;
  border-left: 1px solid #cbd2e0;
  padding-left: 20px;
  white-space: nowrap;
}
.menu-toggle,
.mobile-search {
  display: none;
}
.home-main {
  padding-top: 6px;
}
.feature-grid {
  width: calc(100% - 8px);
  max-width: 1440px;
  display: grid;
  grid-template-columns: minmax(0, 2.63fr) minmax(0, 1fr);
  gap: 30px;
  align-items: stretch;
}
.lead-story {
  width: 100%;
  max-width: 100%;
  position: relative;
  isolation: isolate;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 1.28;
  min-height: 600px;
}
.lead-story__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.lead-story__content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 68%;
  padding: 52px 0 44px 48px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.topic-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  background: var(--blue);
  color: #fff;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  text-transform: uppercase;
}
.lead-story h2 {
  font-size: clamp(31px, 3.65vw, 53px);
  line-height: 1.11;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 16px 0 25px;
  font-weight: 780;
  overflow-wrap: normal;
}
.lead-story h2 a:hover {
  color: #d7e3ff;
}
.lead-story__content > p {
  font-size: 21px;
  line-height: 1.55;
  max-width: 480px;
  margin: 0 0 26px;
  color: #e1e7f1;
}
.story-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.story-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.story-meta .ph {
  font-size: 17px;
}
.lead-story .story-meta {
  color: #eef1f8;
  font-size: 14px;
  margin-top: 5px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 54px;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.4;
  padding: 16px 24px;
  border-radius: 5px;
  border: 1px solid transparent;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button-primary {
  background: var(--blue);
  color: #fff;
}
.button-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}
.button .ph {
  font-size: 20px;
}
.lead-story .button {
  margin-top: 28px;
  min-height: 64px;
  min-width: 280px;
  font-size: 17px;
}
.focus-stories {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr 1fr;
  gap: 24px;
}
.focus-stories > h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 6px 0 -12px;
}
.focus-stories > h2 > span {
  background: var(--orange);
  color: #fff;
  display: inline-block;
  padding: 7px 12px;
  border-radius: 3px;
}
.story-card {
  min-width: 0;
}
.story-card__image {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1.95;
  background: #e5ebf5;
}
.story-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.story-card__image:hover img {
  transform: scale(1.035);
}
.story-card__body {
  padding-top: 17px;
}
.story-card h3 {
  font-size: 25px;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.story-card h3 a:hover {
  color: var(--blue);
}
.story-card p {
  color: #647089;
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 17px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story-category {
  display: inline-block;
  font-size: 10px;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.story-card--focus {
  display: flex;
  flex-direction: column;
}
.story-card--focus .story-card__image {
  aspect-ratio: 2.36;
  flex-shrink: 0;
}
.story-card--focus .story-card__body {
  padding-top: 13px;
}
.story-card--focus h3 {
  font-size: 25px;
  line-height: 1.18;
  margin-bottom: 10px;
}
.story-card--focus p {
  font-size: 16px;
  margin-bottom: 12px;
  line-height: 1.5;
  -webkit-line-clamp: 3;
}
.story-card--focus .story-category {
  display: none;
}
.story-card--focus .story-meta {
  gap: 16px;
  font-size: 13px;
}
.topic-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  padding-block: 38px 30px;
  border-bottom: 1px solid var(--line);
}
.topic-strip > a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.topic-strip .ph {
  font-size: 31px;
  color: var(--blue);
}
.topic-strip strong {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.topic-strip small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 5px;
}
.topic-strip a:hover strong {
  color: var(--blue);
}
.home-section {
  padding-top: 32px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section-heading h2 {
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.section-heading > a {
  font-size: 15px;
  font-weight: 550;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.section-heading > a:hover {
  color: var(--blue-dark);
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 32px;
}
.home-section:not(.all-articles) .story-category {
  display: none;
}
.all-articles {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  padding-bottom: 72px;
}
.all-articles .story-card__image {
  aspect-ratio: 1.85;
}
.eyebrow {
  display: block;
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.075em;
  font-weight: 650;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-count {
  font-size: 13px;
  color: var(--muted);
}
.pagination,
.nav-links {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 42px;
}
.pagination > a,
.pagination > span,
.page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  padding: 8px 12px;
  background: #fff;
}
.pagination a:hover,
.page-numbers:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.pagination [aria-current="page"],
.page-numbers.current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.navigation.pagination {
  display: block;
}
.navigation .nav-links {
  margin: 0;
}
.reading-progress {
  position: sticky;
  top: 0;
  height: 3px;
  background: transparent;
  z-index: 50;
  pointer-events: none;
}
.reading-progress > span {
  display: block;
  width: var(--reading-progress, 0%);
  height: 3px;
  background: var(--blue);
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  color: #75819a;
  font-size: 12px;
  line-height: 1.5;
  margin: 26px 0 32px;
}
.breadcrumbs a:hover {
  color: var(--blue);
}
.breadcrumbs > span[aria-hidden] {
  color: #b4bdce;
}
.single-main {
  padding-bottom: 80px;
}
.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 52px;
  max-width: 1230px;
  margin-inline: auto;
}
.article-sidebar {
  min-width: 0;
}
.article-toc {
  position: sticky;
  top: 34px;
  margin-top: 35px;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 12px;
}
.article-toc > summary {
  font-size: 15px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.article-toc > summary::-webkit-details-marker {
  display: none;
}
.article-toc summary .ph {
  font-size: 15px;
  color: var(--muted);
  transition: transform 0.2s;
}
.article-toc[open] summary .ph {
  transform: rotate(180deg);
}
.article-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-toc li {
  margin: 0 0 12px;
}
.article-toc a {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border-left: 2px solid transparent;
  padding: 5px 0 5px 10px;
  margin-left: -10px;
  color: #5e6c87;
  font-size: 15px;
  line-height: 1.45;
}
.toc-number {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9edf5;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 12px;
  flex-shrink: 0;
  line-height: 1;
}
.article-toc a > span:last-child {
  padding-top: 4px;
}
.article-toc a:hover,
.article-toc a[aria-current="true"] {
  color: var(--blue);
  border-left-color: var(--blue);
}
.article-toc a[aria-current="true"] .toc-number {
  background: var(--blue);
  color: #fff;
}
.article-main {
  min-width: 0;
  max-width: 920px;
}
.article-header .topic-label {
  font-size: 10px;
  min-height: 25px;
  padding: 4px 9px;
}
.article-header h1 {
  font-size: 46px;
  line-height: 1.13;
  font-weight: 780;
  letter-spacing: -0.037em;
  margin: 15px 0 16px;
  overflow-wrap: anywhere;
}
.article-header .story-meta {
  margin-bottom: 22px;
  font-size: 12px;
}
.article-lead {
  font-size: 21px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}
.article-lead p {
  margin: 0 0 26px;
}
.article-cover {
  width: 100%;
  aspect-ratio: 2.85;
  margin: 28px 0 28px;
  overflow: hidden;
  border-radius: 5px;
  background: #e5eaf2;
}
.article-cover img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.article-cover img[src*="github-hero"] {
  object-position: 75% 45%;
}
.entry-content {
  max-width: 78ch;
  font-size: 20px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  color: #27324a;
}
.entry-content > p {
  margin: 0 0 23px;
}
.entry-content h2,
.entry-content h3 {
  font-size: 35px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 45px 0 20px;
  scroll-margin-top: 38px;
}
.entry-content h4 {
  font-size: 23px;
  line-height: 1.3;
  margin: 30px 0 15px;
  scroll-margin-top: 38px;
}
.entry-content h5,
.entry-content h6 {
  font-size: 20px;
  margin: 26px 0 14px;
}
.entry-content > h2:first-child,
.entry-content > h3:first-child {
  margin-top: 0;
}
.entry-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content a:hover {
  color: var(--blue-dark);
}
.entry-content li {
  padding-left: 6px;
  margin-bottom: 9px;
}
.entry-content ul,
.entry-content ol {
  padding-left: 28px;
  margin: 20px 0 28px;
}
.entry-content ol li::marker {
  font-weight: 700;
  color: var(--blue);
}
.entry-content :is(img, iframe, video) {
  max-width: 100%;
}
.entry-content img {
  height: auto;
}
.entry-content iframe {
  width: 100%;
  border: 0;
}
.entry-content .wp-block-image {
  margin: 28px 0;
}
.entry-content figcaption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}
.entry-content .alignleft {
  float: left;
  margin: 7px 25px 20px 0;
  max-width: 50%;
}
.entry-content .alignright {
  float: right;
  margin: 7px 0 20px 25px;
  max-width: 50%;
}
.entry-content .aligncenter {
  margin-inline: auto;
}
.entry-content .wp-block-columns {
  gap: 24px;
}
.entry-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
.entry-content > .wp-block-separator:first-child {
  display: none;
}
.entry-content blockquote,
.entry-content .wp-block-quote {
  border-left: 3px solid var(--blue);
  background: #eef3ff;
  border-radius: 0 5px 5px 0;
  padding: 22px 26px;
  margin: 30px 0;
  font-size: 18px;
}
.entry-content blockquote p:last-child {
  margin-bottom: 0;
}
.entry-content pre {
  background: #101b2d;
  color: #e3ecff;
  padding: 24px;
  border-radius: 5px;
  overflow: auto;
  font-size: 14px;
  line-height: 1.65;
  max-width: 100%;
  white-space: pre;
}
.entry-content code {
  font-family: Consolas, monospace;
  font-size: 0.88em;
  background: #edf1f9;
  border-radius: 3px;
  padding: 2px 5px;
  color: #1d49c9;
}
.entry-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  white-space: pre;
}
.table-scroll,
.wp-block-table {
  overflow-x: auto;
  max-width: 100%;
  margin: 25px 0;
  scrollbar-width: thin;
}
.table-scroll .wp-block-table {
  margin: 0;
}
.entry-content table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  line-height: 1.6;
  min-width: 460px;
}
.entry-content th,
.entry-content td {
  border: 1px solid #dbe2ed;
  text-align: left;
  padding: 14px 16px;
  vertical-align: top;
}
.entry-content th {
  background: #eef3ff;
  color: var(--ink);
  font-weight: 650;
}
.entry-content tbody tr:nth-child(even) {
  background: #f5f7fb;
}
.entry-content .simple-note,
.entry-content .note {
  background: #eef3ff;
  border-left: 3px solid var(--blue);
  padding: 22px 26px;
  margin-block: 25px;
}
.article-end {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-share > a,
.article-share > button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  min-height: 38px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ink);
}
.article-share > a:hover,
.article-share > button:hover {
  color: var(--blue);
  border-color: var(--blue);
}
.article-layout--no-toc {
  display: block;
  max-width: 920px;
  margin-inline: auto;
}
.related-section {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 35px;
}
.comments-section {
  margin-top: 55px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.comment-reply-title,
.comments-section > h2 {
  font-size: 27px;
  margin: 0 0 14px;
}
.comment-notes,
.logged-in-as {
  font-size: 13px;
  color: var(--muted);
}
.comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 7px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  border: 1px solid #dce2ed;
  background: #fff;
  border-radius: 4px;
  padding: 12px 14px;
  width: 100%;
  color: var(--ink);
}
.comment-form textarea {
  min-height: 160px;
  resize: vertical;
}
.comment-form input[type="submit"] {
  border: 0;
  background: var(--blue);
  color: #fff;
  border-radius: 4px;
  padding: 15px 23px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.comment-form-cookies-consent label {
  font-weight: 400;
  font-size: 12px;
}
.comment-list {
  list-style: none;
  padding: 0;
}
.comment-list .children {
  list-style: none;
  padding-left: 28px;
}
.comment-body {
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
  font-size: 15px;
}
.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.comment-author .avatar {
  border-radius: 50%;
}
.comment-metadata {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.comment-content {
  margin-top: 15px;
}
.bypostauthor .comment-author {
  color: var(--blue);
}
.reply {
  color: var(--blue);
  font-size: 12px;
}
.archive-main {
  padding-bottom: 80px;
  min-height: 70vh;
}
.archive-header {
  margin: 52px 0 40px;
}
.archive-header h1,
.page-main h1 {
  font-size: 48px;
  line-height: 1.14;
  letter-spacing: -0.04em;
  max-width: 1000px;
  margin-bottom: 15px;
}
.archive-header > p,
.archive-description {
  color: var(--muted);
  max-width: 720px;
}
.archive-search {
  max-width: 520px;
  margin-top: 28px;
}
.archive-search .search-form {
  border-color: var(--line);
}
.empty-state {
  padding: 60px 20px 100px;
  text-align: center;
}
.empty-state > .ph {
  font-size: 44px;
  color: var(--blue);
  margin-bottom: 20px;
}
.empty-state h2 {
  font-size: 30px;
  margin-bottom: 14px;
}
.empty-state p {
  color: var(--muted);
  margin-bottom: 26px;
}
.page-main {
  max-width: 1000px;
  padding-bottom: 80px;
  min-height: 65vh;
}
.page-main h1 {
  margin-top: 36px;
  margin-bottom: 36px;
}
.not-found {
  padding-block: 95px 120px;
  min-height: 65vh;
}
.not-found h1 {
  font-size: 52px;
  line-height: 1.13;
  margin: 20px 0 25px;
}
.not-found > p {
  color: var(--muted);
}
.not-found .search-form {
  max-width: 500px;
  margin: 30px 0;
}
.site-footer {
  background: #0c1629;
  color: #fff;
  padding-top: 55px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  padding-bottom: 45px;
}
.site-footer .brand {
  font-size: 30px;
}
.site-footer p {
  font-size: 13px;
  color: #a6b2c9;
  line-height: 1.7;
  margin: 18px 0 0;
}
.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 55px;
  font-size: 13px;
  color: #c9d1e1;
}
.site-footer a:hover {
  color: #9db5ff;
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #c9d1e1;
}
.back-to-top .ph {
  font-size: 18px;
}
.footer-bottom {
  border-top: 1px solid #243047;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  color: #8f9eb8;
  font-size: 11px;
}
.footer-bottom ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}
@media (min-width: 1500px) {
  .lead-story h2 {
    font-size: 53px;
  }
}
@media (max-width: 1250px) {
  .shell {
    width: calc(100% - 72px);
  }
  .brand {
    font-size: 34px;
  }
  .brand-group {
    gap: 20px;
  }
  .brand-tagline {
    font-size: 12px;
  }
  .nav-menu {
    gap: 22px;
  }
  .header-description {
    font-size: 9px;
    padding-left: 13px;
  }
  .feature-grid {
    gap: 24px;
    grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr);
  }
  .lead-story {
    min-height: 610px;
  }
  .lead-story__content {
    padding: 38px 0 35px 34px;
    max-width: 72%;
  }
  .lead-story h2 {
    font-size: 39px;
  }
  .lead-story__content > p {
    font-size: 16px;
  }
  .focus-stories {
    gap: 18px;
  }
  .story-card--focus h3 {
    font-size: 19px;
  }
  .story-card--focus .story-meta {
    font-size: 10px;
    gap: 9px;
  }
  .topic-strip {
    gap: 16px;
  }
  .topic-strip > a {
    gap: 10px;
  }
  .topic-strip small {
    font-size: 10px;
  }
  .topic-strip strong {
    font-size: 12px;
  }
  .topic-strip .ph {
    font-size: 27px;
  }
  .story-card h3 {
    font-size: 20px;
  }
  .story-grid {
    gap: 36px 24px;
  }
  .article-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
  }
  .article-header h1 {
    font-size: 39px;
  }
  .article-lead {
    font-size: 18px;
  }
}
@media (max-width: 1020px) {
  .brand-tagline {
    display: none;
  }
  .header-description {
    display: none;
  }
  .header-bottom {
    min-height: 50px;
  }
  .nav-menu {
    gap: 26px;
  }
  .nav-menu a {
    font-size: 12px;
  }
  .header-main {
    min-height: 94px;
  }
  .feature-grid {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
    gap: 22px;
  }
  .lead-story {
    min-height: 570px;
  }
  .lead-story__content {
    padding: 30px 25px;
    max-width: 87%;
  }
  .lead-story h2 {
    font-size: 36px;
  }
  .lead-story__content > p {
    font-size: 15px;
    max-width: 350px;
  }
  .lead-story .story-meta {
    font-size: 11px;
    gap: 12px;
  }
  .story-card--focus h3 {
    font-size: 17px;
  }
  .story-card--focus p {
    -webkit-line-clamp: 2;
    font-size: 12px;
  }
  .story-card--focus .story-meta {
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }
  .topic-strip small {
    display: none;
  }
  .topic-strip > a {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .topic-strip {
    padding-block: 26px;
  }
  .section-heading h2 {
    font-size: 28px;
  }
  .story-card p {
    font-size: 14px;
  }
  .story-card h3 {
    font-size: 19px;
  }
  .story-meta {
    font-size: 11px;
    gap: 10px;
  }
  .article-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 27px;
  }
  .article-toc a {
    font-size: 11px;
    gap: 8px;
  }
  .toc-number {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  .article-header h1 {
    font-size: 35px;
  }
  .entry-content {
    font-size: 17px;
  }
  .entry-content h2,
  .entry-content h3 {
    font-size: 27px;
  }
  .article-lead {
    font-size: 17px;
  }
  .footer-top {
    gap: 30px;
  }
  .site-footer nav {
    gap: 12px 30px;
  }
}
@media (max-width: 760px) {
  .shell {
    width: calc(100% - 40px);
  }
  .header-main {
    min-height: 79px;
    gap: 12px;
    border-bottom: 0;
  }
  .brand {
    font-size: 30px;
    gap: 6px;
  }
  .brand-dot {
    width: 8px;
    height: 8px;
  }
  .header-search {
    display: none;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    width: 42px;
    height: 42px;
    border-radius: 5px;
    font-size: 25px;
    flex-shrink: 0;
  }
  .header-bottom {
    min-height: 0;
    display: block;
  }
  .site-navigation {
    border-top: 1px solid var(--line);
    padding: 8px 0 20px;
  }
  .js .site-navigation {
    display: none;
  }
  .js .site-navigation.is-open {
    display: block;
  }
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-menu a {
    font-size: 15px;
    padding: 11px 0;
  }
  .nav-menu .sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 18px;
    min-width: 0;
  }
  .nav-menu .sub-menu a {
    font-size: 13px;
    color: var(--muted);
  }
  .mobile-search {
    display: block;
    margin-top: 10px;
  }
  .home-main {
    padding-top: 0;
  }
  .feature-grid {
    display: block;
    width: calc(100% - 40px);
  }
  .lead-story {
    aspect-ratio: auto;
    min-height: 550px;
  }
  .lead-story__cover {
    object-position: 62% center;
    opacity: 0.8;
  }
  .lead-story__content {
    padding: 32px 26px;
    max-width: 93%;
    min-height: 550px;
  }
  .lead-story h2 {
    font-size: 34px;
    max-width: 430px;
    margin: 17px 0 23px;
    line-height: 1.12;
  }
  .lead-story__content > p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 350px;
  }
  .lead-story .story-meta {
    margin-top: auto;
    font-size: 11px;
    gap: 16px;
  }
  .lead-story .button {
    margin-top: 22px;
    min-height: 50px;
    min-width: 0;
    font-size: 13px;
  }
  .focus-stories {
    margin-top: 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    gap: 17px;
  }
  .focus-stories > h2 {
    grid-column: 1/-1;
    margin: 0 0 0;
    font-size: 15px;
  }
  .focus-stories > h2 > span {
    padding: 5px 10px;
  }
  .story-card--focus .story-card__image {
    aspect-ratio: 1.65;
  }
  .story-card--focus h3 {
    font-size: 17px;
    line-height: 1.26;
  }
  .story-card--focus p {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }
  .story-card--focus .story-meta {
    font-size: 10px;
    flex-direction: row;
  }
  .story-card--focus .story-meta > span:nth-child(2) {
    display: none;
  }
  .topic-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 15px;
    padding-block: 30px;
  }
  .topic-strip > a {
    gap: 9px;
    flex-direction: row;
    align-items: center;
  }
  .topic-strip strong {
    font-size: 11px;
    line-height: 1.3;
  }
  .topic-strip .ph {
    font-size: 25px;
  }
  .home-section {
    padding-top: 27px;
  }
  .section-heading {
    margin-bottom: 21px;
    gap: 12px;
    align-items: flex-end;
  }
  .section-heading h2 {
    font-size: 25px;
    max-width: 240px;
    line-height: 1.2;
  }
  .section-heading > a {
    font-size: 11px;
    gap: 6px;
  }
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }
  .story-card h3 {
    font-size: 18px;
  }
  .story-card p {
    font-size: 13px;
    -webkit-line-clamp: 3;
    margin-bottom: 12px;
  }
  .story-card .story-meta {
    font-size: 10px;
    gap: 8px;
  }
  .story-card .story-meta .ph {
    font-size: 14px;
  }
  .story-card .story-meta > span:nth-child(2) {
    display: none;
  }
  .story-card__body {
    padding-top: 13px;
  }
  .all-articles {
    margin-top: 36px;
    padding-bottom: 45px;
  }
  .all-articles .eyebrow {
    font-size: 10px;
  }
  .section-count {
    font-size: 11px;
  }
  .breadcrumbs {
    font-size: 10px;
    gap: 9px;
    margin: 20px 0 25px;
  }
  .article-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .article-sidebar {
    order: 0;
    margin: 0 0 26px;
  }
  .article-toc {
    position: static;
    margin: 0;
    padding: 15px 17px;
    max-height: none;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 5px;
  }
  .article-toc > summary {
    font-size: 14px;
    margin: 0;
    min-height: 25px;
  }
  .article-toc[open] > summary {
    margin-bottom: 15px;
  }
  .article-toc a {
    font-size: 12px;
    gap: 10px;
    margin-left: 0;
    padding: 3px 0;
  }
  .article-toc li {
    margin-bottom: 9px;
  }
  .article-toc ol {
    max-height: 240px;
    overflow: auto;
  }
  .article-toc a > span:last-child {
    padding-top: 2px;
  }
  .toc-number {
    height: 23px;
    width: 23px;
  }
  .article-header h1 {
    font-size: 34px;
    line-height: 1.13;
    margin: 14px 0 17px;
  }
  .article-header .story-meta {
    font-size: 11px;
    margin-bottom: 20px;
    gap: 17px;
  }
  .article-lead {
    font-size: 17px;
    line-height: 1.7;
  }
  .article-cover {
    aspect-ratio: 2.05;
    margin: 24px 0;
  }
  .entry-content {
    font-size: 17px;
    line-height: 1.8;
  }
  .entry-content h2,
  .entry-content h3 {
    font-size: 27px;
    margin: 35px 0 18px;
  }
  .entry-content h4 {
    font-size: 21px;
  }
  .entry-content pre {
    padding: 18px;
    font-size: 12px;
  }
  .entry-content th,
  .entry-content td {
    padding: 11px 13px;
    font-size: 13px;
  }
  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    max-width: 100%;
    margin: 24px auto;
  }
  .article-end {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 30px;
    padding-top: 20px;
  }
  .article-share {
    font-size: 12px;
  }
  .related-section {
    margin-top: 40px;
    padding-top: 25px;
  }
  .single-main {
    padding-bottom: 45px;
  }
  .comments-section {
    margin-top: 35px;
  }
  .comment-reply-title,
  .comments-section > h2 {
    font-size: 25px;
  }
  .comment-list .children {
    padding-left: 14px;
  }
  .archive-header {
    margin: 34px 0 30px;
  }
  .archive-header h1,
  .page-main h1 {
    font-size: 35px;
  }
  .archive-main {
    padding-bottom: 45px;
  }
  .page-main {
    padding-bottom: 45px;
  }
  .not-found {
    padding-block: 60px 80px;
  }
  .not-found h1 {
    font-size: 35px;
  }
  .not-found > p {
    font-size: 15px;
  }
  .footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 30px;
  }
  .site-footer {
    padding-top: 35px;
  }
  .site-footer nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 20px;
    font-size: 11px;
  }
  .site-footer .brand {
    font-size: 29px;
  }
  .site-footer p {
    font-size: 12px;
  }
  .back-to-top {
    font-size: 11px;
  }
  .footer-bottom {
    padding-block: 18px;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .custom-logo-link {
    max-width: 245px;
  }
  .custom-logo {
    max-height: 54px;
  }
  .header-main .brand-group {
    gap: 0;
  }
}
@media (max-width: 430px) {
  .shell {
    width: calc(100% - 32px);
  }
  .feature-grid {
    width: calc(100% - 32px);
  }
  .brand {
    font-size: 27px;
  }
  .lead-story__content {
    padding: 29px 23px;
    max-width: 100%;
    min-height: 558px;
  }
  .lead-story {
    min-height: 558px;
  }
  .lead-story h2 {
    font-size: 32px;
    max-width: 310px;
  }
  .lead-story__cover {
    object-position: 63% center;
    opacity: 0.65;
  }
  .lead-story__content > p {
    font-size: 15px;
    max-width: 300px;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .home-section:not(.all-articles) .story-grid {
    grid-template-columns: 1fr;
  }
  .story-card__image {
    aspect-ratio: 1.95;
  }
  .story-card h3 {
    font-size: 21px;
  }
  .story-card p {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }
  .story-card .story-meta {
    font-size: 11px;
  }
  .story-card .story-meta > span:nth-child(2) {
    display: inline-flex;
  }
  .story-card--focus h3 {
    font-size: 15px;
  }
  .story-card--focus p {
    display: none;
  }
  .story-card--focus .story-meta {
    font-size: 9px;
  }
  .story-card--focus .story-meta > span:nth-child(2) {
    display: none;
  }
  .story-card--focus .story-meta .ph {
    font-size: 13px;
  }
  .focus-stories {
    gap: 16px 14px;
  }
  .topic-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 20px;
  }
  .topic-strip > a:last-child {
    grid-column: auto;
  }
  .topic-strip strong {
    font-size: 12px;
  }
  .section-heading h2 {
    font-size: 24px;
    max-width: 225px;
  }
  .section-heading > a {
    font-size: 10px;
  }
  .article-header h1 {
    font-size: 31px;
    letter-spacing: -0.04em;
  }
  .article-lead,
  .entry-content {
    font-size: 16px;
  }
  .entry-content h2,
  .entry-content h3 {
    font-size: 25px;
  }
  .entry-content h4 {
    font-size: 20px;
  }
  .article-cover {
    aspect-ratio: 1.95;
  }
  .site-footer nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom > span:nth-child(2) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Site updates: a separate editorial log, linked from the footer. */
.footer-updates-link {display:inline-flex;align-items:center;gap:8px;color:#d6e1f7;font-size:12px;}
.footer-updates-link .ph {font-size:17px;}
.updates-main {min-height:70vh;}
.updates-main .archive-header {max-width:850px;}
.updates-empty {padding:40px 0 90px;border-top:1px solid var(--line);max-width:900px;}
.updates-empty>.ph {font-size:38px;color:var(--blue);margin-bottom:20px;}
.updates-empty h2 {font-size:28px;margin-bottom:14px;}
.updates-empty p {color:var(--muted);margin-bottom:24px;}
.updates-list {max-width:1050px;}
.update-preview {display:grid;grid-template-columns:165px minmax(0,1fr);gap:35px;padding:36px 0;border-top:1px solid var(--line);}
.update-preview>time {font-size:13px;color:var(--muted);padding-top:7px;}
.update-preview h2 {font-size:30px;margin-bottom:15px;}
.update-preview h2 a:hover {color:var(--blue);}
.update-preview p {color:var(--muted);font-size:17px;line-height:1.7;}
.update-preview .text-link {font-size:14px;}
.update-single {margin:40px auto 0;}
.update-single .entry-content {margin-top:28px;}
@media(max-width:760px) {.footer-updates-link{font-size:11px;}.footer-bottom{align-items:flex-start;}.footer-bottom>span:last-of-type{display:none;}.update-preview{grid-template-columns:1fr;gap:12px;padding:26px 0;}.update-preview h2{font-size:25px;}.update-preview p{font-size:16px;}.updates-empty{padding:30px 0 60px;}.updates-empty h2{font-size:25px;}}
