:root {
  --blog-yellow: #ffdc32;
  --blog-ink: #17202c;
  --blog-muted: #59616c;
  --blog-line: #e5e4de;
  --blog-canvas: #f7f7f4;
  --blog-section-space: 5.75rem;
  --blog-ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.blog-index {
  margin: 0;
  min-width: 0;
  background: var(--blog-canvas);
  color: var(--blog-ink);
  font-family: "Be Vietnam Pro", sans-serif;
}

.blog-main {
  min-width: 0;
  padding: 2rem 1.5rem 5.75rem;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 220, 50, .08), transparent 28rem),
    var(--blog-canvas);
}

.blog-shell {
  width: min(65rem, 100%);
  margin: 0 auto;
}

.blog-intro {
  max-width: 48rem;
  margin: 0 auto;
  padding: calc(var(--blog-section-space) - 1rem) 0 2.75rem;
  text-align: center;
}

.blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .85rem;
  border: 1px solid rgba(26, 26, 26, .07);
  border-radius: 999px;
  background: #fff;
  color: var(--blog-ink);
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .09em;
}

.blog-eyebrow::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blog-yellow);
  box-shadow: 0 0 0 5px rgba(255, 220, 50, .16);
  content: "";
}

.blog-intro h1,
.blog-section-heading h2 {
  margin: 1.35rem 0 0;
  color: var(--blog-ink);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.045em;
}

.blog-intro h1 { font-size: clamp(2rem, 3.2vw, 2.875rem); }

.blog-intro p {
  max-width: 39rem;
  margin: 1rem auto 0;
  color: var(--blog-muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
}

.blog-section-heading h2 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); }

.blog-section-heading p {
  margin: .65rem 0 0;
  color: var(--blog-muted);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.6;
}

.blog-featured { padding-top: 1rem; }

.blog-featured-card,
.blog-archive-card {
  overflow: hidden;
  border: 1px solid var(--blog-line);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 9px 22px -20px rgba(26, 26, 26, .28);
}

.blog-featured-card {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  margin-top: 1.5rem;
  border-radius: 1.25rem;
  color: inherit;
  text-decoration: none;
}

.blog-featured-media { min-height: 100%; }

.blog-featured-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-featured-media img { min-height: 18rem; }

.blog-featured-content,
.blog-archive-card-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.blog-featured-content { padding: clamp(1.5rem, 3vw, 2.5rem); }

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  color: #6b7280;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.blog-featured-content h2,
.blog-archive-card h3 {
  color: var(--blog-ink);
  font-weight: 800;
  letter-spacing: -.032em;
}

.blog-featured-content h2 {
  margin: 1rem 0 0;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.15;
}

.blog-featured-content p,
.blog-archive-card p {
  margin: .85rem 0 0;
  color: var(--blog-muted);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.6;
}

.blog-card-read {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  color: var(--blog-ink);
  font-size: .875rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--blog-yellow);
  text-decoration-thickness: 4px;
  text-underline-offset: 4px;
}

.blog-featured-content .blog-card-read { padding-top: 1.5rem; }

.blog-search {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(19rem, 1.1fr);
  align-items: end;
  gap: 1.5rem 2.25rem;
  margin-top: var(--blog-section-space);
  padding: 1.5rem 0;
  border-top: 1px solid var(--blog-line);
  border-bottom: 1px solid var(--blog-line);
}

.blog-search h2 {
  margin: 0;
  color: var(--blog-ink);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.blog-search p {
  margin: .4rem 0 0;
  color: var(--blog-muted);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.55;
}

.blog-search-controls { display: flex; gap: .625rem; }

.blog-search-field {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: .625rem;
  min-height: 2.875rem;
  padding: 0 .875rem;
  border: 1px solid #d8d7d1;
  border-radius: .9rem;
  background: #fff;
  color: var(--blog-ink);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.blog-search-field svg { width: 1rem; height: 1rem; flex: 0 0 auto; color: #7a8088; }

.blog-search-field:focus-within {
  border-color: rgba(255, 220, 50, .95);
  box-shadow: 0 0 0 4px rgba(255, 220, 50, .2);
}

.blog-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--blog-ink);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
}

.blog-search-field input::placeholder { color: #7a8088; opacity: 1; }

.blog-search button,
.blog-page-number,
.blog-page-next {
  border: 1px solid transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.blog-search button {
  min-height: 2.875rem;
  padding: .625rem 1rem;
  border-radius: 999px;
  background: var(--blog-yellow);
  color: var(--blog-ink);
  font-size: .8125rem;
  transition: transform 180ms var(--blog-ease), box-shadow 180ms ease, background-color 180ms ease;
}

.blog-search button:active,
.blog-page-number:active,
.blog-page-next:active { transform: scale(.97); }

.blog-archive { margin-top: var(--blog-section-space); }

.blog-archive > .blog-section-heading { margin-bottom: 1.75rem; }

.blog-month + .blog-month { margin-top: 3.5rem; }

.blog-month-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.blog-month-heading::after {
  height: 1px;
  flex: 1;
  background: #d8d7d1;
  content: "";
}

.blog-month-heading h3 {
  margin: 0;
  color: var(--blog-ink);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

.blog-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.25rem;
  margin-top: 1rem;
}

.blog-archive-card {
  min-width: 0;
  border-radius: 1.125rem;
}

.blog-archive-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.blog-archive-card-image {
  flex: 0 0 auto;
  width: 100%;
  height: 14rem;
  object-fit: cover;
}

.blog-archive-card-content { height: 100%; padding: 1.25rem 1.375rem 1.375rem; }

.blog-archive-card h3 {
  min-height: 2.4em;
  margin: .8rem 0 0;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.2;
}

.blog-archive-card p { min-height: 4.8em; }

.blog-archive-card footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.blog-card-date {
  color: #717780;
  font-size: .75rem;
  font-style: italic;
  font-weight: 600;
}

.blog-archive-card footer .blog-card-read { margin: 0; }

.blog-no-results {
  margin: 1.25rem 0 0;
  padding: 1.125rem 1.25rem;
  border: 1px dashed #c9c7be;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .65);
  color: var(--blog-muted);
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin: 2.75rem auto 0;
}

.blog-page-number,
.blog-page-next {
  display: inline-flex;
  min-width: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-color: #d8d7d1;
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  color: var(--blog-ink);
  font-size: .8125rem;
  transition: transform 180ms var(--blog-ease), border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.blog-page-next { padding: 0 1rem; }

.blog-page-number.is-active {
  border-color: var(--blog-ink);
  background: var(--blog-ink);
  color: #fff;
}

.blog-page-next:disabled { cursor: default; opacity: .45; }

.blog-featured-card:focus-visible,
.blog-archive-card-link:focus-visible,
.blog-search button:focus-visible,
.blog-page-number:focus-visible,
.blog-page-next:focus-visible,
.site-footer-cta:focus-visible {
  outline: 3px solid var(--blog-ink);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .blog-eyebrow { transition: border-color 320ms ease, box-shadow 320ms ease; }
  .blog-eyebrow:hover { border-color: rgba(255, 220, 50, .45); box-shadow: 0 5px 16px -10px rgba(26, 26, 26, .15), 0 0 18px -7px rgba(255, 220, 50, .25); }
  .blog-featured-card,
  .blog-archive-card { transition: transform 300ms var(--blog-ease), border-color 300ms ease, box-shadow 300ms ease; }
  .blog-featured-card:hover,
  .blog-featured-card:focus-within,
  .blog-archive-card:hover,
  .blog-archive-card:focus-within { transform: translateY(-3px); border-color: rgba(255, 220, 50, .9); box-shadow: 0 16px 32px -25px rgba(26, 26, 26, .28), 0 0 24px -13px rgba(255, 220, 50, .76); }
  .blog-search button:hover { transform: translateY(-1px); background: #ffe35b; box-shadow: 0 12px 22px -15px rgba(26, 26, 26, .34), 0 0 18px -12px rgba(255, 220, 50, .78); }
  .blog-page-number:not(.is-active):hover,
  .blog-page-next:not(:disabled):hover { transform: translateY(-1px); border-color: rgba(255, 220, 50, .9); box-shadow: 0 9px 18px -15px rgba(26, 26, 26, .28), 0 0 15px -12px rgba(255, 220, 50, .72); }
}

.site-footer {
  padding: 1rem 1.5rem 1.25rem;
  background: var(--blog-canvas);
}

.site-footer-panel,
.site-footer-legal {
  max-width: 65rem;
  margin-right: auto;
  margin-left: auto;
}

.site-footer-panel {
  padding: 1rem 1.25rem;
  border: 1px solid var(--blog-line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 26px -24px rgba(26, 26, 26, .3);
}

.footer-grid.slim { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }

.site-footer-brand { display: flex; align-items: center; gap: .75rem; }

.site-footer-brand-name { color: var(--blog-ink); font-size: 1.125rem; font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }

.site-footer-description { margin: .5rem 0 0; color: var(--blog-muted); font-size: .875rem; font-weight: 500; line-height: 1.6; white-space: nowrap; }

.site-footer-action { display: flex; justify-content: flex-end; }

.site-footer-cta {
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  padding: .625rem 1rem;
  border-radius: 999px;
  background: var(--blog-yellow);
  color: var(--blog-ink);
  font-size: .8125rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 9px 20px -15px rgba(26, 26, 26, .42);
}

.site-footer-legal { display: flex; align-items: center; justify-content: space-between; gap: .875rem 1.5rem; margin-top: .875rem; color: #79808a; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.site-footer-legal p { margin: 0; }
.site-footer-legal nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem 1.25rem; }
.site-footer-legal a { color: inherit; text-decoration: underline; text-decoration-color: #cbd5e1; text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: color 180ms ease, text-decoration-color 180ms ease; }

@media (hover: hover) and (pointer: fine) {
  .site-footer-cta { transition: transform 220ms var(--blog-ease), box-shadow 220ms ease, background-color 220ms ease; }
  .site-footer-cta:hover { transform: translateY(-2px); background: #ffe35b; box-shadow: 0 14px 26px -17px rgba(26, 26, 26, .42), 0 0 22px -12px rgba(255, 220, 50, .78); }
  .site-footer-legal a:hover { color: #59616c; text-decoration-color: #59616c; }
}

@media (max-width: 1024px) { :root { --blog-section-space: 4.5rem; } }

@media (max-width: 768px) {
  :root { --blog-section-space: 3.75rem; }
  .blog-main,
  .blog-shell,
  .blog-intro,
  .blog-featured,
  .blog-featured-card,
  .blog-search,
  .blog-archive,
  .blog-month,
  .blog-archive-grid,
  .blog-archive-card,
  .blog-pagination,
  .site-footer,
  .site-footer-panel,
  .site-footer-legal {
    min-width: 0;
    max-width: 100%;
  }
  .blog-main { width: 100%; padding: 1.25rem 1rem 3.75rem; }
  .blog-intro { width: 100%; padding: 3.5rem 0 2rem; }
  .blog-intro h1 {
    max-width: 20rem;
    margin-right: auto;
    margin-left: auto;
    padding: 0 .125rem;
    font-size: clamp(1.75rem, 8vw, 2rem);
    line-height: 1.18;
    overflow-wrap: break-word;
  }
  .blog-intro p { max-width: 34rem; padding: 0 .125rem; }
  .blog-featured-card,
  .blog-search { grid-template-columns: 1fr; }
  .blog-featured-card { width: 100%; }
  .blog-featured-media,
  .blog-featured-content,
  .blog-featured-content > *,
  .blog-search > *,
  .blog-search-controls,
  .blog-archive-card-link,
  .blog-archive-card-content,
  .blog-archive-card-content > *,
  .blog-archive-card footer,
  .site-footer-legal nav { min-width: 0; max-width: 100%; }
  .blog-featured-media img { min-height: 0; max-width: 100%; aspect-ratio: 1.5 / 1; }
  .blog-featured-content { padding: 1.25rem; }
  .blog-featured-content h2,
  .blog-archive-card h3,
  .blog-featured-content p,
  .blog-archive-card p,
  .blog-card-meta { overflow-wrap: break-word; }
  .blog-search { gap: 1rem; }
  .blog-search-controls { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .blog-search-field { width: 100%; }
  .blog-search button { width: 100%; }
  .blog-archive-grid { grid-template-columns: 1fr; }
  .blog-archive-card,
  .blog-archive-card-link,
  .blog-archive-card-image { width: 100%; max-width: 100%; }
  .blog-archive-card h3,
  .blog-archive-card p { min-height: 0; }
  .blog-archive-card-image { height: 12rem; }
  .blog-archive-card footer {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
  }
  .blog-month + .blog-month { margin-top: 2.75rem; }
  .site-footer { padding: .875rem 1rem 1.25rem; }
  .site-footer-panel { padding: 1rem; }
  .footer-grid.slim,
  .site-footer-legal { align-items: flex-start; flex-direction: column; }
  .site-footer-description { white-space: normal; }
  .site-footer-action { justify-content: flex-start; margin-top: .25rem; }
  .site-footer-legal { gap: .75rem; }
  .site-footer-legal nav { width: 100%; justify-content: flex-start; gap: .65rem 1rem; }
}

@media (max-width: 359px) {
  .blog-main { padding-right: 1rem; padding-left: 1rem; }
  .blog-intro h1 { font-size: 1.75rem; }
  .blog-card-meta { letter-spacing: .11em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blog-eyebrow,
  .blog-featured-card,
  .blog-archive-card,
  .blog-search button,
  .blog-page-number,
  .blog-page-next,
  .site-footer-cta,
  .site-footer-legal a { transform: none !important; transition: none !important; }
}
