/*
Theme Name: Wired Grid
Theme URI: https://example.com/wired-grid
Author: Drujoy
Description: A high-contrast technology magazine theme with collage grids, uppercase navigation, sharp rules, and a bold news homepage.
Version: 1.4.2
Requires at least: 6.0
Tested up to: 6.6
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: wired-grid
*/

@import url("https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;700;800&family=Roboto+Condensed:wght@700;900&family=Roboto+Mono:wght@500;700&family=Roboto+Slab:wght@700;800&display=swap");

:root {
  --wg-black: #000000;
  --wg-ink: #111111;
  --wg-copy: #404040;
  --wg-muted: #6e6e6e;
  --wg-line: #d8d8d8;
  --wg-soft: #f3f3f3;
  --wg-paper: #ffffff;
  --wg-yellow: #f7e64d;
  --wg-blue: #168197;
  --wg-red: #e33b2f;
  --wg-width: 1342px;
  --wg-gutter: 24px;
  --wg-sans: Inter, Arial, Helvetica, sans-serif;
  --wg-display: "Anton", "Roboto Condensed", Impact, sans-serif;
  --wg-slab: "Roboto Slab", Georgia, "Times New Roman", serif;
  --wg-condensed: "Roboto Condensed", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  --wg-mono: "Roboto Mono", Monaco, "Courier New", monospace;
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wg-paper);
  color: var(--wg-ink);
  font-family: var(--wg-sans);
  font-size: 16px;
  line-height: 1.55;
}

body.menu-open,
body.subscribe-modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--wg-blue);
}

@keyframes wg-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 12px;
  left: 12px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--wg-black);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 450;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--wg-black);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 56px auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 56px;
  max-width: none;
  padding: 0 16px;
  gap: 10px;
}

.menu-toggle {
  display: inline-flex;
  width: 44px;
  min-width: 44px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--wg-black);
  font-family: var(--wg-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.menu-toggle__icon {
  position: relative;
  display: inline-flex;
  width: 17px;
  height: 14px;
  align-items: center;
}

.menu-toggle__icon span,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  position: absolute;
  left: 0;
  width: 17px;
  height: 2px;
  background: var(--wg-black);
  content: "";
  transition: opacity 160ms ease, transform 180ms ease;
}

.menu-toggle__icon::before {
  transform: translateY(-5px);
}

.menu-toggle__icon::after {
  transform: translateY(5px);
}

body.menu-open .menu-toggle__icon span {
  opacity: 0;
}

body.menu-open .menu-toggle__icon::before {
  transform: translateY(0) rotate(45deg);
}

body.menu-open .menu-toggle__icon::after {
  transform: translateY(0) rotate(-45deg);
}

.site-branding {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--wg-black);
  font-family: var(--wg-display);
  font-size: clamp(2.05rem, 3vw, 2.9rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-title a {
  display: inline-flex;
  align-items: center;
}

.site-title a::first-letter {
  color: #fff;
  background: var(--wg-black);
}

.primary-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.primary-navigation .sub-menu {
  display: none;
}

.primary-navigation .nav-menu {
  flex-wrap: nowrap;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.primary-navigation .nav-menu > li {
  flex: 0 0 auto;
}

.nav-menu,
.menu,
.drawer-menu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a,
.menu a,
.header-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--wg-black);
  font-family: var(--wg-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-menu a,
.menu a,
.header-actions a:not(.subscribe-link) {
  padding-right: 4px;
  padding-left: 4px;
}

.nav-menu a:hover,
.nav-menu a:focus,
.menu a:hover,
.menu a:focus,
.header-actions a:not(.subscribe-link):hover,
.header-actions a:not(.subscribe-link):focus {
  color: #5f5f5f;
  background: #f2f2f2;
}

.site-drawer a:hover,
.site-drawer a:focus {
  color: var(--wg-black);
  background: var(--wg-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-actions .subscribe-link,
.button,
.search-submit,
.comment-form .submit,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border: 2px solid var(--wg-black);
  border-radius: 0;
  background: var(--wg-yellow);
  color: var(--wg-black);
  font-family: var(--wg-condensed);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.header-actions .subscribe-link {
  min-height: 32px;
  padding: 7px 12px;
  border-color: var(--wg-black);
  background: var(--wg-black);
  color: #fff;
  font-family: var(--wg-mono);
  font-size: 0.8125rem;
  font-weight: 700;
}

.header-actions .subscribe-link:hover,
.header-actions .subscribe-link:focus {
  background: #fff;
  color: var(--wg-black);
}

.drawer-backdrop {
  position: fixed;
  inset: 56px 0 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 180ms ease, background-color 180ms ease;
}

.site-drawer {
  position: fixed;
  top: 56px;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(490px, calc(100vw - 28px));
  overflow-y: auto;
  padding: 0 8px 28px;
  border-right: 1px solid var(--wg-black);
  background: #fff;
  transform: translateX(-100%);
  transition: transform 230ms ease;
}

body.admin-bar .drawer-backdrop {
  inset: 88px 0 0;
}

body.admin-bar .site-drawer {
  top: 88px;
}

body.menu-open .drawer-backdrop {
  z-index: 0;
  pointer-events: auto;
  background: rgba(153, 153, 153, 0.8);
  opacity: 1;
}

body.menu-open .site-drawer {
  transform: translateX(0);
}

.site-drawer .drawer-menu,
.site-drawer .nav-menu {
  display: grid;
  align-items: stretch;
  gap: 0;
}

.site-drawer .drawer-menu--primary,
.site-drawer .nav-menu {
  padding-top: 0;
}

.site-drawer .drawer-menu--more {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.site-drawer .drawer-menu > li,
.site-drawer .nav-menu > li {
  border-bottom: 1px solid #e5e5e5;
}

.site-drawer .menu-item-has-children {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: stretch;
}

.site-drawer .sub-menu {
  display: none;
}

.site-drawer.submenu-open > .drawer-navigation,
.site-drawer.submenu-open > .drawer-more-toggle,
.site-drawer.submenu-open > .drawer-utility {
  display: none;
}

.site-drawer .drawer-menu--primary a,
.site-drawer .nav-menu a {
  display: grid;
  min-height: 44px;
  align-items: center;
  padding: 0 0 0 0;
  font-family: var(--wg-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
}

.site-drawer .drawer-menu--more a {
  display: grid;
  min-height: 36px;
  align-items: center;
  padding-left: 18px;
  font-family: var(--wg-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.25;
  text-transform: none;
}

.drawer-more-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  width: 100%;
  min-height: 44px;
  align-items: center;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  background: transparent;
  color: var(--wg-black);
  font-family: var(--wg-sans);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.drawer-more-toggle span:first-child {
  padding-left: 0;
}

.drawer-more-toggle__icon {
  display: grid;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #e5e5e5;
  font-size: 1.15rem;
  font-weight: 400;
}

.drawer-navigation--more[hidden] {
  display: none;
}

.drawer-submenu-trigger {
  display: grid;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid #e5e5e5;
  background: transparent;
  color: var(--wg-black);
  font-family: var(--wg-sans);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.drawer-submenu-trigger:hover,
.drawer-submenu-trigger:focus {
  background: var(--wg-soft);
}

.drawer-submenu-panel {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 100%;
}

.drawer-submenu-panel[hidden] {
  display: none;
}

.drawer-submenu-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: start;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e5e5e5;
  background: transparent;
  color: var(--wg-black);
  font-family: var(--wg-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.drawer-submenu-back::before {
  content: "‹";
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  font-size: 1.25rem;
  line-height: 1;
}

.drawer-submenu-title {
  display: grid;
  min-height: 44px;
  align-items: center;
  margin: 0;
  border-bottom: 1px solid #e5e5e5;
  color: var(--wg-black);
  font-size: 1rem;
  font-weight: 800;
}

.drawer-submenu-list {
  display: grid;
  align-items: stretch;
  gap: 0;
}

.drawer-submenu-list li {
  border-bottom: 1px solid #e5e5e5;
}

.drawer-submenu-list a {
  display: grid;
  min-height: 44px;
  align-items: center;
  color: var(--wg-black);
  font-family: var(--wg-sans);
  font-size: 1rem;
  font-weight: 400;
}

.drawer-utility {
  display: grid;
  gap: 0;
  padding-top: 24px;
  margin-top: auto;
}

.drawer-subscribe {
  display: inline-grid;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--wg-black);
  background: var(--wg-black);
  color: #fff;
  font-family: var(--wg-sans);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.site-drawer .drawer-subscribe:hover,
.site-drawer .drawer-subscribe:focus {
  background: #fff;
  color: var(--wg-black);
}

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 720;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(0.85);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__panel {
  width: min(760px, 100%);
  padding: 26px 28px 24px;
  border: 1px solid var(--wg-black);
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.cookie-consent h2 {
  margin: 0 0 12px;
  color: var(--wg-black);
  font-family: var(--wg-sans);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.2;
}

.cookie-consent p {
  max-width: 64ch;
  margin: 0;
  color: var(--wg-copy);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 20px;
}

.cookie-consent__actions a {
  color: var(--wg-black);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__accept {
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid var(--wg-black);
  border-radius: 0;
  background: var(--wg-black);
  color: #fff;
  font-family: var(--wg-sans);
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
}

.cookie-consent__accept:hover,
.cookie-consent__accept:focus {
  background: #fff;
  color: var(--wg-black);
}

.subscribe-modal {
  position: fixed;
  inset: 0;
  z-index: 760;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.subscribe-modal[hidden] {
  display: none;
}

.subscribe-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.subscribe-modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: 34px 38px 38px;
  border: 3px solid var(--wg-black);
  background: #fff;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.18);
}

.subscribe-modal__panel::before {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 136px;
  height: 10px;
  background: var(--wg-yellow);
  content: "";
}

.subscribe-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wg-black);
  border-radius: 0;
  background: #fff;
  color: var(--wg-black);
  font-family: var(--wg-mono);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.subscribe-modal__close:hover,
.subscribe-modal__close:focus {
  background: var(--wg-black);
  color: #fff;
}

.subscribe-modal__eyebrow {
  margin: 0 0 12px;
  font-family: var(--wg-mono);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.subscribe-modal h2 {
  max-width: 620px;
  margin: 0;
  padding-right: 34px;
  font-family: var(--wg-display);
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 400;
  line-height: 0.9;
}

.subscribe-modal p:not(.subscribe-modal__eyebrow) {
  max-width: 520px;
  margin: 18px 0 24px;
  color: var(--wg-copy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.5;
}

.subscribe-modal__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 600px;
}

.subscribe-modal__form input {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 2px solid var(--wg-black);
  border-radius: 0;
  background: #fff;
  color: var(--wg-ink);
  font-family: var(--wg-sans);
}

.subscribe-modal__form .button {
  min-height: 54px;
  min-width: 140px;
  border-left: 0;
}

.subscribe-status {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--wg-black);
  font-family: var(--wg-mono);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.subscribe-form--success input {
  border-color: var(--wg-black);
}

.button:hover,
.button:focus,
.search-submit:hover,
.search-submit:focus,
.comment-form .submit:hover,
.comment-form .submit:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background: var(--wg-black);
  color: #fff;
}

.site-main,
.single-wrap,
.archive-wrap,
.site-footer__inner {
  max-width: var(--wg-width);
  margin: 0 auto;
  padding-right: var(--wg-gutter);
  padding-left: var(--wg-gutter);
}

.collage {
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(0, 1.65fr) minmax(240px, 0.95fr);
  gap: 32px;
  padding-top: 40px;
  margin-bottom: 44px;
}

.section-label {
  display: flex;
  align-items: center;
  margin: 0 0 24px;
  border-top: 3px solid var(--wg-black);
  color: #fff;
  font-family: var(--wg-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.section-label span {
  display: inline-flex;
  padding: 8px 12px 7px;
  background: var(--wg-black);
}

.rail-list,
.trending-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-card,
.trend-card {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--wg-line);
}

.mini-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.mini-card__image,
.card__image,
.lead-story__image,
.topic-card__image,
.topic-feature__image {
  display: block;
  overflow: hidden;
  background: #e8e8e8;
}

.mini-card__image img,
.card__image img,
.lead-story__image img,
.topic-card__image img,
.topic-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.mini-card:hover img,
.card:hover img,
.lead-story:hover img,
.topic-card:hover img,
.topic-feature:hover img {
  transform: scale(1.035);
}

.fallback-image {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 100%;
  place-items: center;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(0, 0, 0, 0.12) 48% 52%, transparent 52%),
    var(--wg-yellow);
  color: var(--wg-black);
}

.fallback-image span {
  font-family: var(--wg-condensed);
  font-size: clamp(1.4rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.mini-card__image {
  aspect-ratio: 1;
}

.eyebrow {
  margin: 0 0 9px;
  font-family: var(--wg-mono);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.lead-story {
  display: flex;
  flex-direction: column;
  padding: 36px 16px 0;
  text-align: center;
  border-right: 1px solid var(--wg-line);
  border-left: 1px solid var(--wg-line);
  animation: wg-rise 520ms ease both;
}

.lead-story__title,
.entry-title,
.archive-title,
.topic-title {
  margin: 0;
  font-family: var(--wg-display);
  font-size: clamp(2.9rem, 5.2vw, 4.75rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: none;
}

.lead-story__title {
  font-size: clamp(3.05rem, 4vw, 3.8rem);
  line-height: 0.94;
}

.lead-story__excerpt {
  max-width: 690px;
  margin: 22px auto 18px;
  color: var(--wg-copy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.45;
}

.byline,
.entry-meta,
.posted-on {
  color: var(--wg-black);
  font-family: var(--wg-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
}

.byline a,
.entry-meta a,
.posted-on a {
  color: inherit;
}

.lead-story__image {
  margin-top: 22px;
  width: 100%;
  min-height: clamp(330px, 32vw, 440px);
  aspect-ratio: 4 / 3;
}

.lead-story__stack {
  display: grid;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--wg-line);
  text-align: left;
}

.lead-stack-card {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--wg-line);
}

.lead-stack-card .eyebrow {
  margin-bottom: 8px;
  font-size: 0.78rem;
}

.lead-stack-card .trend-card__title {
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
  line-height: 1.08;
}

.lead-stack-card .card__excerpt {
  margin: 10px 0 0;
  color: var(--wg-copy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.4;
}

.trend-card__title,
.mini-card__title,
.card__title,
.topic-card__title {
  margin: 0;
  font-family: var(--wg-sans);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
}

.trend-card__title {
  font-size: clamp(1.45rem, 2vw, 2.1rem);
}

.mini-card__title {
  font-size: clamp(1.25rem, 1.6vw, 1.7rem);
}

.card__title {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
}

.package {
  padding: 46px 0;
  border-top: 3px solid var(--wg-black);
}

.package__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.package__title {
  margin: 0;
  font-family: var(--wg-display);
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: uppercase;
}

.text-link {
  color: var(--wg-blue);
  font-family: var(--wg-condensed);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.card {
  min-width: 0;
  animation: wg-rise 440ms ease both;
}

.card__image {
  aspect-ratio: 1;
  margin-bottom: 14px;
}

.card--wide {
  grid-column: span 2;
}

.card--wide .card__image {
  aspect-ratio: 16 / 9;
}

.card__excerpt {
  margin: 11px 0 14px;
  color: var(--wg-copy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.45;
}

.newsletter-strip {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) minmax(340px, 470px);
  gap: 0;
  align-items: stretch;
  margin: 58px 0 64px;
  padding: 0;
  border: 3px solid var(--wg-black);
  border-right-width: 3px;
  border-left-width: 0;
  border-top: 3px solid var(--wg-black);
  border-bottom: 3px solid var(--wg-black);
  background: #fff;
  color: var(--wg-black);
}

.newsletter-strip::before {
  content: "DISPATCH";
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
  background: var(--wg-black);
  color: #fff;
  font-family: var(--wg-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.newsletter-strip > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 190px;
  padding: 30px 34px;
}

.newsletter-strip__eyebrow {
  margin: 0 0 8px;
  font-family: var(--wg-mono);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.newsletter-strip h2 {
  max-width: 640px;
  margin: 0 0 12px;
  font-family: var(--wg-display);
  font-size: clamp(2.25rem, 3.35vw, 3.9rem);
  font-weight: 400;
  line-height: 0.94;
}

.newsletter-strip p {
  max-width: 620px;
  margin: 0;
  color: var(--wg-copy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.45;
}

.newsletter-strip .newsletter-form {
  align-self: center;
  width: 100%;
  padding: 34px 28px;
  border-left: 1px solid var(--wg-line);
}

.newsletter-form,
.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
}

.newsletter-form input,
.search-field,
.comment-form input,
.comment-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 2px solid var(--wg-black);
  border-radius: 0;
  background: #fff;
  color: var(--wg-ink);
  font-family: var(--wg-sans);
}

.newsletter-form .button,
.search-form .search-submit {
  min-height: 50px;
  border-left: 0;
}

.newsletter-strip .button {
  min-width: 132px;
}

.single-wrap.article-page {
  max-width: none;
  padding: 0;
}

.article-single {
  display: block;
}

.article-hero-media {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #ededed;
}

.article-hero-media.post-thumbnail {
  max-width: none;
  padding: 0;
}

.article-hero-media figure {
  width: 100%;
  margin: 0;
}

.article-hero-media img {
  display: block;
  width: 100%;
  height: clamp(390px, 66vw, 760px);
  max-height: none;
  object-fit: cover;
}

.article-hero-media figcaption,
.article-hero-media .wp-element-caption {
  max-width: var(--wg-width);
  margin: 0 auto;
  padding: 10px var(--wg-gutter) 0;
  color: var(--wg-black);
  font-family: var(--wg-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.article-hero {
  margin: 0;
  padding: 42px var(--wg-gutter) 28px;
  border-bottom: 0;
}

.article-hero__inner {
  max-width: var(--wg-width);
  margin: 0 auto;
}

.article-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--wg-black);
  font-family: var(--wg-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.article-meta-line a,
.article-meta-line time {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
}

.article-meta-line .article-author {
  padding: 0 11px;
  background: var(--wg-black);
  color: #fff;
}

.article-meta-line .article-section:hover,
.article-meta-line .article-section:focus {
  color: var(--wg-black);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-hero .entry-title {
  max-width: 1240px;
  font-family: var(--wg-slab);
  font-size: clamp(2.8rem, 5.15vw, 4.95rem);
  font-weight: 800;
  line-height: 1.03;
}

.post-thumbnail {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px var(--wg-gutter) 0;
}

.post-thumbnail img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.article-hero-media.post-thumbnail img,
.article-hero-media--content img {
  width: 100% !important;
  height: clamp(390px, 66vw, 760px);
  max-height: none;
  object-fit: cover;
}

.post-thumbnail figcaption {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--wg-muted);
  font-family: var(--wg-mono);
  font-size: 0.72rem;
  line-height: 1.45;
}

.article-body-layout {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  padding: 64px var(--wg-gutter) 76px;
}

.article-content-wrap {
  min-width: 0;
}

.entry-content {
  color: #222;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.45vw, 1.24rem);
  line-height: 1.74;
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 1.3em;
}

.entry-content > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.08em 0 0;
  font-family: var(--wg-display);
  font-size: 4.2em;
  line-height: 0.78;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.9em;
  color: var(--wg-black);
  font-family: var(--wg-condensed);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
}

.entry-content h2 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
}

.entry-content h3 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.entry-content a {
  color: var(--wg-black);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--wg-yellow);
  text-underline-offset: 0.18em;
}

.entry-content blockquote {
  margin: 2.15em 0;
  padding: 22px 0 22px 24px;
  border-top: 3px solid var(--wg-black);
  border-bottom: 1px solid var(--wg-line);
  border-left: 0;
  color: var(--wg-black);
  font-family: var(--wg-condensed);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 0.96;
}

.entry-footer {
  margin-top: 42px;
  padding-top: 0;
  border-top: 0;
  color: var(--wg-muted);
  font-family: var(--wg-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar {
  border-left: 1px solid var(--wg-line);
  padding-left: 28px;
}

.widget {
  margin-bottom: 34px;
}

.widget-title {
  margin: 0 0 12px;
  padding-top: 10px;
  border-top: 3px solid var(--wg-black);
  font-family: var(--wg-condensed);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget li {
  padding: 12px 0;
  border-bottom: 1px solid var(--wg-line);
}

.archive-wrap {
  padding-top: 52px;
}

.archive-header {
  margin-bottom: 34px;
  padding-bottom: 22px;
  border-bottom: 3px solid var(--wg-black);
}

.archive-description {
  max-width: 720px;
  color: var(--wg-copy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.topic-wrap {
  max-width: var(--wg-width);
  margin: 0 auto;
  padding: 88px var(--wg-gutter) 0;
}

.topic-header {
  max-width: 900px;
  margin: 0 auto 44px;
  text-align: center;
}

.topic-kicker {
  margin: 0 0 12px;
  font-family: var(--wg-mono);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.topic-title {
  font-family: var(--wg-display);
  font-size: clamp(4rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 0.9;
}

.topic-description {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--wg-black);
  font-family: var(--wg-sans);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  font-weight: 700;
  line-height: 1.4;
}

.topic-newsletter {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.35fr) auto;
  gap: 24px;
  align-items: stretch;
  margin: 0 0 52px;
  padding: 22px;
  border: 1px solid var(--wg-black);
  background: #fff;
}

.topic-newsletter__image {
  min-height: 182px;
  overflow: hidden;
  background: var(--wg-soft);
}

.topic-newsletter__image img,
.topic-newsletter__image .fallback-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-newsletter__content {
  align-self: center;
}

.topic-newsletter__kicker {
  margin: 0 0 10px;
  font-family: var(--wg-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.topic-newsletter h2 {
  max-width: 680px;
  margin: 0;
  font-family: var(--wg-display);
  font-size: clamp(2.4rem, 4vw, 4.1rem);
  font-weight: 400;
  line-height: 0.9;
}

.topic-newsletter p:not(.topic-newsletter__kicker) {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--wg-copy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.45;
}

.topic-newsletter__button {
  align-self: center;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--wg-black);
  background: var(--wg-black);
  color: #fff;
  font-family: var(--wg-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.topic-newsletter__button:hover,
.topic-newsletter__button:focus {
  background: #fff;
  color: var(--wg-black);
}

.topic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 64px;
  padding-top: 28px;
  border-top: 5px solid var(--wg-black);
}

.topic-feature {
  padding-bottom: 0;
  border-bottom: 1px solid var(--wg-line);
  animation: wg-rise 520ms ease both;
}

.topic-feature__image {
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
}

.topic-feature__title {
  max-width: 920px;
  margin: 0;
  font-family: var(--wg-sans);
  font-size: clamp(2.35rem, 3.2vw, 3.35rem);
  font-weight: 800;
  line-height: 0.98;
}

.topic-feature__excerpt {
  max-width: 650px;
  margin: 16px 0 14px;
  color: var(--wg-copy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  line-height: 1.45;
}

.topic-side {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--wg-line);
}

.topic-card {
  min-width: 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--wg-line);
  animation: wg-rise 460ms ease both;
}

.topic-card__image {
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
}

.topic-card__title {
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  line-height: 1.08;
}

.topic-card .card__excerpt {
  margin-bottom: 12px;
  color: var(--wg-copy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.42;
}

.topic-card__author {
  margin: 12px 0 0;
  color: var(--wg-black);
  font-family: var(--wg-mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.topic-card--side {
  padding: 22px 0;
}

.topic-card--side:first-child {
  padding-top: 0;
}

.topic-card--side .topic-card__image {
  aspect-ratio: 16 / 10;
}

.topic-card--side .card__excerpt {
  display: none;
}

.topic-section {
  padding-top: 34px;
  margin-top: 58px;
  border-top: 5px solid var(--wg-black);
}

.topic-section-title {
  margin: 0 0 24px;
  font-family: var(--wg-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}

.topic-grid--feature {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-grid .topic-card__image {
  aspect-ratio: 16 / 9;
}

.topic-grid .card__excerpt {
  display: none;
}

.topic-card--edition .card__excerpt {
  display: block;
}

.topic-latest-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 38px;
  border-top: 1px solid var(--wg-line);
}

.topic-latest-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--wg-line);
}

.topic-latest-card__image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--wg-soft);
}

.topic-latest-card__image img,
.topic-latest-card__image .fallback-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-latest-card__title {
  margin: 0;
  font-family: var(--wg-sans);
  font-size: clamp(1.18rem, 1.5vw, 1.45rem);
  font-weight: 800;
  line-height: 1.12;
}

.topic-grid .topic-card:nth-child(4n + 1) {
  animation-delay: 30ms;
}

.topic-grid .topic-card:nth-child(4n + 2) {
  animation-delay: 70ms;
}

.topic-grid .topic-card:nth-child(4n + 3) {
  animation-delay: 110ms;
}

.topic-grid .topic-card:nth-child(4n + 4) {
  animation-delay: 150ms;
}

.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.4fr) auto;
  gap: 28px;
  align-items: stretch;
  margin: 0 0 54px;
  padding: 22px;
  border: 1px solid var(--wg-black);
  background: #fff;
}

.portfolio-hero__mark {
  display: grid;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(0, 0, 0, 0.14) 46% 51%, transparent 51%),
    var(--wg-yellow);
}

.portfolio-hero__mark span {
  color: var(--wg-black);
  font-family: var(--wg-display);
  font-size: clamp(4.5rem, 10vw, 9rem);
  line-height: 0.8;
}

.portfolio-hero__content {
  align-self: center;
}

.portfolio-hero h2 {
  max-width: 780px;
  margin: 0;
  font-family: var(--wg-display);
  font-size: clamp(2.8rem, 4.8vw, 5.2rem);
  font-weight: 400;
  line-height: 0.9;
}

.portfolio-hero p:not(.topic-newsletter__kicker) {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--wg-copy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.45;
}

.portfolio-feature__image {
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
}

.portfolio-layout .topic-card__image {
  display: grid;
  place-items: center;
}

.portfolio-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--wg-line);
}

.portfolio-services p {
  display: flex;
  min-height: 86px;
  align-items: center;
  margin: 0;
  padding: 18px 20px;
  border-right: 1px solid var(--wg-line);
  border-bottom: 1px solid var(--wg-line);
  color: var(--wg-black);
  font-family: var(--wg-mono);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.portfolio-services p:nth-child(3n) {
  border-right: 0;
}

.portfolio-stat-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 0;
  margin: 0 0 58px;
  border: 1px solid var(--wg-black);
  background: #fff;
}

.portfolio-stat-hero__lead {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 360px;
  padding: 34px;
  background:
    linear-gradient(135deg, transparent 0 47%, rgba(0, 0, 0, 0.16) 47% 52%, transparent 52%),
    var(--wg-yellow);
}

.portfolio-stat-hero__lead .topic-newsletter__kicker {
  position: relative;
  z-index: 1;
  margin: 0;
}

.portfolio-stat-hero__lead strong {
  display: block;
  color: var(--wg-black);
  font-family: var(--wg-display);
  font-size: clamp(7rem, 15vw, 13.5rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.76;
}

.portfolio-stat-hero__lead span {
  max-width: 390px;
  color: var(--wg-black);
  font-family: var(--wg-sans);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 800;
  line-height: 1.25;
}

.portfolio-stat-hero__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-stat {
  display: grid;
  align-content: space-between;
  min-height: 180px;
  padding: 26px 28px;
  border-left: 1px solid var(--wg-black);
  border-bottom: 1px solid var(--wg-black);
}

.portfolio-stat:nth-child(3),
.portfolio-stat:nth-child(4) {
  border-bottom: 0;
}

.portfolio-stat strong,
.portfolio-metric-table strong {
  display: block;
  color: var(--wg-black);
  font-family: var(--wg-display);
  font-size: clamp(4rem, 8vw, 7.4rem);
  font-weight: 400;
  line-height: 0.78;
}

.portfolio-stat span,
.portfolio-metric-table span,
.portfolio-bars span,
.portfolio-bars strong {
  color: var(--wg-black);
  font-family: var(--wg-mono);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.portfolio-metric-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--wg-line);
  border-left: 1px solid var(--wg-line);
}

.portfolio-metric-table div {
  min-height: 220px;
  padding: 24px;
  border-right: 1px solid var(--wg-line);
  border-bottom: 1px solid var(--wg-line);
}

.portfolio-metric-table span {
  display: block;
  margin-bottom: 44px;
}

.portfolio-bars {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--wg-line);
}

.portfolio-bars div {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 1fr) 62px;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  border-bottom: 1px solid var(--wg-line);
}

.portfolio-bars b {
  position: relative;
  display: block;
  height: 16px;
  background: var(--wg-soft);
}

.portfolio-bars b::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: var(--wg-black);
  content: "";
}

.portfolio-bars strong {
  justify-self: end;
}

.site-footer {
  margin-top: 64px;
  background: var(--wg-black);
  color: #fff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 32px;
  max-width: var(--wg-width);
  padding-top: 32px;
  padding-bottom: 60px;
}

.site-footer .site-title {
  color: #fff;
}

.footer-brand {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 32px;
  min-height: 177px;
  padding: 32px 0 32px;
  border-bottom: 1px solid #333;
  text-align: left;
}

.footer-brand .site-title {
  grid-column: 1 / 4;
  justify-content: flex-start;
  align-self: start;
  font-family: var(--wg-display);
  font-size: clamp(2.1rem, 3vw, 3.3rem);
  line-height: 0.9;
}

.site-footer p:not(.site-title),
.footer-menu a {
  color: #f3f3f3;
}

.footer-menu {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a {
  display: inline-flex;
  min-height: 16px;
  align-items: center;
  font-family: var(--wg-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.footer-menu a:hover,
.footer-menu a:focus {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.footer-heading {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--wg-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.footer-section {
  grid-column: span 6;
  min-height: 200px;
  padding: 30px 0 28px;
}

.footer-section--more {
  grid-column: 1 / 7;
}

.footer-section--wide:nth-of-type(2) {
  grid-column: 7 / -1;
}

.footer-intro {
  grid-column: 1 / 7;
  max-width: 670px;
  margin: 26px 0 0;
  color: #f3f3f3;
  font-family: var(--wg-mono);
  font-size: 0.8125rem;
  line-height: 1.43;
  text-align: left;
}

.footer-menu--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.footer-utility {
  grid-column: 1 / -1;
  padding: 30px 0 0;
  border-top: 1px solid #333;
  border-bottom: 0;
}

.footer-social,
.footer-copy {
  grid-column: 1 / -1;
}

.footer-utility .footer-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
  min-height: 65px;
  padding-bottom: 28px;
  border-bottom: 1px solid #333;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  padding: 26px 0 0;
  font-family: var(--wg-mono);
  text-align: center;
}

.footer-social a {
  color: #757575;
  font-family: var(--wg-mono);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
  text-transform: none;
}

.footer-social a:hover,
.footer-social a:focus {
  color: #f3f3f3;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.site-footer p.footer-copy {
  max-width: 900px;
  margin: 16px auto 0;
  color: #757575;
  font-family: var(--wg-mono);
  font-size: 0.6875rem;
  line-height: 1.45;
  text-align: center;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 2px solid var(--wg-black);
  font-family: var(--wg-condensed);
  font-weight: 900;
}

.page-numbers.current,
.nav-links .current {
  background: var(--wg-black);
  color: #fff;
}

.comments-area {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 5px solid var(--wg-black);
}

@media (max-width: 980px) {
  .site-header__inner {
    grid-template-columns: 86px minmax(0, 1fr) auto;
  }

  .primary-navigation {
    display: none;
  }

  .site-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .site-drawer {
    width: min(490px, calc(100vw - 18px));
  }
}

@media (max-width: 782px) {
  body.admin-bar .drawer-backdrop {
    inset: 102px 0 0;
  }

  body.admin-bar .site-drawer {
    top: 102px;
  }
}

@media (max-width: 1180px) {
  .collage {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  }

  .topic-wrap {
    padding-top: 72px;
  }

  .topic-newsletter {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  }

  .portfolio-hero {
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  }

  .portfolio-stat-hero,
  .portfolio-metric-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-newsletter__button {
    grid-column: 2;
    justify-self: start;
  }

  .portfolio-hero .topic-newsletter__button {
    grid-column: 2;
  }

  .topic-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .today-rail {
    grid-column: 1 / -1;
  }

  .rail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .mini-card {
    margin-bottom: 0;
  }

  .lead-story {
    border-left: 0;
  }

  .lead-story__image {
    min-height: clamp(300px, 48vw, 440px);
    aspect-ratio: 4 / 3;
  }

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

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

  .topic-grid--feature {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topic-latest-list {
    grid-template-columns: 1fr;
  }

  .article-body-layout {
    max-width: 760px;
    padding-top: 40px;
  }

  .sidebar {
    border-left: 0;
    border-top: 3px solid var(--wg-black);
    padding: 28px 0 0;
  }
}

@media (max-width: 780px) {
  :root {
    --wg-gutter: 18px;
  }

  .site-header__inner {
    gap: 12px;
  }

  .header-actions a:not(.subscribe-link) {
    display: none;
  }

  .collage,
  .newsletter-strip,
  .rail-list,
  .card-grid,
  .topic-newsletter,
  .portfolio-hero,
  .portfolio-stat-hero,
  .portfolio-stat-hero__grid,
  .portfolio-metric-table,
  .portfolio-services,
  .topic-side,
  .topic-grid,
  .topic-grid--feature,
  .topic-latest-list {
    grid-template-columns: 1fr;
  }

  .topic-wrap {
    padding-top: 44px;
  }

  .topic-header {
    margin-bottom: 28px;
  }

  .topic-description {
    font-size: 1rem;
  }

  .topic-newsletter {
    gap: 0;
    padding: 0;
  }

  .topic-newsletter__image {
    min-height: 180px;
  }

  .portfolio-hero {
    gap: 0;
    padding: 0;
  }

  .portfolio-hero__mark {
    min-height: 190px;
  }

  .portfolio-hero__content {
    padding: 24px 20px 18px;
  }

  .portfolio-stat-hero__lead {
    min-height: 260px;
    padding: 26px 22px;
  }

  .portfolio-stat {
    min-height: 140px;
    border-left: 0;
  }

  .portfolio-stat:nth-child(3) {
    border-bottom: 1px solid var(--wg-black);
  }

  .portfolio-metric-table div {
    min-height: 160px;
    padding: 20px;
  }

  .portfolio-metric-table span {
    margin-bottom: 30px;
  }

  .portfolio-bars div {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 0;
  }

  .portfolio-bars strong {
    justify-self: start;
  }

  .topic-newsletter__content {
    padding: 24px 20px 18px;
  }

  .topic-newsletter__button {
    grid-column: auto;
    justify-self: stretch;
    margin: 0 20px 20px;
  }

  .portfolio-hero .topic-newsletter__button {
    grid-column: auto;
  }

  .topic-feature__title {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .topic-latest-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
  }

  .portfolio-services p,
  .portfolio-services p:nth-child(3n) {
    border-right: 0;
  }

  .lead-story {
    order: 1;
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }

  .today-rail {
    order: 2;
  }

  .trending-rail {
    order: 3;
  }

  .lead-story__image {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .lead-story__stack {
    margin-top: 20px;
  }

  .newsletter-strip::before {
    min-height: 44px;
    padding: 14px 18px;
  }

  .newsletter-strip > div {
    min-height: 0;
    padding: 26px 22px 20px;
  }

  .newsletter-strip .newsletter-form {
    padding: 0 22px 26px;
    border-left: 0;
  }

  .newsletter-strip h2 {
    max-width: none;
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .lead-story__title,
  .archive-title,
  .topic-title {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .article-hero {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  .article-meta-line {
    gap: 10px 12px;
    margin-bottom: 18px;
    font-size: 0.66rem;
  }

  .article-hero .entry-title {
    font-size: clamp(2.2rem, 8.8vw, 3.3rem);
    line-height: 1.06;
  }

  .post-thumbnail {
    padding-top: 10px;
  }

  .post-thumbnail img,
  .article-hero-media.post-thumbnail img,
  .article-hero-media--content img {
    height: clamp(280px, 72vw, 430px);
    max-height: none;
  }

  .article-body-layout {
    padding-top: 36px;
    padding-bottom: 54px;
  }

  .entry-content > p:first-of-type::first-letter {
    font-size: 3.4em;
  }

  .card--wide {
    grid-column: auto;
  }

  .newsletter-form,
  .search-form,
  .subscribe-modal__form {
    grid-template-columns: 1fr;
  }

  .subscribe-modal__panel {
    padding: 30px 22px 24px;
  }

  .subscribe-modal h2 {
    padding-right: 36px;
    font-size: clamp(2.7rem, 13vw, 4.6rem);
  }

  .subscribe-modal__form .button {
    border-top: 0;
    border-left: 2px solid var(--wg-black);
  }

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

  .footer-brand {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 30px 0;
  }

  .footer-brand .site-title,
  .footer-intro,
  .footer-section,
  .footer-section--more,
  .footer-section--wide:nth-of-type(2),
  .footer-utility,
  .footer-social,
  .footer-copy {
    grid-column: 1 / -1;
  }

  .footer-intro {
    margin-top: 20px;
    text-align: left;
  }

  .footer-section {
    min-height: 0;
    padding: 26px 0;
    border-bottom: 1px solid #333;
  }

  .footer-menu--columns,
  .footer-form,
  .footer-utility .footer-menu {
    grid-template-columns: 1fr;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-copy {
    margin-top: 18px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .site-title {
    font-size: 2rem;
  }

  .site-header__inner {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    padding-right: 12px;
    padding-left: 12px;
  }

  .menu-toggle {
    width: 40px;
    min-width: 40px;
  }

  .header-actions .subscribe-link {
    padding-right: 0;
    padding-left: 0;
    border: 0;
  }

  .mini-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .newsletter-strip {
    padding: 0;
  }

  .cookie-consent {
    padding: 12px;
  }

  .subscribe-modal {
    padding: 14px;
  }

  .cookie-consent__panel {
    padding: 22px 18px 18px;
  }

  .cookie-consent__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-consent__accept {
    width: 100%;
  }
}

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