:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #101820;
  --muted: #536368;
  --brand: #2f7b86;
  --line: #d8e8eb;
  --surface: #eff8f9;
  --yellow: #fffd3f;
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: #245e65; }

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 72rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.brand { color: var(--ink); font-weight: 800; text-decoration: none; }
.brand img { height: 4.25rem; width: auto; }
.header-link { font-size: .95rem; font-weight: 700; text-decoration: none; }
.header-nav { align-items: center; display: flex; gap: 1rem 1.5rem; }
.header-account {
  border: 1px solid var(--line);
  border-radius: .8rem;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  padding: .7rem .9rem;
  text-decoration: none;
}

.article-shell {
  margin: 0 auto;
  max-width: 72rem;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3rem) 4rem;
}

.article { margin: 0 auto; max-width: 49rem; }
.article-header { margin-bottom: 2rem; }
.eyebrow {
  color: var(--brand);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  margin: 0 0 .75rem;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.35rem, 7vw, 4.6rem);
  letter-spacing: -.04em;
  line-height: 1.02;
  margin: 0 0 1.25rem;
}

.article-excerpt {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.article-date { color: var(--muted); font-size: .9rem; }
.article-image { margin: 0 0 2.75rem; }
.article-image img { border-radius: 1.25rem; width: 100%; }
.article-image figcaption { color: var(--muted); font-size: .8rem; margin-top: .6rem; }

.article-content { color: #263438; font-size: 1.08rem; line-height: 1.75; }
.article-content > * { margin-left: auto; margin-right: auto; }
.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: .75rem;
  margin-top: 2.5rem;
}

.article-content h2 { font-size: clamp(1.75rem, 4vw, 2.35rem); }
.article-content h3 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote { margin-bottom: 1.35rem; margin-top: 0; }
.article-content a { text-decoration-thickness: .08em; text-underline-offset: .18em; }
.article-content blockquote { border-left: .25rem solid var(--brand); color: var(--muted); margin-left: 0; padding-left: 1.25rem; }
.article-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.article-content figure { margin: 2rem 0; }
.article-content figcaption { color: var(--muted); font-size: .85rem; margin-top: .6rem; text-align: center; }
.article-content .kg-width-wide {
  margin-left: 50%;
  max-width: min(68rem, calc(100vw - 2.5rem));
  transform: translateX(-50%);
  width: 68rem;
}
.article-content .kg-width-full { margin-left: 50%; max-width: 100vw; transform: translateX(-50%); width: 100vw; }
.article-content table { border-collapse: collapse; display: block; max-width: 100%; overflow-x: auto; }
.article-content th,
.article-content td { border-bottom: 1px solid var(--line); padding: .7rem .9rem; text-align: left; }

.article-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  margin: clamp(3.5rem, 8vw, 6rem) auto 0;
  max-width: 49rem;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.article-cta h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 .8rem; }
.article-cta p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; line-height: 1.6; margin: 0 0 .75rem; }
.article-cta small { color: var(--muted); display: block; margin-top: .65rem; }
.button {
  background: var(--yellow);
  border-radius: .9rem;
  color: var(--ink);
  display: inline-block;
  font-weight: 800;
  margin-top: .75rem;
  padding: .95rem 1.25rem;
  text-decoration: none;
}

.article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin: 2rem auto 0;
  max-width: 49rem;
  padding-top: 1.5rem;
}
.article-footer a { font-size: .85rem; }

.index-shell {
  margin: 0 auto;
  max-width: 72rem;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem) 5rem;
}

.index-hero { max-width: 50rem; }
.index-hero h1 { max-width: 47rem; }
.index-hero > p:last-child {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
  margin: 0;
  max-width: 42rem;
}

.post-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.post-card {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  min-width: 0;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.post-card:hover {
  border-color: #b4d3d8;
  box-shadow: 0 1rem 2.5rem rgba(16, 24, 32, .07);
  transform: translateY(-.2rem);
}
.post-card-link { color: inherit; display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.post-card-image { aspect-ratio: 16 / 9; background: var(--surface); margin: 0; overflow: hidden; }
.post-card-image img { height: 100%; object-fit: cover; transition: transform 240ms ease; width: 100%; }
.post-card:hover .post-card-image img { transform: scale(1.025); }
.post-card-image-placeholder {
  background: linear-gradient(135deg, #eef8f9, #f7f8f5 55%, #fffed1);
  position: relative;
}
.post-card-image-placeholder::after {
  background: linear-gradient(var(--brand), var(--brand)) 0 0 / 100% 100% no-repeat;
  content: "";
  height: .32rem;
  left: 2rem;
  opacity: .75;
  position: absolute;
  top: 2rem;
  transform: skew(-12deg);
  width: 3rem;
}
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: clamp(1.25rem, 3vw, 1.75rem); }
.post-card-meta { color: var(--muted); display: flex; font-size: .76rem; font-weight: 700; gap: .65rem; justify-content: space-between; letter-spacing: .02em; margin: 0 0 .9rem; text-transform: uppercase; }
.post-card-meta span { color: var(--brand); }
.post-card h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.025em; line-height: 1.12; margin: 0 0 .85rem; }
.post-card-body > p:not(.post-card-meta) { color: var(--muted); line-height: 1.6; margin: 0 0 1.5rem; }
.post-card-action { color: var(--ink); font-size: .93rem; font-weight: 800; margin-top: auto; }

.pagination { align-items: center; display: flex; gap: 1rem; justify-content: center; margin-top: 3rem; }
.pagination a { border: 1px solid var(--line); border-radius: .8rem; color: var(--ink); font-weight: 700; padding: .7rem 1rem; text-decoration: none; }
.pagination .page-number { color: var(--muted); font-size: .85rem; }

.empty-state { background: var(--surface); border: 1px solid var(--line); border-radius: 1.4rem; margin-top: 4rem; padding: clamp(1.5rem, 5vw, 3rem); }
.empty-state h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 .8rem; }
.empty-state p { color: var(--muted); line-height: 1.6; margin: 0; max-width: 42rem; }

.site-footer {
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: .82rem;
  gap: 1rem 2rem;
  justify-content: space-between;
  margin: 0 auto;
  padding: 2rem max(clamp(1.25rem, 4vw, 3rem), calc((100vw - 72rem) / 2 + 3rem));
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }

@media (max-width: 40rem) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .brand img { height: 3.5rem; }
  .header-nav { align-items: flex-start; flex-direction: column; }
  .article-content { font-size: 1rem; }
  .article-footer { flex-direction: column; }
  .post-grid { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer nav { flex-direction: column; }
}
