:root {
  --brand: #1250ad;
  --brand-dark: #202631;
  --accent: #f9bd08;
  --ink: #15171a;
  --muted: #62676e;
  --line: #dde1e5;
  --paper: #fffefa;
  --soft: #f1f3f6;
  --shell: 1180px;
  --reading: 760px;
  --radius: 0.18rem;
  --shadow: 0 16px 42px rgb(18 80 173 / 12%);
  --font: Arial, Helvetica, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--brand);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
}

.site-header__top {
  background: var(--brand-dark);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-header__top-inner {
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__bar {
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  min-height: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header__accent {
  height: 0.4rem;
  background: linear-gradient(90deg, var(--accent) 0 24%, var(--brand) 24% 100%);
}

.site-brand {
  flex: 0 1 auto;
}

.site-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--brand-dark);
  text-decoration: none;
}

.site-brand__mark {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
}

.site-brand__copy {
  display: grid;
  gap: 0.2rem;
}

.site-brand__name {
  color: var(--brand-dark);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-transform: uppercase;
}

.site-brand__tagline {
  max-width: 32ch;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-navigation__list,
.footer-navigation__list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a,
.header-search {
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 750;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
  color: var(--brand);
}

.header-search {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: var(--paper);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  width: 1.1rem;
  height: 2px;
  display: block;
  background: currentColor;
  content: '';
}

.menu-toggle__icon {
  position: relative;
}

.menu-toggle__icon::before {
  position: absolute;
  top: -0.35rem;
}

.menu-toggle__icon::after {
  position: absolute;
  top: 0.35rem;
}

.site-main {
  min-height: 65vh;
}

.home-layout,
.listing-layout {
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.home-layout {
  position: relative;
}

.home-layout::before {
  position: absolute;
  z-index: -1;
  top: 0;
  right: calc(50% - 50vw);
  left: calc(50% - 50vw);
  height: 18rem;
  background: linear-gradient(180deg, rgb(18 80 173 / 7%), transparent);
  content: '';
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  padding-left: 1.25rem;
  border-bottom: 0;
  border-left: 0.45rem solid var(--accent);
}

.section-heading h1,
.archive-header h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.75rem);
}

.section-heading h1 {
  max-width: 17ch;
  color: var(--brand-dark);
}

.section-heading__eyebrow,
.archive-header__label,
.content-kicker {
  margin-bottom: 0.45rem;
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.content-kicker {
  display: inline-block;
  text-decoration: none;
}

.section-heading__date {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(17rem, 0.75fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 4px double var(--brand-dark);
}

.lead-story {
  min-width: 0;
}

.lead-story__image,
.content-card__image {
  display: block;
  overflow: hidden;
  background: var(--soft);
  border-radius: var(--radius);
  text-decoration: none;
}

.lead-story__image {
  aspect-ratio: 16 / 9;
  margin-bottom: 1.25rem;
}

.lead-story__image img,
.content-card__image img,
.content-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.lead-story:hover img,
.content-card:hover img {
  transform: scale(1.025);
}

.content-card__placeholder {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, var(--accent) 0 5%, transparent 5.5% 16%, rgb(255 255 255 / 88%) 16.5% 18%, transparent 18.5% 29%, rgb(255 255 255 / 50%) 29.5% 31%, transparent 31.5%),
    linear-gradient(125deg, var(--brand-dark), var(--brand));
}

.content-card__placeholder::after {
  position: absolute;
  right: 1rem;
  bottom: 0.8rem;
  padding: 0.25rem 0.45rem;
  background: var(--accent);
  color: var(--brand-dark);
  content: 'NO FOCO';
  font-size: clamp(0.55rem, 1.3vw, 0.8rem);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.lead-story h2 {
  max-width: 20ch;
  margin: 0 0 0.85rem;
  font-size: clamp(1.8rem, 4vw, 3.35rem);
}

.lead-story h2 a,
.content-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.lead-story p {
  max-width: 65ch;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.lead-story time,
.content-card__date {
  color: var(--muted);
  font-size: 0.82rem;
}

.lead-grid__secondary {
  display: grid;
  align-content: start;
  gap: 1.5rem;
}

.lead-grid__secondary .content-card + .content-card {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.latest-section {
  padding-top: 2.5rem;
}

.latest-section > h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.content-card {
  min-width: 0;
}

.latest-section .content-card {
  padding-top: 0.9rem;
  border-top: 3px solid var(--brand);
}

.content-card__image {
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
}

.content-card__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.content-card__excerpt {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.archive-header {
  max-width: 58rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
}

.archive-header__description {
  max-width: 65ch;
  margin-top: 1rem;
  color: var(--muted);
}

.navigation.pagination {
  margin-top: 3rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-numbers {
  min-width: 2.65rem;
  min-height: 2.65rem;
  display: inline-grid;
  place-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  text-decoration: none;
}

.page-numbers.current {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--paper);
}

.article-shell,
.page-shell {
  padding-block: clamp(2.5rem, 7vw, 6rem);
}

.article {
  max-width: var(--reading);
  margin-inline: auto;
}

.article__header {
  margin-bottom: 2rem;
}

.article__header h1,
.page-content__header h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 6vw, 4.75rem);
}

.article__header h1,
.page-content__header h1 {
  color: var(--brand-dark);
  font-family: Georgia, Times New Roman, serif;
  font-weight: 700;
}

.article__summary {
  margin-bottom: 1.25rem;
  color: #42474d;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.5;
}

.article__date {
  color: var(--muted);
  font-size: 0.88rem;
}

.article__cover {
  width: min(var(--shell), calc(100vw - 2rem));
  margin: 0 50% 2.5rem;
  transform: translateX(-50%);
}

.article__cover img {
  width: 100%;
  max-height: 42rem;
  object-fit: cover;
  border-radius: var(--radius);
}

.article__cover figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.entry-content {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
}

.entry-content > * {
  max-width: var(--reading);
  margin-right: auto;
  margin-left: auto;
}

.entry-content > * + * {
  margin-top: 1.35em;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2em;
}

.entry-content blockquote {
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-left: 4px solid var(--accent);
  color: #3b4045;
  font-size: 1.2em;
}

.entry-content .alignwide {
  width: min(var(--shell), calc(100vw - 2rem));
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.article__tags a {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--soft);
  text-decoration: none;
}

.post-navigation {
  max-width: var(--reading);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.post-navigation > div:last-child {
  text-align: right;
}

.post-navigation a {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.post-navigation span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.page-content {
  max-width: var(--reading);
  margin-inline: auto;
}

.search-form {
  max-width: 42rem;
  margin-top: 1.5rem;
}

.search-form__label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 750;
}

.search-form__row {
  display: flex;
  gap: 0.55rem;
}

.search-form__field {
  min-width: 0;
  flex: 1;
  padding: 0.75rem 0.9rem;
  border: 1px solid #aeb4ba;
  border-radius: 0.35rem;
  color: var(--ink);
  font: inherit;
}

.search-form__submit,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--brand);
  border-radius: 0.35rem;
  background: var(--brand);
  color: var(--paper);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.search-form__submit:hover,
.button:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: var(--paper);
}

.empty-state,
.error-page {
  max-width: 42rem;
  margin-inline: auto;
  padding-block: clamp(4rem, 10vw, 8rem);
  text-align: center;
}

.empty-state p,
.error-page > p:not(.error-page__code) {
  color: var(--muted);
}

.error-page__code {
  margin-bottom: 0;
  color: var(--brand);
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 900;
  line-height: 1;
}

.error-page__actions {
  margin: 1.5rem 0 2.5rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 0.3rem solid var(--brand);
  border-top-color: var(--accent);
  background: var(--brand-dark);
  color: #d9dde1;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 2rem;
  align-items: start;
  padding-block: 3rem;
}

.site-footer__name {
  margin-bottom: 0.25rem;
  color: var(--paper);
  font-size: 1.2rem;
  font-weight: 850;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-footer__mark {
  width: 3.6rem;
  height: 3.6rem;
  border: 2px solid rgb(255 255 255 / 22%);
  object-fit: cover;
}

.site-footer__tagline,
.site-footer__copyright {
  margin: 0;
  color: #aeb4ba;
  font-size: 0.85rem;
}

.footer-navigation__list {
  flex-wrap: wrap;
}

.footer-navigation a {
  color: var(--paper);
  font-size: 0.9rem;
  text-decoration: none;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    position: absolute;
    top: calc(100% - 0.3rem);
    right: 1rem;
    left: 1rem;
    display: none;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-top: 3px solid var(--brand);
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation__list {
    display: grid;
    gap: 0;
  }

  .primary-navigation__list a {
    display: block;
    padding: 0.75rem 0.35rem;
    border-bottom: 1px solid var(--line);
  }

  .header-search {
    display: inline-flex;
    margin-top: 1rem;
  }

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

  .lead-grid__secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-grid__secondary .content-card + .content-card {
    padding-top: 0;
    border-top: 0;
  }

  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .site-shell {
    width: min(calc(100% - 1.25rem), var(--shell));
  }

  .site-header__inner {
    min-height: 5.25rem;
    gap: 1rem;
  }

  .site-header__top-inner span:last-child,
  .site-brand__tagline {
    display: none;
  }

  .site-header__top-inner {
    justify-content: center;
  }

  .site-brand__mark {
    width: 3.8rem;
    height: 3.8rem;
  }

  .site-brand__name {
    max-width: 8rem;
    font-size: 1rem;
  }

  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .lead-grid__secondary,
  .content-grid,
  .post-navigation,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .lead-grid__secondary .content-card {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 1rem;
  }

  .lead-grid__secondary .content-card__image {
    margin: 0;
  }

  .lead-grid__secondary .content-card__excerpt {
    display: none;
  }

  .article__cover,
  .entry-content .alignwide {
    width: 100vw;
  }

  .article__cover img {
    border-radius: 0;
  }

  .post-navigation > div:last-child {
    text-align: left;
  }

  .search-form__row {
    align-items: stretch;
    flex-direction: column;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .post-navigation,
  .article__tags {
    display: none;
  }

  .article,
  .article__cover {
    width: 100%;
    max-width: none;
    margin: 0;
    transform: none;
  }
}
