.blog-page {
  background: #eef1f2;
  color: #182637;
}

.blog-page .site-header {
  position: sticky;
  top: 1rem;
}

.blog-masthead {
  background: #121514;
  color: #fffaf0;
  margin-top: -7rem;
  overflow: hidden;
  padding: 13.5rem clamp(1.25rem, 6vw, 6.5rem) 3.4rem;
  position: relative;
}

.blog-masthead::after {
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.blog-masthead-inner {
  margin: 0 auto;
  max-width: 76rem;
  position: relative;
  z-index: 1;
}

.blog-masthead-copy {
  align-items: end;
  display: grid;
  gap: clamp(1.5rem, 6vw, 7rem);
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr);
  margin-top: .7rem;
}

.blog-masthead h1 {
  font-size: clamp(3rem, 6vw, 6.2rem);
  letter-spacing: 0;
  line-height: .93;
  margin: 0;
}

.blog-masthead-copy > p {
  border-left: 2px solid #cc6b2a;
  color: #c7c5bd;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 .35rem;
  padding-left: 1rem;
}

.blog-topic-row {
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  gap: 1.6rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
}

.blog-topic-row span {
  color: #a8aaa6;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-topic-row span:first-child { color: #ef9b58; }

.blog-feed {
  margin: 0 auto;
  max-width: 82rem;
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.25rem, 5vw, 4.5rem);
}

.blog-feed-heading {
  align-items: end;
  border-bottom: 1px solid #bfc8cc;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
}

.blog-feed-heading h2 {
  color: #194f7e;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  margin: .25rem 0 0;
}

.blog-feed-heading > span {
  color: #687984;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-post-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.blog-card,
.blog-empty-state {
  background: #fff;
  border: 1px solid #d4dde1;
  border-radius: 6px;
  box-shadow: 0 15px 40px rgba(35, 55, 67, .08);
  grid-column: span 5;
  overflow: hidden;
  position: relative;
}

.blog-card::after {
  background: #182637;
  border-radius: 4px;
  color: #fff;
  content: attr(data-index);
  font-size: .62rem;
  font-weight: 800;
  padding: .42rem .5rem;
  position: absolute;
  right: .75rem;
  top: .75rem;
  z-index: 2;
}

.blog-card-featured {
  grid-column: span 7;
  grid-row: span 2;
}

.blog-card-media {
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.blog-card-featured .blog-card-media { aspect-ratio: 16 / 10; }

.blog-card-media img,
.blog-card-media video,
.blog-card-media iframe {
  border: 0;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  width: 100%;
}

.blog-card:hover .blog-card-media img { transform: scale(1.025); }

.blog-card-content {
  padding: 1.15rem 1.2rem 1.25rem;
}

.blog-card-featured .blog-card-content { padding: clamp(1.35rem, 2.5vw, 2.1rem); }

.blog-card-meta {
  align-items: center;
  color: #76858e;
  display: flex;
  font-size: .64rem;
  font-weight: 750;
  gap: .9rem;
  justify-content: flex-start;
  text-transform: uppercase;
}

.blog-card-meta > span,
.blog-card-meta time {
  align-items: center;
  display: inline-flex;
  gap: .3rem;
}

.blog-card-meta > span { color: #bd5e22; }
.blog-card-meta .ph { font-size: .8rem; }

.blog-card h2 {
  color: #17528a;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.18;
  margin: .8rem 0 .55rem;
}

.blog-card-featured h2 {
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  line-height: 1.04;
  max-width: 15ch;
}

.blog-card-content > p,
.blog-story-body p {
  color: #66757e;
  font-size: .9rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.blog-story-details {
  border-top: 1px solid #dde4e7;
  margin-top: 1rem;
  padding-top: .8rem;
}

.blog-story-details summary {
  align-items: center;
  color: #174f81;
  cursor: pointer;
  display: flex;
  font-size: .72rem;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  text-transform: uppercase;
}

.blog-story-details summary::-webkit-details-marker { display: none; }
.blog-story-details summary .ph { color: #bd5e22; font-size: 1rem; transition: transform .2s ease; }
.blog-story-details[open] summary .ph { transform: rotate(90deg); }
.blog-story-body { padding-top: .45rem; }

.blog-empty-state {
  grid-column: 1 / -1;
  min-height: 20rem;
  padding: clamp(2rem, 5vw, 5rem);
}

.blog-empty-state span {
  color: #bd5e22;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-empty-state h3 {
  color: #17528a;
  font-size: clamp(2rem, 4vw, 4rem);
  margin: 1rem 0;
  max-width: 12ch;
}

.blog-page .site-footer a { color: inherit; }

@media (max-width: 900px) {
  .blog-masthead-copy { grid-template-columns: 1fr; }
  .blog-masthead-copy > p { max-width: 38rem; }
  .blog-card,
  .blog-card-featured { grid-column: span 6; grid-row: auto; }
  .blog-card-featured { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .blog-page .site-header { top: .5rem; }
  .blog-masthead { margin-top: -6rem; padding-top: 11.5rem; }
  .blog-masthead h1 { font-size: 3.25rem; }
  .blog-topic-row { gap: .8rem; justify-content: space-between; }
  .blog-post-grid { display: grid; grid-template-columns: 1fr; }
  .blog-card,
  .blog-card-featured { grid-column: 1; }
  .blog-card-featured .blog-card-media { aspect-ratio: 16 / 10; }
  .blog-feed-heading { align-items: start; }
}
