/* Blog pages. Shares tokens and chrome with the landing stylesheet. */

.blog {
  padding-top: 72px;
}
.bhead {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr);
  gap: 40px 48px;
  align-items: end;
}
.bhead .lead {
  margin-top: 16px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.4;
}
.crumbs a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bsearch {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bsearch .input {
  background: transparent;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1.5px solid var(--primary);
  border-radius: 4px;
  color: var(--primary);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.chip:hover {
  background: rgba(10, 10, 140, 0.06);
}
.chip.is-on,
.chip[aria-current="true"] {
  background: var(--primary);
  color: var(--primary-foreground);
}

.feat {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  margin-top: 40px;
  background: var(--primary);
  color: var(--primary-foreground);
}
.feat__ph {
  display: block;
  min-height: 100%;
  overflow: hidden;
}
.feat__ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}
.feat__tx {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 40px 40px 36px;
}
.feat__tx .h2 {
  font-size: clamp(28px, 2vw, 40px);
}
.feat__tx a:not(.btn) {
  color: inherit;
  text-decoration: none;
}
.feat__tx h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.feat .meta {
  color: #d7dcf5;
}
.feat .btn {
  margin-top: 8px;
}

.tag--ondark {
  border: 1px solid var(--primary-foreground);
  color: var(--primary-foreground);
  background: transparent;
}
.kicker {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
}
.on-dark .kicker,
.feat .kicker {
  color: #d7dcf5;
}

.blog .head {
  margin-top: 72px;
}
.bgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 28px;
  margin-top: 36px;
}
.bcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.bcard__ph {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.bcard__ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bcard .h3 a {
  color: inherit;
  text-decoration: none;
}
.bcard .h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bcard > p:not(.meta):not(.sample) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted-foreground);
}
.meta {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.meta a {
  color: inherit;
  font-weight: 600;
}
.sample {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.tone {
  background: #0a0a8c;
}
.tone img {
  filter: grayscale(1) contrast(1.05);
  mix-blend-mode: luminosity;
  opacity: 0.95;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.pager a:hover {
  background: rgba(10, 10, 140, 0.06);
}
.pager [aria-current="page"] {
  background: var(--primary);
  color: var(--primary-foreground);
}

.sheet,
.ahead {
  max-width: 760px;
}
.ahead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.cover {
  margin-top: 36px;
}
.cover img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}
.article {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(220px, 3fr);
  gap: 56px;
  align-items: start;
  margin-top: 40px;
}
.prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 42em;
  font-size: 17px;
  line-height: 1.7;
}
.prose h2,
.prose h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  scroll-margin-top: 96px;
}
.prose h2 {
  font-size: clamp(26px, 1.2rem + 1vw, 34px);
  line-height: 1.25;
  margin-top: 20px;
}
.prose h3 {
  font-size: 22px;
  line-height: 1.3;
  margin-top: 8px;
}
.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose ul,
.prose ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prose ul li,
.prose ol li {
  position: relative;
  padding-left: 28px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--primary);
}
.prose ol {
  counter-reset: item;
}
.prose ol li {
  counter-increment: item;
}
.prose ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: var(--primary);
}
.prose blockquote {
  margin: 8px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--primary);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.1rem + 0.5vw, 26px);
  line-height: 1.4;
}
.prose figure {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prose figcaption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.prose img {
  width: 100%;
  height: auto;
}
.table-scroll {
  overflow-x: auto;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}
.prose th,
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.prose th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.prose .dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  background: var(--card);
}
.prose .dl p {
  font-size: 15px;
}
.prose .dl strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
}

.aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.toc ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.toc a {
  color: var(--foreground);
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
}
.toc a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.share {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.share a,
.share button {
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.related {
  margin-top: 72px;
}
.related .h2 {
  margin-bottom: 8px;
}
.comments {
  margin-top: 72px;
  padding-top: 8px;
  border-top: 1.5px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 42em;
}
.cmt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.cmt h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
}
.cmt p:last-child {
  white-space: pre-wrap;
}
.cform {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
}

.band {
  background: var(--muted);
  padding-block: 80px;
}
.band__in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 48px;
  align-items: center;
}
.band__tx {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.band__art {
  position: relative;
  min-height: 220px;
  color: var(--primary);
}
.band__art .gf {
  border-color: var(--primary);
}

@media (max-width: 1040px) {
  .bgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .aside {
    position: static;
  }
  .feat__ph img {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .blog {
    padding-top: 48px;
  }
  .bhead,
  .feat,
  .band__in {
    grid-template-columns: minmax(0, 1fr);
  }
  .bgrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .feat__tx {
    padding: 28px 24px 32px;
  }
  .feat__ph img {
    min-height: 220px;
  }
  .band {
    padding-block: 56px;
  }
  .band__art {
    min-height: 160px;
  }
  .cform {
    padding: 22px 18px;
  }
}
