/*
Theme Name: Signal
Theme URI: https://wordpress.org/
Author: AutoTechBlog
Description: A considered dark editorial theme for technology publications. Responsive story grids, reading navigation, native search, and transparent AI-assisted article provenance for the APE publishing workflow.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: signal
Tags: blog, news, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/
:root {
  color-scheme: dark;
  --bg: #0b1018;
  --surface: #111925;
  --raised: #172231;
  --line: #263142;
  --text: #eef2f8;
  --muted: #a0adbf;
  --blue: #84b6ff;
  --accent: #a8f0cf;
  --max: 1240px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.65 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 650;
}
h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.7rem);
}
h2 {
  font-size: 1.45rem;
}
h3 {
  font-size: 1.32rem;
}
p {
  color: var(--muted);
}
a,
button {
  transition:
    color 0.18s,
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
a:hover {
  color: var(--blue);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
::selection {
  background: #254b70;
  color: #fff;
}
.container {
  width: min(var(--max), calc(100% - 96px));
  margin-inline: auto;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.78rem;
}
.eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px #a8f0cf40;
  flex-shrink: 0;
}
.brand-dot {
  color: var(--blue);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--blue);
  color: #0b1625;
  padding: 12px 20px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 5px;
}
.button:hover {
  background: #a9ccff;
  color: #08101b;
  transform: translateY(-1px);
}
.button-small {
  font-size: 0.75rem;
  padding: 9px 14px;
}
.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 99;
  background: var(--blue);
  color: var(--bg);
  padding: 12px;
  width: auto;
  height: auto;
  clip: auto;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand-wrap {
  margin-right: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.07em;
  line-height: 1.2;
}
.brand-mark {
  height: 25px;
  display: flex;
  align-items: center;
  gap: 3px;
  transform: skew(-12deg);
}
.brand-mark i {
  width: 4px;
  background: var(--blue);
  border-radius: 1px;
  height: 13px;
}
.brand-mark i:nth-child(2) {
  height: 24px;
}
.brand-mark i:nth-child(3) {
  height: 18px;
}
.brand-mark i:nth-child(4) {
  height: 9px;
}
.custom-logo {
  max-height: 44px;
  width: auto;
  max-width: 220px;
}
.primary-nav .menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 500;
}
.primary-nav .menu li {
  position: relative;
}
.primary-nav .current-menu-item > a {
  color: var(--blue);
}
.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  list-style: none;
  padding: 12px;
  display: none;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  display: block;
}
.sub-menu a {
  display: block;
  padding: 8px;
}
.header-search {
  display: flex;
  padding: 8px;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.menu-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.8rem;
}
.intro {
  padding: 43px 0 38px;
}
.intro-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.intro-kicker .eyebrow {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 9px;
}
.edition {
  color: var(--muted);
  font-size: 0.7rem;
}
.intro h1 {
  letter-spacing: -0.048em;
  margin-bottom: 13px;
}
.intro p {
  font-size: 0.9rem;
  max-width: 650px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 21px;
}
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}
.heading-tick {
  height: 14px;
  width: 3px;
  border-radius: 2px;
  background: var(--blue);
}
.featured-section {
  padding-bottom: 43px;
  border-bottom: 1px solid var(--line);
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  gap: 24px;
}
.post-card {
  min-width: 0;
}
.card-art {
  display: block;
  overflow: hidden;
  position: relative;
  background: var(--surface);
  border-radius: 7px;
  aspect-ratio: 1.72;
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.post-card:hover .card-art img {
  transform: scale(1.035);
}
.card-content {
  padding-top: 18px;
}
.card-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.category {
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.095em;
  text-transform: uppercase;
  color: var(--blue);
}
.ai-label {
  font-size: 0.59rem;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 10px;
}
.card-content h3 {
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.card-excerpt {
  font-size: 0.82rem;
  line-height: 1.65;
  margin-top: 10px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 16px;
}
.card-hero {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 8px;
  background: #152338;
  border: 1px solid #2c3c54;
  display: flex;
  align-items: flex-end;
}
.card-hero > .card-art {
  position: absolute;
  inset: 0;
  border-radius: 0;
  aspect-ratio: auto;
}
.card-hero > .card-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #08111c05 6%,
    #08111c36 24%,
    #08111ceb 70%,
    #08111c 100%
  );
}
.feature-label {
  position: absolute;
  top: 24px;
  left: 26px;
  z-index: 1;
  border: 1px solid #ffffff3d;
  background: #0a1625b3;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.57rem;
  letter-spacing: 0.12em;
  color: #eaf2ff;
  font-weight: 650;
}
.card-hero .card-content {
  position: relative;
  padding: 110px 30px 27px;
  width: 100%;
  pointer-events: none;
}
.card-hero .card-content a {
  pointer-events: auto;
}
.card-hero h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  max-width: 600px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.card-hero .card-excerpt {
  max-width: 480px;
  color: #b5c3d7;
}
.card-hero .card-meta {
  margin-top: 17px;
  color: #b5c3d7;
}
.read-arrow {
  display: grid;
  place-items: center;
  margin-left: auto;
  border: 1px solid #40516a;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  color: var(--text);
}
.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-compact {
  display: grid;
  grid-template-columns: 1fr 0.54fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0 26px;
  flex: 1;
  align-items: center;
}
.card-compact .card-art {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 1;
  min-height: 115px;
}
.card-compact .card-content {
  grid-column: 1;
  grid-row: 1;
  padding-top: 0;
}
.card-compact h3 {
  font-size: 1.23rem;
  line-height: 1.3;
}
.card-compact .ai-label {
  display: none;
}
.feed-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #132225;
  border: 1px solid #28403f;
  border-radius: 5px;
  font-size: 0.73rem;
  color: #b8d4cf;
}
.feed-note > span:last-child {
  margin-left: auto;
  font-size: 1rem;
}
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 48px;
  padding: 36px 0 60px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 24px;
}
.post-grid .post-card {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.sidebar {
  padding-top: 0;
  min-width: 0;
}
.follow-card {
  position: relative;
  padding: 26px 23px;
  background:
    radial-gradient(ellipse at top right, #253f6150, transparent 70%),
    var(--surface);
  border: 1px solid #304159;
  border-radius: 7px;
  overflow: hidden;
}
.follow-card > .eyebrow {
  color: var(--blue);
  font-size: 0.59rem;
}
.signal-glyph {
  display: block;
  width: 39px;
  height: 39px;
  border: 1px solid #476187;
  border-radius: 50%;
  color: var(--blue);
  font-size: 1.8rem;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 25px;
}
.follow-card h2 {
  font-size: 1.65rem;
  line-height: 1.17;
  margin: 12px 0 14px;
}
.follow-card h2 span {
  color: var(--blue);
}
.follow-card p {
  font-size: 0.8rem;
  margin-bottom: 20px;
}
.follow-card .button {
  width: 100%;
  margin-bottom: 12px;
}
.follow-card > .small {
  font-size: 0.65rem;
  display: block;
  text-align: center;
}
.topics {
  margin-top: 31px;
}
.topics h2 {
  font-size: 1rem;
  margin-bottom: 15px;
}
.topics > a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.79rem;
}
.topic-count {
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
}
.topic-count > span {
  margin-left: 16px;
}
.sidebar-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
}
.sidebar-note .status-dot {
  margin-top: 6px;
}
.sidebar-note p {
  font-size: 0.69rem;
}
.search-section {
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-block: 38px;
}
.search-section .eyebrow {
  color: var(--blue);
  font-size: 0.59rem;
}
.search-section h2 {
  font-size: 1.6rem;
  margin-top: 9px;
}
.search-form {
  display: flex;
  border: 1px solid #38475b;
  border-radius: 5px;
  background: var(--surface);
  width: 380px;
  max-width: 100%;
}
.search-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: none;
  color: var(--text);
  padding: 14px 16px;
  font-size: 0.8rem;
}
.search-form input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.search-form button {
  color: var(--blue);
  font-size: 1.4rem;
  padding: 4px 18px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
}
.site-footer {
  border-top: 1px solid var(--line);
  background: #090e15;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 35px;
}
.footer-brand {
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.05em;
}
.footer-inner p {
  font-size: 0.74rem;
  margin-top: 4px;
}
.footer-inner nav {
  font-size: 0.73rem;
  align-self: center;
  text-align: right;
}
.footer-inner .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  padding: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-block: 19px;
  font-size: 0.64rem;
  color: var(--muted);
}
.archive-main {
  padding-top: 42px;
}
.archive-heading {
  padding-block: 15px 35px;
}
.archive-heading .eyebrow {
  color: var(--accent);
}
.archive-heading h1 {
  margin-top: 16px;
}
.archive-heading .muted {
  margin-top: 15px;
}
.archive-main .content-layout {
  padding-top: 0;
}
.pagination {
  margin-top: 30px;
}
.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.8rem;
}
.page-numbers.current {
  background: var(--blue);
  color: var(--bg);
  border-color: var(--blue);
}
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 50px 30px;
  margin-bottom: 40px;
}
.empty-state .eyebrow {
  color: var(--accent);
}
.empty-state h2 {
  font-size: 2rem;
  margin-block: 14px;
}
.empty-state p {
  margin-bottom: 20px;
}
.empty-note {
  padding-block: 20px 60px;
  font-size: 0.85rem;
}
.not-found {
  padding-block: 100px;
}
.not-found .eyebrow {
  color: var(--accent);
}
.not-found h1 {
  margin-block: 20px;
}
.not-found p {
  margin-bottom: 28px;
}
.story-header {
  max-width: 920px;
  padding-block: 52px 35px;
}
.story-kicker {
  display: flex;
  gap: 20px;
  align-items: center;
}
.story-header h1 {
  margin-block: 20px 27px;
  line-height: 1.08;
}
.story-byline {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.82rem;
}
.author-avatar {
  display: grid;
  place-items: center;
  background: #20334d;
  color: var(--blue);
  border: 1px solid #3c5271;
  border-radius: 50%;
  width: 39px;
  height: 39px;
  font-size: 1rem;
  text-transform: uppercase;
}
.byline-date {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}
.ai-badge {
  font-size: 0.62rem;
  color: var(--accent);
  border: 1px solid #35534c;
  border-radius: 3px;
  padding: 4px 8px;
  margin-left: 8px;
}
.story-art {
  max-height: 520px;
  aspect-ratio: 2.6;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.story-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(180px, 1fr);
  gap: 70px;
  padding-block: 40px 70px;
}
.disclosure {
  display: flex;
  gap: 16px;
  background: #111f29;
  border: 1px solid #2d4657;
  border-radius: 6px;
  padding: 20px 22px;
  margin-bottom: 32px;
}
.disclosure-icon {
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1.2;
}
.disclosure strong {
  font-size: 0.82rem;
}
.disclosure p {
  font-size: 0.76rem;
  margin-top: 6px;
}
.disclosure .small {
  color: var(--accent);
  display: block;
  margin-top: 9px;
  font-size: 0.68rem;
}
.entry-content {
  font-size: 1.03rem;
  line-height: 1.85;
  color: #c5cfdf;
  overflow-wrap: anywhere;
}
.entry-content > * {
  margin-bottom: 24px;
}
.entry-content h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin-top: 40px;
}
.entry-content h3 {
  font-size: 1.35rem;
  color: var(--text);
  margin-top: 28px;
}
.entry-content h4 {
  color: var(--text);
}
.entry-content p {
  color: inherit;
}
.entry-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.entry-content li {
  margin-bottom: 8px;
}
.entry-content figure {
  margin-inline: 0;
}
.entry-content figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
}
.entry-content blockquote {
  border-left: 3px solid var(--blue);
  background: var(--surface);
  margin-inline: 0;
  padding: 22px 26px;
  font-size: 1.12rem;
}
.entry-content pre {
  padding: 24px;
  background: #111b29;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.65;
  font-size: 0.85rem;
  white-space: pre;
}
.entry-content code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #b8d5ff;
}
.entry-content :not(pre) > code {
  background: var(--raised);
  padding: 2px 5px;
  border-radius: 3px;
}
.entry-content table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  max-width: 100%;
  font-size: 0.85rem;
}
.entry-content td,
.entry-content th {
  border: 1px solid #354359;
  padding: 12px 16px;
  text-align: left;
  min-width: 130px;
}
.entry-content th {
  background: #1c2b3d;
  color: var(--text);
}
.entry-content tr:nth-child(even) {
  background: #121b28;
}
.entry-content .safety-warning {
  border: 1px solid #7d6943;
  background: #272216;
  border-radius: 6px;
  color: #f1d797;
  padding: 20px;
}
.is-automated .entry-content > h1:first-child {
  display: none;
}
.reading-sidebar {
  padding-top: 6px;
}
.toc {
  position: sticky;
  top: 30px;
  border-left: 1px solid var(--line);
  padding-left: 23px;
}
.toc .eyebrow {
  color: var(--muted);
}
.toc ol {
  padding: 0;
  list-style: none;
  margin: 18px 0;
  font-size: 0.77rem;
}
.toc li {
  margin-bottom: 13px;
}
.toc a {
  color: var(--muted);
}
.toc a:hover {
  color: var(--blue);
}
.back-to-top {
  display: block;
  margin-top: 30px;
  font-size: 0.75rem;
  color: var(--blue);
}
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.post-tags a {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 11px;
  font-size: 0.7rem;
  border-radius: 4px;
}
.post-navigation {
  margin-top: 34px;
  border-block: 1px solid var(--line);
  padding-block: 24px;
}
.post-navigation .nav-links {
  justify-content: space-between;
  gap: 20px;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
  min-width: 0;
}
.post-navigation .nav-next {
  text-align: right;
}
.post-navigation a {
  display: block;
  font-size: 0.93rem;
  line-height: 1.4;
}
.post-navigation a span {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.page-main {
  max-width: 900px;
  padding-block: 30px 70px;
}
.comments-area {
  margin-top: 40px;
}
.comment-list {
  list-style: none;
  padding: 0;
}
.comment-body {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.comment-author .avatar {
  float: left;
  margin-right: 12px;
  border-radius: 50%;
}
.comment-metadata {
  font-size: 0.7rem;
  color: var(--muted);
}
.comment-content {
  margin-top: 15px;
}
.comment-list .children {
  padding-left: 20px;
  list-style: none;
}
.comment-reply-link {
  font-size: 0.74rem;
  color: var(--blue);
}
.comment-respond {
  margin-top: 32px;
}
.comment-form p {
  margin-top: 16px;
  font-size: 0.85rem;
}
.comment-form label {
  display: block;
}
.comment-form input:not([type="checkbox"]),
.comment-form textarea,
.post-password-form input {
  border: 1px solid #38475b;
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  padding: 10px;
  max-width: 100%;
}
.comment-form textarea {
  width: 100%;
}
.comment-form .submit,
.post-password-form input[type="submit"] {
  background: var(--blue);
  color: var(--bg);
  font-weight: 700;
  cursor: pointer;
}
.comment-form-cookies-consent label {
  display: inline;
  margin-left: 6px;
}
.wp-caption {
  max-width: 100%;
}
.wp-caption-text,
.gallery-caption {
  color: var(--muted);
  font-size: 0.8rem;
}
.alignleft {
  float: left;
  margin-right: 24px;
}
.alignright {
  float: right;
  margin-left: 24px;
}
.aligncenter {
  margin-inline: auto;
}
.entry-content:after {
  content: "";
  display: block;
  clear: both;
}
.bypostauthor > .comment-body {
  border-left: 2px solid var(--blue);
  padding-left: 16px;
}
.sticky .card-kicker:before {
  content: "↗";
  color: var(--accent);
}
@media (min-width: 1500px) {
  .container {
    width: min(var(--max), calc(100% - 120px));
  }
  .intro {
    padding-top: 50px;
  }
}
@media (max-width: 1100px) {
  .header-inner {
    gap: 18px;
  }
  .primary-nav .menu {
    gap: 16px;
  }
  .header-feed {
    display: none;
  }
  .content-layout {
    gap: 30px;
    grid-template-columns: minmax(0, 1fr) 255px;
  }
  .featured-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .card-compact {
    grid-template-columns: 1fr 0.5fr;
    gap: 12px;
  }
  .card-compact h3 {
    font-size: 1.1rem;
  }
  .card-compact .card-art {
    min-height: 100px;
  }
  .reading-layout {
    gap: 40px;
  }
}
@media (max-width: 980px) {
  .container {
    width: calc(100% - 48px);
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 16px;
    min-height: 76px;
    padding-block: 18px;
  }
  .menu-toggle {
    display: block;
  }
  .header-search {
    border: 0;
    padding: 5px;
  }
  .primary-nav {
    width: 100%;
    order: 5;
  }
  .primary-nav .menu {
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 12px;
  }
  .has-js .primary-nav {
    display: none;
  }
  .has-js .primary-nav.is-open {
    display: block;
  }
  .primary-nav .sub-menu {
    position: static;
    display: block;
    border: 0;
    padding: 0 0 0 12px;
    min-width: 0;
    background: none;
  }
  .primary-nav .sub-menu a {
    padding-block: 5px;
  }
  .featured-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
  }
  .card-hero {
    min-height: 440px;
  }
  .card-hero .card-content {
    padding: 90px 22px 23px;
  }
  .card-compact {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
    padding-top: 0;
    padding-bottom: 20px;
  }
  .card-compact .card-art {
    aspect-ratio: 2.8;
    min-height: 0;
  }
  .card-compact .card-content h3 {
    font-size: 1.04rem;
  }
  .card-compact .card-meta {
    margin-top: 9px;
  }
  .feature-stack {
    gap: 20px;
  }
  .feed-note {
    display: none;
  }
  .content-layout {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 26px;
  }
  .post-grid {
    gap: 25px 20px;
  }
  .post-grid h3 {
    font-size: 1.14rem;
  }
  .follow-card {
    padding: 22px 18px;
  }
  .follow-card h2 {
    font-size: 1.4rem;
  }
  .reading-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .reading-sidebar {
    display: none;
  }
  .story-header {
    max-width: 850px;
  }
}
@media (max-width: 740px) {
  .edition {
    display: none;
  }
  .intro {
    padding-block: 30px;
  }
  .intro h1 {
    font-size: 2.55rem;
    max-width: 570px;
  }
  .intro p {
    font-size: 0.83rem;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .card-hero {
    min-height: 430px;
  }
  .card-hero h3 {
    font-size: 2rem;
  }
  .feature-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .card-compact {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .card-compact .card-art {
    aspect-ratio: 1.7;
  }
  .card-compact h3 {
    font-size: 1.2rem;
  }
  .content-layout {
    grid-template-columns: 1fr;
    padding-top: 30px;
    padding-bottom: 35px;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 16px;
  }
  .topics {
    margin-top: 0;
  }
  .sidebar-note {
    grid-column: 1/-1;
    margin-top: 0;
  }
  .search-section {
    gap: 25px;
    flex-direction: column;
    align-items: flex-start;
  }
  .search-form {
    width: 100%;
  }
  .story-header {
    padding-top: 32px;
  }
  .story-header h1 {
    font-size: 2.65rem;
  }
  .story-art {
    aspect-ratio: 1.8;
  }
  .reading-layout {
    padding-top: 25px;
  }
  .section-heading > .small {
    font-size: 0.66rem;
  }
  .single-main .entry-content {
    font-size: 1rem;
  }
  .footer-inner {
    flex-direction: column;
  }
  .footer-inner nav {
    text-align: left;
    align-self: flex-start;
  }
}
@media (max-width: 480px) {
  .container {
    width: calc(100% - 36px);
  }
  .brand {
    font-size: 1.45rem;
  }
  .brand-mark {
    transform: scale(0.9) skew(-12deg);
  }
  .intro h1 {
    font-size: 2.25rem;
  }
  .intro p {
    font-size: 0.81rem;
  }
  .intro-kicker {
    margin-bottom: 15px;
  }
  .card-hero {
    min-height: 410px;
  }
  .card-hero h3 {
    font-size: 1.85rem;
  }
  .card-hero .card-content {
    padding: 100px 21px 24px;
  }
  .card-hero .card-excerpt {
    font-size: 0.79rem;
  }
  .feature-label {
    top: 20px;
    left: 20px;
  }
  .feature-stack {
    gap: 16px;
  }
  .card-compact .card-content h3 {
    font-size: 1.03rem;
  }
  .card-compact .card-meta {
    font-size: 0.59rem;
    gap: 5px;
    flex-wrap: wrap;
  }
  .card-compact .category {
    font-size: 0.55rem;
  }
  .section-heading > .small {
    display: none;
  }
  .section-heading .eyebrow {
    font-size: 0.54rem;
  }
  .post-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .post-grid h3 {
    font-size: 1.45rem;
  }
  .card-excerpt {
    font-size: 0.87rem;
  }
  .card-meta {
    font-size: 0.72rem;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .follow-card {
    padding: 27px;
  }
  .follow-card h2 {
    font-size: 1.9rem;
  }
  .topics {
    padding-block: 8px;
  }
  .story-header h1 {
    font-size: 2.2rem;
  }
  .story-byline {
    flex-wrap: wrap;
  }
  .disclosure {
    padding: 17px;
    gap: 12px;
  }
  .entry-content h2 {
    font-size: 1.55rem;
  }
  .story-art {
    aspect-ratio: 1.5;
  }
  .search-section h2 {
    font-size: 1.4rem;
  }
  .post-navigation .nav-links {
    flex-direction: column;
  }
  .post-navigation .nav-next {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
