@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* =========================================================================
   Stylesheet do blog editorial. Aesthetic: minimalist tech green.
   Inspirado em produtos de software modernos. Whitespace abundante,
   grid simetrico, tipografia limpa, accent emerald discreto.
   ========================================================================= */

:root {
  --paper: #ffffff;
  --paper-soft: #fafafa;
  --paper-line: #ececec;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-muted: #707070;
  --accent: #10b981;
  --accent-soft: #d1fae5;
  --accent-deep: #047857;

  --font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, 0.06);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --maxw: 1080px;
  --maxw-prose: 680px;
}

/* ---------- Reset minimo ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

a:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: 1.55rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p {
  margin: 0 0 1.1em;
}

hr {
  border: 0;
  border-top: 1px solid var(--paper-line);
  margin: 2.5rem 0;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* ---------- Utilities ---------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.prose {
  max-width: var(--maxw-prose);
  margin: 0 auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--ink-muted);
}

/* ---------- Dateline ---------- */

.dateline {
  border-bottom: 1px solid var(--paper-line);
  background: var(--paper);
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dateline .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  gap: 1rem;
}

/* ---------- Masthead ---------- */

.masthead {
  text-align: center;
  padding: 3.5rem var(--gutter) 2.5rem;
  border-bottom: 1px solid var(--paper-line);
  animation: fadeIn 600ms var(--ease) both;
}

.masthead-brand {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--ink);
  letter-spacing: -0.03em;
  border-bottom: none;
  position: relative;
  padding-bottom: 0.4rem;
}

.masthead-brand::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.masthead-brand:hover {
  color: var(--accent-deep);
  border-bottom: none;
}

.masthead-tag {
  margin: 1.1rem auto 0;
  max-width: 540px;
  font-size: 0.98rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--paper-line);
}

.site-nav .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: none;
  position: relative;
  padding: 2px 0;
  letter-spacing: 0.005em;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 220ms var(--ease);
}

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

.site-nav a:hover::after {
  width: 100%;
}

/* ---------- Eyebrow ---------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.6rem;
}

.eyebrow.muted {
  color: var(--ink-muted);
}

/* ---------- Ornament ---------- */

.ornament {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.5rem 0;
  gap: 0.6rem;
}

.ornament-mark {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.6;
}

/* ---------- Featured (home) ---------- */

.featured {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem var(--gutter) 2rem;
  animation: fadeIn 700ms var(--ease) both;
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.featured-main {
  border-right: 1px solid var(--paper-line);
  padding-right: 2.5rem;
}

.featured-main h2 {
  font-size: 2rem;
  line-height: 1.18;
  margin-bottom: 0.7rem;
}

.featured-main h2 a {
  color: var(--ink);
  border-bottom: none;
}

.featured-main h2 a:hover {
  color: var(--accent-deep);
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.featured-side article {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--paper-line);
}

.featured-side article:last-child {
  border-bottom: none;
}

.featured-side h3 {
  font-size: 1.05rem;
  line-height: 1.32;
  margin-bottom: 0.4rem;
}

.featured-side h3 a {
  color: var(--ink);
  border-bottom: none;
}

.featured-side h3 a:hover {
  color: var(--accent-deep);
}

.featured-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.5rem;
  display: block;
}

.featured-byline {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}

.excerpt {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0.4rem 0 0;
}

/* ---------- Section title ---------- */

.section-title {
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 3rem 0 1.4rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--paper-line);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.section-title::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- Articles grid ---------- */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem var(--gutter) 3rem;
}

@media (min-width: 1200px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.articles-grid article {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), border-color 280ms var(--ease);
  animation: fadeIn 600ms var(--ease) both;
}

.articles-grid article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}

.articles-grid h3 {
  font-size: 1.1rem;
  line-height: 1.32;
  margin-bottom: 0.5rem;
}

.articles-grid h3 a {
  color: var(--ink);
  border-bottom: none;
}

.articles-grid h3 a:hover {
  color: var(--accent-deep);
}

/* ---------- Listing editorial ---------- */

.articles-list-editorial {
  list-style: none;
  padding: 0;
  margin: 2.5rem auto;
  max-width: var(--maxw);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.articles-list-editorial > li {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2.5rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--paper-line);
}

.articles-list-editorial > li:last-child {
  border-bottom: none;
}

.articles-list-editorial h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.articles-list-editorial h3 a {
  color: var(--ink);
  border-bottom: none;
}

.articles-list-editorial h3 a:hover {
  color: var(--accent-deep);
}

.meta-side {
  text-align: right;
  font-size: 0.82rem;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-cat {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  align-self: flex-end;
  width: fit-content;
}

/* ---------- Post hero ---------- */

.post-hero {
  text-align: center;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--paper-line);
  animation: fadeIn 600ms var(--ease) both;
}

.post-hero h1 {
  max-width: 720px;
  margin: 0.6rem auto 0.8rem;
}

.post-hero .lede {
  max-width: 600px;
  margin: 0.8rem auto 1.2rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.post-hero .byline {
  font-size: 0.82rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-meta-rule {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin: 1.4rem 0;
}

.post-meta-rule::before,
.post-meta-rule::after {
  content: '';
  flex: 0 0 24px;
  height: 1px;
  background: var(--paper-line);
}

.post-meta-rule span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.editorial-note {
  max-width: var(--maxw-prose);
  margin: 1.5rem auto 0;
  padding: 1rem 1.2rem;
  background: var(--paper-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: left;
}

/* ---------- Post body ---------- */

.post-body {
  max-width: var(--maxw-prose);
  margin: 2.5rem auto 3rem;
  padding: 0 var(--gutter);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
  animation: fadeIn 700ms var(--ease) both;
}

.post-body p {
  margin: 1.05rem 0;
}

.post-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-deep);
  font-size: 2em;
  line-height: 0.95;
  float: left;
  margin: 0.05em 0.18em -0.05em 0;
}

.post-body h2 {
  margin-top: 2.6rem;
  padding-top: 0.2rem;
  font-size: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}

.post-body h2::before {
  content: '';
  flex: 0 0 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  position: relative;
  top: -0.32em;
}

.post-body h3 {
  margin-top: 1.8rem;
  font-size: 1.15rem;
  color: var(--ink);
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.3em;
  padding-left: 1.4rem;
}

.post-body ul li,
.post-body ol li {
  margin-bottom: 0.45em;
}

.post-body ul li::marker {
  color: var(--accent);
  content: '\2022   ';
}

.post-body ol li::marker {
  color: var(--accent-deep);
  font-weight: 600;
}

.post-body blockquote {
  margin: 1.8rem 0;
  padding: 1.1rem 1.4rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.98rem;
  color: var(--ink);
}

.post-body blockquote p {
  margin: 0;
}

.post-body blockquote p + p {
  margin-top: 0.6em;
}

.post-body hr {
  position: relative;
  border: 0;
  border-top: 1px solid var(--paper-line);
  margin: 2.4rem 0;
}

.post-body hr::after {
  content: '\25CB';
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  color: var(--accent);
  font-size: 0.85rem;
  padding: 0 0.5rem;
}

.post-body code {
  font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
  font-size: 0.92em;
  background: var(--paper-soft);
  border: 1px solid var(--paper-line);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--accent-deep);
}

.post-body a {
  border-bottom: 1px solid var(--accent-soft);
}

.post-body a:hover {
  background: var(--accent-soft);
  border-bottom-color: var(--accent);
}

/* ---------- Ad slot ---------- */

.ad-slot {
  max-width: var(--maxw-prose);
  margin: 2.5rem auto;
  padding: 1.5rem;
  border: 1px dashed var(--paper-line);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.85rem;
  background: var(--paper-soft);
}

/* ---------- Pagination ---------- */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 3rem;
  flex-wrap: wrap;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper);
  transition: all 200ms var(--ease);
  border-bottom: 1px solid var(--paper-line);
}

.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--paper);
}

.page-counter {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Post nav ---------- */

.post-nav {
  max-width: var(--maxw-prose);
  margin: 0 auto 3rem;
  padding: 1.8rem 0 0;
  border-top: 1px solid var(--paper-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.post-nav a {
  display: block;
  padding: 1rem 1.2rem;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  background: var(--paper);
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid var(--paper-line);
  transition: all 220ms var(--ease);
}

.post-nav a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.post-nav .eyebrow {
  display: block;
  margin-bottom: 0.3rem;
}

/* ---------- Search form ---------- */

.search-form {
  display: flex;
  gap: 0.6rem;
  max-width: 460px;
  margin: 1.5rem auto 2.5rem;
}

.search-form input[type="text"],
.search-form input[type="search"] {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.search-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-form button {
  padding: 0.7rem 1.3rem;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}

.search-form button:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--paper-line);
  background: var(--paper-soft);
  color: var(--ink-soft);
}

.colophon {
  text-align: center;
  margin-bottom: 2.5rem;
}

.colophon-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: inline-block;
  position: relative;
  padding-bottom: 0.3rem;
  border-bottom: none;
}

.colophon-brand::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.colophon-brand:hover {
  color: var(--accent-deep);
  border-bottom: none;
}

.colophon-tag {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--paper-line);
}

.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.8rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-grid a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-bottom: none;
}

.footer-grid a:hover {
  color: var(--accent-deep);
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.6;
}

.footer-legal p {
  margin: 0 0 0.4rem;
}

/* ---------- Cookie banner ---------- */

#cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(96vw, 760px);
  background: var(--ink);
  color: var(--paper);
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
  animation: slideUp 400ms var(--ease) both;
}

#cookie-banner[hidden] { display: none !important; }

#cookie-banner p {
  margin: 0;
  flex: 1 1 320px;
  line-height: 1.5;
}

#cookie-banner a {
  color: var(--accent-soft);
  border-bottom: 1px solid var(--accent);
}

#cookie-banner a:hover {
  color: var(--paper);
}

#cookie-banner button {
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

#cookie-banner button:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

#cookie-banner button.secondary {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#cookie-banner button.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- 404 ---------- */

.error-404 {
  max-width: 560px;
  margin: 4rem auto;
  text-align: center;
  padding: 0 var(--gutter);
}

.error-404 h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--accent-deep);
  margin-bottom: 0.6rem;
}

.error-404 p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.error-404 a {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: none;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}

.error-404 a:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

/* ---------- Animations ---------- */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .featured-main {
    border-right: none;
    border-bottom: 1px solid var(--paper-line);
    padding-right: 0;
    padding-bottom: 1.8rem;
  }
  .articles-list-editorial > li {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .meta-side {
    text-align: left;
    flex-direction: row;
    gap: 0.8rem;
    align-items: center;
  }
  .meta-cat {
    align-self: flex-start;
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .masthead { padding: 2.5rem var(--gutter) 1.8rem; }
  .featured { padding: 2rem var(--gutter) 1.5rem; }
  .featured-main h2 { font-size: clamp(1.4rem, 6.5vw, 1.85rem); line-height: 1.22; }
  .post-hero { padding: 2rem var(--gutter) 1.5rem; }
  .post-hero h1 { font-size: clamp(1.4rem, 7vw, 1.85rem); }
  .post-body {
    font-size: 1rem;
    padding: 0 var(--gutter);
    margin: 1.8rem auto 2.2rem;
  }
  .post-body h2 { font-size: 1.3rem; gap: 0.5rem; }
  .post-body h2::before { flex-basis: 10px; }
  .post-body p:first-of-type::first-letter { font-size: 1.75em; }
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem var(--gutter) 2rem;
  }
  .articles-list-editorial {
    margin: 1.5rem auto 2.5rem;
    padding: 0 var(--gutter);
    gap: 0.4rem;
  }
  .articles-list-editorial > li {
    padding: 1.25rem 0;
    gap: 0.6rem;
  }
  .post-nav {
    grid-template-columns: 1fr;
    padding: 1.4rem var(--gutter) 0;
    margin-bottom: 2rem;
  }
  .pagination { margin: 2rem var(--gutter) 2.5rem; }
  .site-nav .container {
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }
  .site-nav a { font-size: 0.85rem; letter-spacing: 0.06em; }
  .dateline .container { font-size: 0.7rem; }
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.14em; }
  .section-title { margin: 2rem var(--gutter) 1.2rem; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  #cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
  }
  #cookie-banner[hidden] { display: none !important; }
}

/* ---------- Print ---------- */

@media print {
  .site-nav,
  .dateline,
  .site-footer,
  #cookie-banner,
  .ad-slot,
  .post-nav,
  .pagination,
  .search-form {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }
  .masthead {
    border: none;
    padding-bottom: 1rem;
  }
  .masthead-brand::after { display: none; }
  .post-body {
    max-width: none;
  }
  .post-body a {
    color: #000;
    text-decoration: underline;
    background: transparent;
  }
  .post-body blockquote {
    background: transparent;
    border-left: 2px solid #000;
  }
  .post-body h2::before { background: #000; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .masthead,
  .featured,
  .articles-grid article,
  .post-hero,
  .post-body,
  #cookie-banner {
    animation: none;
  }
}
