:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #222222;
  --muted: #666f75;
  --border: #d9ddd8;
  --accent: #1d6f73;
  --accent-dark: #135154;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  padding: 30px 0 24px;
}

.site-title {
  display: inline-block;
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 750;
  text-decoration: none;
}

.tagline {
  margin: 4px 0 20px;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.site-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.content {
  padding: 44px 0 64px;
}

.intro {
  max-width: 860px;
  padding: 18px 0 34px;
}

.intro h2 {
  margin-top: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.eyebrow,
.meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

h2 {
  margin-top: 38px;
  font-size: 1.8rem;
}

h3 {
  font-size: 1.25rem;
}

.section {
  margin-top: 18px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.post-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.post-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
}

.post-card-body {
  padding: 18px;
}

.post-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.entry-list {
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.entry {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.entry-thumb {
  display: block;
  align-self: start;
}

.entry-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.entry-body h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.entry-body h2 a {
  color: var(--text);
  text-decoration: none;
}

.entry-body p {
  margin: 0 0 12px;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.badge-list--compact {
  margin-top: -4px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
  text-transform: uppercase;
}

.entry-link {
  font-size: 0.92rem;
  font-weight: 700;
}

.post-header {
  max-width: 820px;
  margin-bottom: 26px;
}

.source-link {
  margin-top: -4px;
}

.hero-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin-bottom: 26px;
}

.post-body {
  max-width: 820px;
}

.post-body figure {
  margin: 28px 0;
}

.post-body figcaption {
  color: var(--muted);
  font-size: 0.9rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.image-grid figure {
  margin: 0;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pdf-frame {
  width: 100%;
  min-height: 78vh;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-dark);
  font-weight: 650;
}

.social-icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  fill: currentColor;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .section-heading {
    display: block;
  }

  .entry {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .entry-thumb img {
    aspect-ratio: 16 / 9;
  }
}
