:root {
  color-scheme: light;
  --ink: #18181b;
  --muted: #62626a;
  --line: #e4e4e7;
  --paper: #ffffff;
  --soft: #f7f7f8;
  --accent: #d84925;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 112px; }
.brand img { width: 220px; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.2rem; }
.site-header nav a { font-size: .93rem; font-weight: 700; text-decoration: none; }

#main-content { min-height: 65vh; }
.listing, .content-page, .article { padding-block: clamp(2.5rem, 6vw, 5rem); }
.listing-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.listing-heading h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
.card { min-width: 0; }
.card-image { display: block; overflow: hidden; border-radius: .55rem; background: var(--soft); aspect-ratio: 16 / 10; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card-image:hover img { transform: scale(1.025); }
.card-body { padding-top: 1rem; }
.card-date { margin: 0 0 .35rem; color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; }
.card h2 { margin: 0; font-size: 1.18rem; line-height: 1.25; letter-spacing: -.018em; }
.card h2 a { text-decoration: none; }
.card-body > p:last-child { margin: .65rem 0 0; color: var(--muted); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-no-image { border-top: 4px solid var(--accent); padding: 1rem; background: var(--soft); }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { font-weight: 700; }
.pager a:last-child { justify-self: end; }
.pager span { color: var(--muted); }

.article-narrow { max-width: 850px; }
.article-header { margin-inline: auto; text-align: center; }
.article-header h1, .content-page > h1 { margin: 0; font-size: clamp(2.15rem, 6vw, 4.4rem); line-height: 1.06; letter-spacing: -.045em; }
.article-date { margin: 1.25rem 0 .75rem; color: var(--muted); font-weight: 700; }
.category-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.category-list a { display: block; padding: .25rem .65rem; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; text-decoration: none; }
.article-hero { width: 100%; max-height: 680px; margin: 2.5rem auto; border-radius: .65rem; object-fit: contain; background: var(--soft); }
.prose { margin-top: 2.5rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.78; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { margin: 2em 0 .6em; font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.2; }
.prose img { margin: 2rem auto; }
.prose iframe { width: 100%; max-width: 100%; }
.prose blockquote { margin-inline: 0; padding-left: 1.5rem; border-left: 4px solid var(--accent); color: var(--muted); }
.prose a[href^="http"] { overflow-wrap: anywhere; }

.site-footer { background: #18181b; color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; padding-block: 2.5rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; color: #b9b9bf; }

@media (max-width: 850px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: 1.25rem; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 1.25rem, 1120px); }
  .article-grid { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager span { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .footer-inner { flex-direction: column; }
}

