/* Editorial notes: shared by the home preview, indexes and article pages. */
.notes-preview {
  background: var(--surface-color);
}

.notes-preview-grid,
.notes-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.note-card {
  display: grid;
  grid-template-columns: minmax(150px, .72fr) 1fr;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--default-color) 12%, transparent);
  border-radius: 8px;
  background: var(--background-color);
  color: var(--default-color);
  transition: border-color .2s ease, transform .2s ease;
}

.note-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent-color) 52%, transparent);
}

.note-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.note-card-copy {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.note-card-kicker,
.notes-kicker,
.article-kicker {
  color: var(--accent-color);
  font-family: var(--heading-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.note-card h3 {
  margin: 14px 0 10px;
  font-size: 23px;
  line-height: 1.25;
}

.note-card p {
  margin: 0;
  color: color-mix(in srgb, var(--default-color) 78%, transparent);
  font-size: 15px;
  line-height: 1.65;
}

.note-card-link {
  margin-top: auto;
  padding-top: 20px;
  color: var(--accent-color);
  font-weight: 600;
}

.notes-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-weight: 600;
}

.notes-site {
  min-height: 100vh;
  background: #f5f7fa;
}

.notes-topbar {
  position: relative;
  z-index: 5;
  background: #0a1020;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.notes-topbar-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.notes-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 700;
}

.notes-brand:hover { color: #fff; }

.notes-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--accent-color);
  color: #071018;
  font-size: 12px;
}

.notes-topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.notes-topnav a { color: rgba(255, 255, 255, .78); }
.notes-topnav a:hover { color: #fff; }

.notes-index-hero,
.article-hero {
  background: #0a1020;
  color: #fff;
}

.notes-index-hero-inner,
.article-hero-inner,
.article-body,
.article-next {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.notes-index-hero-inner {
  padding: 88px 0 96px;
}

.notes-index-hero h1,
.article-hero h1 {
  max-width: 860px;
  margin: 16px 0 18px;
  color: #fff;
  font-size: 52px;
  line-height: 1.08;
}

.notes-index-hero p,
.article-dek {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 19px;
  line-height: 1.65;
}

.notes-index-main {
  width: 100%;
  padding: 72px 0 92px;
  background: #0a1020;
}

.notes-index-main .notes-index-grid {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.article-hero-inner {
  padding: 74px 0 54px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 24px;
  color: rgba(255, 255, 255, .64);
  font-size: 13px;
}

.article-figure {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  transform: translateY(44px);
}

.article-figure img {
  width: 100%;
  max-height: 780px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(4, 10, 22, .24);
}

.article-body {
  max-width: 800px;
  padding: 108px 0 84px;
  color: #27303a;
  font-size: 18px;
  line-height: 1.82;
}

.article-body .opening {
  color: #101828;
  font-family: var(--heading-font);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.55;
}

.article-body h2 {
  margin: 48px 0 16px;
  color: #0a1020;
  font-size: 30px;
  line-height: 1.24;
}

.article-body p { margin: 0 0 22px; }

.article-body ul {
  margin: 0 0 26px;
  padding-left: 22px;
}

.article-body li { margin-bottom: 10px; }

.article-callout {
  margin: 42px 0;
  padding: 28px 30px;
  border-left: 4px solid var(--accent-color);
  background: #e8f7f0;
  color: #11291f;
  font-family: var(--heading-font);
  font-size: 21px;
  line-height: 1.5;
}

.article-next-wrap {
  padding: 58px 0;
  background: #e9edf2;
}

.article-next {
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.article-next small {
  display: block;
  margin-bottom: 7px;
  color: #697386;
  font-weight: 600;
  text-transform: uppercase;
}

.article-next strong {
  color: #0a1020;
  font-family: var(--heading-font);
  font-size: 21px;
}

.notes-footer {
  padding: 34px 0;
  background: #0a1020;
  color: rgba(255, 255, 255, .68);
}

.notes-footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.notes-footer a { color: #fff; }

@media (max-width: 900px) {
  .notes-preview-grid,
  .notes-index-grid { grid-template-columns: 1fr; }
  .note-card { min-height: 250px; }
}

@media (max-width: 640px) {
  .note-card { grid-template-columns: 1fr; }
  .note-card img { min-height: 0; aspect-ratio: 4 / 3; }
  .notes-topbar-inner,
  .notes-index-hero-inner,
  .article-hero-inner,
  .article-body,
  .article-next,
  .notes-footer-inner { width: min(100% - 28px, 1120px); }
  .notes-index-main .notes-index-grid { width: min(100% - 28px, 1120px); }
  .notes-topnav { gap: 12px; font-size: 13px; }
  .notes-index-hero-inner { padding: 62px 0 68px; }
  .notes-index-hero h1,
  .article-hero h1 { font-size: 36px; }
  .notes-index-hero p,
  .article-dek { font-size: 17px; }
  .article-hero-inner { padding: 54px 0 42px; }
  .article-figure { width: calc(100% - 28px); transform: translateY(28px); }
  .article-body { padding-top: 76px; font-size: 17px; }
  .article-body .opening { font-size: 21px; }
  .article-body h2 { font-size: 26px; }
  .article-next { align-items: flex-start; flex-direction: column; }
  .notes-footer-inner { flex-direction: column; }
}
