:root {
  --ecm-red: #c90008;
  --ecm-red-dark: #a80006;
  --ecm-charcoal: #171b1e;
  --ecm-ink: #202428;
  --ecm-muted: #656c72;
  --ecm-line: #dde0e2;
  --ecm-cream: #faf7f0;
  --ecm-yellow: #f3db00;
  --ecm-white: #fff;
  --ecm-shell: min(1320px, calc(100% - 64px));
  --ecm-serif: "Source Serif 4", Georgia, serif;
  --ecm-sans: "Libre Franklin", Arial, sans-serif;
  --ecm-condensed: "Barlow Condensed", Arial Narrow, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ecm-white);
  color: var(--ecm-ink);
  font-family: var(--ecm-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body.menu-is-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ecm-red); }
button, input, textarea { font: inherit; }
.shell { width: var(--ecm-shell); margin-inline: auto; }
.shell--reading { max-width: 790px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus, .skip-link:focus {
  top: 8px; left: 8px; z-index: 9999; width: auto; height: auto; padding: 12px 16px;
  clip: auto; background: #fff; color: #111; font-weight: 700;
}

.site-header { position: relative; z-index: 20; background: var(--ecm-red); color: #fff; }
.site-header__inner { min-height: 102px; display: grid; grid-template-columns: 300px 1fr 290px; gap: 14px; align-items: center; }
.site-brand { display: inline-flex; align-items: center; align-self: stretch; }
.brand-lockup { display: block; width: 240px; max-width: none; height: auto; }
.site-brand img, .site-brand .custom-logo { width: 240px; max-width: none; max-height: 102px; object-fit: contain; transform: translateX(-8px); }
.site-brand a, .site-brand .custom-logo-link { display: inline-flex; width: 240px; }
.primary-navigation ul { display: flex; justify-content: center; gap: clamp(18px, 2vw, 36px); padding: 0; margin: 0; list-style: none; }
.primary-navigation a {
  position: relative; display: block; padding: 38px 0 34px; color: #fff;
  font-family: var(--ecm-condensed); font-size: 18px; font-weight: 700; line-height: 1;
  text-transform: uppercase; white-space: nowrap;
}
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: #fff; }
.primary-navigation a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 23px; height: 3px;
  background: var(--ecm-yellow); transition: right .2s ease;
}
.primary-navigation a:hover::after, .primary-navigation .current-menu-item > a::after { right: 0; }
.menu-toggle { display: none; border: 0; background: transparent; color: #fff; padding: 10px; cursor: pointer; }
.menu-toggle .dashicons { font-size: 30px; width: 30px; height: 30px; }
.search-form { display: flex; min-width: 0; }
.search-form label { flex: 1; min-width: 0; }
.search-field { width: 100%; height: 44px; padding: 0 15px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: inherit; border-radius: 0; }
.search-field::placeholder { color: currentColor; opacity: .75; }
.search-field:focus { outline: 3px solid var(--ecm-yellow); outline-offset: 2px; }
.search-submit { width: 48px; height: 44px; border: 1px solid rgba(255,255,255,.5); border-left: 0; background: transparent; color: inherit; cursor: pointer; }
.search-submit:hover { background: rgba(255,255,255,.12); }
.search-submit:focus-visible, .menu-toggle:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--ecm-yellow); outline-offset: 3px; }

.lead-story { background: var(--ecm-cream); border-bottom: 1px solid var(--ecm-line); }
.lead-story__content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); min-height: 435px; }
.lead-story__copy { align-self: center; width: min(610px, calc(100% - 64px)); margin-left: max(32px, calc((100vw - 1320px) / 2)); padding: 48px 60px 40px 0; }
.eyebrow, .story-category {
  color: var(--ecm-red); font-family: var(--ecm-condensed); font-size: 16px; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase;
}
.lead-story h1 { margin: 10px 0 16px; font-family: var(--ecm-serif); font-size: clamp(42px, 4.2vw, 66px); line-height: .98; letter-spacing: -.035em; }
.lead-story h1 a:hover { color: var(--ecm-red); }
.lead-story__copy > p { max-width: 570px; margin: 0; color: #3f454b; font-size: 17px; line-height: 1.55; }
.lead-story__actions { display: flex; align-items: center; gap: 24px; margin-top: 25px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px;
  background: var(--ecm-red); color: #fff; font-family: var(--ecm-condensed); font-size: 18px; font-weight: 700; text-transform: uppercase;
}
.button:hover { background: var(--ecm-red-dark); color: #fff; }
.text-link { color: var(--ecm-red); font-weight: 700; }
.post-meta { margin-top: 18px; color: var(--ecm-muted); font-size: 13px; }
.post-meta span { margin-inline: 7px; }
.lead-story__media { min-height: 435px; overflow: hidden; }
.lead-story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lead-story__media:hover img { transform: scale(1.015); }

.story-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-block: 28px; }
.story-strip__item { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding: 0 26px; border-right: 1px solid var(--ecm-line); }
.story-strip__item:first-child { padding-left: 0; }
.story-strip__item:last-child { padding-right: 0; border-right: 0; }
.story-strip__image { height: 174px; overflow: hidden; background: #eee; }
.story-strip__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.story-strip__item:hover img { transform: scale(1.03); }
.story-strip h2 { margin: 6px 0 8px; font-family: var(--ecm-serif); font-size: 23px; line-height: 1.05; letter-spacing: -.02em; }
.story-strip p { margin: 0; color: #555d63; font-size: 13px; line-height: 1.45; }
.story-strip .post-meta { margin-top: 10px; }

.trending { border-block: 1px solid var(--ecm-line); background: #fcfcfb; }
.trending__inner { min-height: 66px; display: flex; align-items: center; gap: 30px; }
.trending strong { display: inline-flex; align-items: center; gap: 10px; color: var(--ecm-red); font-family: var(--ecm-condensed); font-size: 20px; text-transform: uppercase; white-space: nowrap; }
.trending__links { display: flex; min-width: 0; flex: 1; gap: 0; overflow: hidden; }
.trending__links a { position: relative; padding: 0 28px; font-size: 13px; white-space: nowrap; }
.trending__links a::after { content: ""; position: absolute; right: -2px; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--ecm-red); }

.guides { background: var(--ecm-charcoal); color: #fff; }
.guides__grid { display: grid; grid-template-columns: 1.15fr repeat(3, 1.35fr); min-height: 215px; }
.guides__intro, .guide { padding: 36px 30px; border-right: 1px solid rgba(255,255,255,.24); }
.guides__intro { padding-left: 0; }
.guide:last-child { border-right: 0; padding-right: 0; }
.guides h2 { position: relative; margin: 0 0 23px; font-family: var(--ecm-condensed); font-size: 29px; line-height: 1; text-transform: uppercase; }
.guides h2::after { content: ""; position: absolute; bottom: -10px; left: 0; width: 68px; height: 3px; background: var(--ecm-yellow); }
.guides__intro p { margin: 0; color: #d8dadd; font-size: 14px; line-height: 1.5; }
.guide { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; align-items: start; color: #fff; }
.guide:hover { color: #fff; background: rgba(255,255,255,.025); }
.guide > .dashicons { width: 64px; height: 64px; color: var(--ecm-red); font-size: 62px; line-height: 1; }
.guide strong { display: block; font-family: var(--ecm-condensed); font-size: 25px; line-height: .95; }
.guide small { display: block; margin-top: 12px; color: #d9dbdd; font-size: 13px; line-height: 1.45; }
.guide em { display: block; margin-top: 15px; color: var(--ecm-yellow); font-family: var(--ecm-condensed); font-size: 16px; font-style: normal; font-weight: 700; text-transform: uppercase; }

.latest, .content-shell { padding-block: 70px; }
.section-heading { margin-bottom: 30px; }
.section-heading h2, .archive-header h1 { margin: 4px 0 0; font-family: var(--ecm-serif); font-size: clamp(38px, 4vw, 56px); line-height: 1.05; letter-spacing: -.03em; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px 28px; }
.post-card { min-width: 0; }
.post-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eee; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card__image img { transform: scale(1.025); }
.post-card__body { padding-top: 18px; }
.post-card h2 { margin: 6px 0 10px; font-family: var(--ecm-serif); font-size: 27px; line-height: 1.08; letter-spacing: -.025em; }
.post-card p { margin: 0; color: #555d63; font-size: 14px; }
.post-card .post-meta { margin-top: 14px; }
.archive-header { margin-bottom: 40px; }
.archive-description { max-width: 760px; color: var(--ecm-muted); }
.pagination { margin-top: 50px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ecm-line); padding: 6px 12px; }
.page-numbers.current, .page-numbers:hover { background: var(--ecm-red); border-color: var(--ecm-red); color: #fff; }

article.single-post { padding-block: 70px; }
.single-post__header { text-align: left; }
.single-post__header h1 { margin: 10px 0 18px; font-family: var(--ecm-serif); font-size: clamp(44px, 6vw, 76px); line-height: .98; letter-spacing: -.04em; }
.single-post__dek { margin: 0; color: #555d63; font-family: var(--ecm-serif); font-size: 23px; line-height: 1.4; }
.single-post__hero { margin-top: 42px; }
.single-post__hero img { width: 100%; max-height: 680px; object-fit: cover; }
.single-post__hero figcaption { padding-top: 8px; color: var(--ecm-muted); font-size: 12px; }
.entry-content { padding-top: 45px; font-family: var(--ecm-serif); font-size: 20px; font-weight: 400; line-height: 1.78; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { font-family: var(--ecm-sans); line-height: 1.2; }
.entry-content strong, .entry-content b { font-weight: 700; }
.entry-content a { color: var(--ecm-red); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 36px 0; padding: 8px 0 8px 28px; border-left: 4px solid var(--ecm-red); font-size: 1.18em; }
.entry-content img { height: auto; }
.single-post__footer { padding-top: 32px; }
.tag-list a { display: inline-block; margin: 0 6px 6px 0; padding: 5px 10px; background: var(--ecm-cream); color: var(--ecm-red); font-size: 13px; }
.post-navigation { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--ecm-line); }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { font-family: var(--ecm-serif); font-size: 18px; }
.post-navigation span { display: block; color: var(--ecm-red); font-family: var(--ecm-condensed); font-size: 14px; font-weight: 700; text-transform: uppercase; }
.page-entry, .not-found { padding-block: 70px; }
.not-found h1 { margin: 8px 0 12px; font-family: var(--ecm-serif); font-size: clamp(40px, 6vw, 70px); line-height: 1; }
.not-found .search-form, .empty-state .search-form { max-width: 520px; margin-block: 25px; color: #222; }
.not-found .search-field, .empty-state .search-field { border-color: #aaa; }
.not-found .search-submit, .empty-state .search-submit { border-color: #aaa; background: var(--ecm-red); color: #fff; }
.comments-area { margin-top: 45px; padding-top: 35px; border-top: 1px solid var(--ecm-line); }
.comment-list { padding-left: 24px; }
.comment-list li { margin-bottom: 24px; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 12px; border: 1px solid #bbb; }
.comment-form .submit { border: 0; background: var(--ecm-red); color: #fff; padding: 12px 20px; cursor: pointer; }

.site-footer { padding-top: 55px; background: #101316; color: #d9dcdf; }
.site-footer__masthead { display: grid; grid-template-columns: 300px minmax(260px, 1fr) auto; gap: 40px; align-items: center; }
.site-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px; margin-top: 40px; }
.site-footer__logo { width: 240px; max-width: 100%; margin: 0 0 18px -8px; }
.site-footer p { max-width: 350px; color: #aeb4b8; }
.site-footer__tagline { justify-self: center; margin: 0; text-align: center; }
.site-social { display: flex; flex-wrap: wrap; justify-content: flex-end; justify-self: end; gap: 12px 22px; margin: 0; }
.site-social a { display: inline-flex; flex-direction: column; color: #fff; font-size: 13px; line-height: 1.25; }
.site-social a:hover { color: var(--ecm-yellow); }
.site-social span { color: #959ba0; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.site-social strong { font-weight: 600; }
.footer-navigation ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.footer-navigation a:hover { color: var(--ecm-yellow); }
.footer-widget__title { color: #fff; font-family: var(--ecm-condensed); text-transform: uppercase; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-block: 20px; border-top: 1px solid #303438; color: #959ba0; font-size: 13px; }

@media (min-width: 1181px) {
  .site-header__inner, .site-footer__masthead, .site-footer__grid, .site-footer__bottom { width: min(1392px, calc(100% - 96px)); }
  .lead-story__content { width: min(1392px, calc(100% - 96px)); margin-inline: auto; }
  .lead-story__copy { width: auto; margin-left: 0; padding-left: 6px; }
}

@media (max-width: 1180px) {
  :root { --ecm-shell: min(100% - 40px, 1080px); }
  .site-header__inner { grid-template-columns: 250px 1fr; gap: 20px; }
  .site-brand img, .site-brand .custom-logo, .site-brand a, .site-brand .custom-logo-link { width: 200px; }
  .header-search { display: none; }
  .primary-navigation ul { justify-content: flex-end; gap: 20px; }
  .primary-navigation a { font-size: 16px; }
  .lead-story__copy { margin-left: 20px; width: calc(100% - 20px); }
  .story-strip__item { grid-template-columns: 105px minmax(0,1fr); padding-inline: 18px; }
  .guides__grid { grid-template-columns: repeat(3, 1fr); }
  .guides__intro { grid-column: 1 / -1; min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.24); padding: 28px 0; }
  .guide:first-of-type { padding-left: 0; }
}

@media (max-width: 960px) {
  :root { --ecm-shell: min(100% - 32px, 760px); }
  .site-header__inner { min-height: 82px; grid-template-columns: 1fr auto; gap: 10px; }
  .site-brand img, .site-brand .custom-logo, .site-brand a, .site-brand .custom-logo-link { width: 170px; max-height: 68px; }
  .menu-toggle { display: inline-flex; }
  .primary-navigation { position: absolute; top: 100%; left: 0; right: 0; display: none; background: var(--ecm-red); border-top: 1px solid rgba(255,255,255,.2); box-shadow: 0 18px 35px rgba(0,0,0,.2); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: block; width: var(--ecm-shell); margin-inline: auto; padding-block: 12px 20px; }
  .primary-navigation a { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .primary-navigation a::after { display: none; }
  .lead-story__content { grid-template-columns: 1fr; }
  .lead-story__copy { order: 2; width: var(--ecm-shell); margin-inline: auto; padding: 40px 0 45px; }
  .lead-story__media { order: 1; min-height: 370px; }
  .story-strip { grid-template-columns: 1fr; padding-block: 12px; }
  .story-strip__item, .story-strip__item:first-child, .story-strip__item:last-child { grid-template-columns: 150px minmax(0,1fr); padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--ecm-line); }
  .story-strip__item:last-child { border-bottom: 0; }
  .story-strip__image { height: 150px; }
  .trending__inner { align-items: flex-start; padding-block: 18px; }
  .trending__links { display: grid; gap: 8px; }
  .trending__links a { white-space: normal; padding-inline: 0; }
  .trending__links a::after { display: none; }
  .guides__grid { grid-template-columns: 1fr; }
  .guide, .guide:first-of-type, .guide:last-child { padding: 28px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.24); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__masthead { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer__brand { grid-column: 1; grid-row: 1; }
  .site-social { grid-column: 2; grid-row: 1; align-self: center; }
  .site-footer__tagline { grid-column: 1 / -1; grid-row: 2; justify-self: start; text-align: left; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --ecm-shell: calc(100% - 32px); }
  body { font-size: 15px; }
  .site-brand img, .site-brand .custom-logo, .site-brand a, .site-brand .custom-logo-link { width: 150px; }
  .lead-story__media { min-height: 255px; }
  .lead-story h1 { font-size: 40px; }
  .lead-story__actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .story-strip__item, .story-strip__item:first-child, .story-strip__item:last-child { grid-template-columns: 108px minmax(0,1fr); gap: 14px; }
  .story-strip__image { height: 122px; }
  .story-strip h2 { font-size: 20px; }
  .story-strip p { display: none; }
  .trending__inner { display: block; }
  .trending strong { margin-bottom: 12px; }
  .guide { grid-template-columns: 52px minmax(0,1fr); }
  .guide > .dashicons { width: 52px; height: 52px; font-size: 50px; }
  .post-grid { grid-template-columns: 1fr; }
  .latest, .content-shell, article.single-post, .page-entry { padding-block: 48px; }
  .single-post__header h1 { font-size: 45px; }
  .single-post__dek { font-size: 20px; }
  .entry-content { padding-top: 32px; font-size: 18px; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 25px; }
  .site-footer__masthead { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
  .site-footer__tagline { order: 2; text-align: left; }
  .site-social { order: 3; justify-content: flex-start; justify-self: auto; }
  .site-footer__bottom { flex-direction: column; }
}

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