:root {
  --ground: #F4F5F2; --ink: #15181C; --ink-2: #3B4148; --ink-3: #4A5058;
  --line: #D5D8D2; --chip: #EDEFEA; --accent: #C2410C; --hover: #B23C0A; --focus: #1D4ED8;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --head: "Space Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: Inter, system-ui, sans-serif; }
a { color: var(--ink); } a:hover { color: var(--hover); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 19px; }
.brand span { color: var(--ink-3); font-weight: 500; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a { padding: 12px 14px; font-size: 15px; font-weight: 500; text-decoration: none; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.intro { padding-top: 64px; padding-bottom: 32px; }
h1 { margin: 16px 0 0; font-family: var(--head); font-weight: 700; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.04; letter-spacing: -.03em; max-width: 880px; }
.flag { display: inline-block; align-self: flex-start; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 5px 10px; border-radius: 4px; }
time { display: block; font-size: 14px; color: var(--ink-3); }
.card { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.card h2, .card h3 { margin: 0; font-family: var(--head); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.card h3 { font-size: 24px; }
.card a { text-decoration: none; }
.card a:hover { text-decoration: underline; }
.card time { margin-top: auto; }
.featured { padding: 40px; gap: 18px; margin-bottom: 48px; border-top: 4px solid var(--ink); }
.featured h2 { font-size: clamp(30px, 4vw, 48px); max-width: 860px; }
.list-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; border-top: 2px solid var(--ink); padding-top: 20px; margin-bottom: 24px; }
.list-head h2 { margin: 0; font-family: var(--head); font-weight: 700; font-size: 28px; letter-spacing: -.02em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 44px; padding: 0 16px; border-radius: 999px; font: 500 14px Inter, system-ui, sans-serif; cursor: pointer; background: transparent; color: var(--ink); border: 1px solid #B9BDB5; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding-bottom: 72px; }
.grid .card { min-height: 220px; }
.empty { font-size: 17px; color: var(--ink-3); padding-bottom: 72px; }
.post { max-width: 760px; padding-top: 56px; padding-bottom: 72px; }
.post article { display: flex; flex-direction: column; gap: 16px; }
.post h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); }
.body { margin-top: 16px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.body h2, .body h3, .body h4 { font-family: var(--head); color: var(--ink); letter-spacing: -.01em; margin: 36px 0 8px; }
.body h2 { font-size: 28px; } .body h3 { font-size: 22px; } .body h4 { font-size: 18px; }
.body blockquote { margin: 24px 0; padding: 4px 20px; border-left: 4px solid var(--accent); color: var(--ink); }
.body pre { background: var(--ink); color: #E6E8EB; border-radius: 8px; padding: 16px; overflow: auto; font: 14px/1.6 var(--mono); }
.body code { font-family: var(--mono); font-size: .9em; background: var(--chip); padding: 2px 5px; border-radius: 4px; }
.body pre code { background: none; padding: 0; }
.back { margin-top: 48px; font-weight: 600; }
footer { border-top: 1px solid var(--line); }
footer .wrap { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: var(--ink-3); }
