:root {
  --red: #d81e26;
  --red-dark: #b5151c;
  --ink: #1a1d23;
  --body: #4b515b;
  --muted: #6e7682;
  --line: rgba(26, 29, 35, .12);
  --red-wash: rgba(216, 30, 38, .045);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "Archivo", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { color: #fff; background: var(--red); }
.shell { width: min(75rem, 100%); margin-inline: auto; padding-inline: 1.75rem; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.header-inner { position: relative; display: flex; align-items: center; gap: 1.5rem; padding-block: .875rem; }
.brand-link { display: flex; flex: none; align-items: center; text-decoration: none; }
.brand-lockup { display: inline-flex; align-items: center; gap: .625rem; padding: .3125rem .625rem .3125rem .4375rem; border-radius: 2px; background: #fff; }
.brand-emblem { display: block; flex: none; width: 2.125rem; height: 2.125rem; overflow: hidden; }
.brand-emblem img { width: auto; max-width: none; height: 2.125rem; }
.brand-name { max-width: 14.6875rem; color: var(--ink); font-size: .8125rem; font-weight: 700; line-height: 1.15; }
.header-nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; color: #3e444e; font-size: .875rem; font-weight: 500; }
.header-nav a { padding-block: .375rem; text-decoration: none; transition: color 180ms ease; }
.header-nav a:hover, .header-nav a:focus-visible, .header-nav a[aria-current="page"] { color: var(--red-dark); }
.whatsapp-button { display: inline-flex; flex: none; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .625rem 1rem; border-radius: 2px; color: #062b14; background: #25d366; font-size: .84375rem; font-weight: 700; text-decoration: none; }
.whatsapp-button > span { width: .5rem; height: .5rem; border-radius: 50%; background: #062b14; }
.nav-toggle { display: none; flex: none; min-width: 2.75rem; min-height: 2.75rem; padding: .625rem; border: 0; background: none; cursor: pointer; }
.nav-toggle span { display: block; width: 1.375rem; height: 2px; margin: .3125rem 0; background: var(--ink); }

.blog-hero { padding-block: clamp(3.5rem, 7vw, 5.25rem) clamp(2.5rem, 5vw, 4rem); background: #fff; }
.eyebrow { display: inline-flex; align-items: center; margin-bottom: 1.75rem; padding: .4375rem .75rem; border: 1px solid rgba(216, 30, 38, .4); color: var(--red); font-family: "JetBrains Mono", monospace; font-size: .6875rem; letter-spacing: .125rem; text-transform: uppercase; }
.blog-hero h1 { max-width: 48rem; margin: 0 0 1.375rem; font-family: "Spectral", serif; font-size: clamp(2rem, 6vw, 3.375rem); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
.blog-hero p { max-width: 40rem; margin: 0; color: var(--body); font-size: 1.0625rem; line-height: 1.6; text-wrap: pretty; }

.articles-section { padding-block: 2.5rem clamp(4.5rem, 8vw, 6rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.section-label { display: block; margin-bottom: .625rem; color: var(--red); font-family: "JetBrains Mono", monospace; font-size: .6875rem; letter-spacing: .09375rem; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-family: "Spectral", serif; font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.1; letter-spacing: -.01em; }
.section-heading > p { margin: 0; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: .6875rem; letter-spacing: .03125rem; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); gap: 1.5rem; }
.article-card { min-width: 0; overflow: hidden; border: 1px solid rgba(26, 29, 35, .16); border-radius: 2px; background: #fff; transition: border-color 180ms ease, transform 180ms ease; }
.article-card:hover { border-color: rgba(216, 30, 38, .5); transform: translateY(-2px); }
.card-visual { display: grid; aspect-ratio: 16 / 10; place-items: center; overflow: hidden; color: #fff; background: var(--red); font-family: "Spectral", serif; font-size: clamp(3rem, 7vw, 5rem); font-weight: 700; text-decoration: none; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2, .7, .2, 1); }
.article-card:hover .card-visual img { transform: scale(1.035); }
.card-copy { padding: 1.5rem; }
.card-copy time, .article-hero time { color: var(--red); font-family: "JetBrains Mono", monospace; font-size: .6875rem; font-weight: 500; letter-spacing: .0625rem; text-transform: uppercase; }
.card-copy h2 { margin: .75rem 0; font-family: "Spectral", serif; font-size: 1.5rem; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.card-copy h2 a { text-decoration: none; }
.card-copy h2 a:hover { color: var(--red-dark); }
.card-copy p { display: -webkit-box; margin: 0 0 1.25rem; overflow: hidden; color: var(--body); font-size: 1rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.text-link { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .5rem; color: var(--ink); font-size: .875rem; font-weight: 700; text-decoration: none; }
.text-link span { color: var(--red); transition: transform 160ms ease; }
.text-link:hover span { transform: translateX(.1875rem); }

.public-empty { max-width: 45rem; padding: clamp(2rem, 6vw, 3rem); border: 1px solid rgba(216, 30, 38, .4); border-radius: 2px; background: var(--red-wash); }
.empty-mark { display: block; margin-bottom: 1rem; color: var(--red); font-family: "JetBrains Mono", monospace; font-size: .6875rem; font-weight: 700; letter-spacing: .09375rem; }
.public-empty h2 { max-width: 35rem; margin: 0; font-family: "Spectral", serif; font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.public-empty p { max-width: 36rem; margin: 1rem 0 1.25rem; color: var(--body); font-size: 1rem; line-height: 1.6; }
.public-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8125rem; font-weight: 700; }
.public-pagination a { text-decoration: none; }
.public-pagination a:hover { color: var(--red); }
.public-pagination > span:not(:nth-child(2)) { color: #5f6670; }

.article-hero { padding-block: clamp(3.5rem, 7vw, 5.25rem) clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid rgba(216, 30, 38, .15); background: var(--red-wash); }
.article-shell { width: min(48.75rem, 100%); margin-inline: auto; padding-inline: 1.75rem; }
.back-link { display: inline-flex; min-height: 2.75rem; align-items: center; margin-bottom: 2rem; color: var(--body); font-size: .875rem; font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--red-dark); }
.article-hero h1 { margin: 1.125rem 0 1.375rem; font-family: "Spectral", serif; font-size: clamp(2rem, 6vw, 3.375rem); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
.article-hero p { max-width: 42rem; margin: 0; color: var(--body); font-size: 1.0625rem; line-height: 1.65; text-wrap: pretty; }
.article-cover { aspect-ratio: 16 / 8; margin: clamp(2.5rem, 6vw, 4rem) 0 0; overflow: hidden; border-radius: 2px; background: var(--red-wash); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-content { max-width: 65ch; padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(4.5rem, 8vw, 6rem); color: #303640; font-family: "Archivo", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.article-footer { border-top: 1px solid var(--line); background: #fafafa; }
.article-footer .article-shell { display: flex; min-height: 8rem; align-items: center; justify-content: space-between; gap: 1.5rem; }
.article-footer .article-shell > span { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: .6875rem; letter-spacing: .03125rem; text-transform: uppercase; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem; }
.footer-inner > div:first-child p { max-width: 21.25rem; margin: 1rem 0 0; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.footer-column { display: grid; align-content: start; justify-items: start; gap: .5625rem; color: #3e444e; font-size: .875rem; }
.footer-column strong { margin-bottom: .3125rem; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: .6875rem; font-weight: 500; letter-spacing: .09375rem; text-transform: uppercase; }
.footer-column a { min-height: 2rem; text-decoration: none; }
.footer-column a:hover { color: var(--red-dark); }
.footer-bottom { padding: 1.125rem 1.75rem; border-top: 1px solid rgba(26, 29, 35, .1); color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: .6875rem; letter-spacing: .0625rem; text-align: center; }

@media (max-width: 68rem) {
  .header-nav { gap: 1rem; }
}

@media (max-width: 61.25rem) {
  .header-inner .brand-name { display: none; }
}

@media (max-width: 53.75rem) {
  .header-inner { gap: .75rem; padding-block: .625rem; }
  .header-inner .whatsapp-button { margin-left: auto; }
  .nav-toggle { display: block; }
  .header-nav { position: absolute; top: 100%; right: 0; left: 0; z-index: 60; display: none; align-items: flex-start; flex-direction: column; gap: 0; margin: 0; padding: .5rem max(1rem, env(safe-area-inset-right)) 1rem max(1rem, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 8px 8px rgba(26, 29, 35, .06); }
  .header-nav.nav-open { display: flex; }
  .header-nav a { display: flex; width: 100%; min-height: 2.75rem; align-items: center; padding: .625rem 0; border-bottom: 1px solid rgba(26, 29, 35, .06); }
}

@media (max-width: 43.75rem) {
  .shell, .article-shell { padding-inline: 1rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .article-footer .article-shell { align-items: flex-start; flex-direction: column; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-column a { min-height: 2.75rem; }
}

@media (max-width: 24rem) {
  .whatsapp-button { padding-inline: .75rem; }
  .whatsapp-button > span { display: none; }
}

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