@font-face { font-family: "Space Grotesk"; src: url("../fonts/SpaceGrotesk-Variable.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
:root {
  --yellow: #FFCD00; --green: #43B02A; --bg: #FFFFFF; --surface: #F4F5F0; --line: #E3E6DC;
  --text: #111111; --muted: #5E6656;
  --heading: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.7 var(--body); }
a { color: inherit; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 999px; z-index: 10; text-decoration: none; }
.skip:focus { left: 16px; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 720px; }

header { padding-block: 28px; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: block; height: 34px; width: auto; }
.nav { display: flex; gap: 20px; font-weight: 500; font-size: .9375rem; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }

main { padding-block: 40px 80px; }
.eyebrow { font-family: var(--heading); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
h1 { font-family: var(--heading); font-weight: 600; font-size: clamp(2rem, 5.5vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.lead { font-size: 1.1875rem; color: var(--muted); margin: 0 0 32px; max-width: 46ch; }

/* Blog list */
.posts { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
.post-card { background: var(--surface); border-radius: 20px; padding: 28px 32px; }
.post-card h2 { font-family: var(--heading); font-weight: 600; font-size: 1.5rem; line-height: 1.25; margin: 4px 0 8px; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.post-card p { margin: 0; color: var(--muted); max-width: 60ch; }
.meta { font-size: .875rem; color: var(--muted); }

/* Article */
article h2 { font-family: var(--heading); font-weight: 600; font-size: 1.5rem; line-height: 1.25; margin: 44px 0 12px; }
article h3 { font-family: var(--heading); font-weight: 600; font-size: 1.1875rem; margin: 28px 0 8px; }
article p, article li { max-width: 68ch; }
article ul, article ol { padding-left: 1.25em; }
article li { margin-bottom: 8px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9375rem; color: var(--muted); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; margin: 16px 0 8px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .9375rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
th { font-family: var(--heading); font-weight: 600; }
.tip { background: var(--surface); border-radius: 12px; padding: 18px 22px; margin: 24px 0; }
.tip p { margin: 0; }
.cta { background: var(--surface); border-radius: 20px; padding: 28px 32px; margin-top: 48px; }
.cta h2 { margin-top: 0; }
.cta p { color: var(--muted); }
.btn { display: inline-block; background: transparent; color: var(--text); border: 1px solid var(--text); text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 999px; font-size: .9375rem; }
.btn:hover { background: var(--yellow); border-color: var(--yellow); }
.back { display: inline-block; margin-bottom: 24px; font-weight: 500; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .875rem; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 8px; }
footer nav a { display: inline-block; padding-block: 4px; }

@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .post-card, .cta { padding: 24px 20px; }
  main { padding-block: 24px 64px; }
}
