:root {
  --bg: #f5f3ee; --surface: #fbfaf7; --sunk: #edeae2; --ink: #1a1a18;
  --muted: #57544e; --faint: #8b877d; --line: #e3dfd5; --line-2: #d2ccbe;
  --rust: #c25b3e; --rust-ink: #a8482e; --rust-wash: #f6e6df;
  --green: #2b7a52; --green-wash: #e2efe6;
  --shadow: 0 1px 2px #1a1a1808, 0 10px 30px -18px #1a1a1826;
  --serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191713; --surface: #211e1a; --sunk: #262320; --ink: #f2efe8;
    --muted: #b3ada2; --faint: #7d776d; --line: #302c27; --line-2: #423c34;
    --rust: #e08260; --rust-ink: #eb9878; --rust-wash: #3a251d;
    --green: #62c08c; --green-wash: #1e3227;
    --shadow: 0 1px 2px #00000040, 0 12px 34px -20px #00000099;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans);
  line-height: 1.7; margin: 0; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 44rem; margin-inline: auto; padding-inline: clamp(1.15rem, 5vw, 2rem); }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; max-width: 60rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand svg { display: block; flex: none; overflow: visible; }
.brand .bar { fill: currentColor; opacity: 0.26; }
.brand .trend { fill: none; stroke: var(--rust); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.brand .dot { fill: var(--rust); }
.top a.cta { background: var(--rust); color: #fff; text-decoration: none; font-size: 0.875rem; font-weight: 500; padding: 0.5rem 1rem; border-radius: 8px; white-space: nowrap; }

/* article */
article { padding-block: clamp(2.5rem, 6vw, 4rem) 3rem; }
.eyebrow { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin: 0 0 0.9rem; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 1rem; text-wrap: balance; }
.standfirst { font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--muted); margin: 0 0 1.5rem; }
.meta { font-size: 0.8125rem; color: var(--faint); padding-bottom: 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2.25rem; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3.2vw, 1.9rem); line-height: 1.15; letter-spacing: -0.02em; margin: 2.75rem 0 0.9rem; text-wrap: balance; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; margin: 2rem 0 0.6rem; }
p { margin: 0 0 1.15rem; }
article a { color: var(--rust-ink); }
strong { font-weight: 600; }
ul, ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
li { margin-bottom: 0.5rem; }

code { font-family: var(--mono); font-size: 0.875em; background: var(--sunk); padding: 0.12em 0.4em; border-radius: 4px; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; overflow-x: auto; margin: 0 0 1.5rem; }
pre code { background: none; padding: 0; font-size: 0.8125rem; line-height: 1.7; }

table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; margin: 0 0 1.75rem; display: block; overflow-x: auto; }
th { text-align: left; font-weight: 500; color: var(--faint); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 0.9rem 0.55rem 0; white-space: nowrap; }
td { padding: 0.6rem 0.9rem 0.6rem 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
td:first-child, th:first-child { padding-left: 0; }

blockquote { margin: 0 0 1.5rem; padding-left: 1.1rem; border-left: 2px solid var(--rust); color: var(--muted); }
.figure { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem; margin: 0 0 1.75rem; box-shadow: var(--shadow); }
.figure b { display: block; font-family: var(--serif); font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 600; line-height: 1; color: var(--rust); letter-spacing: -0.03em; }
.figure span { display: block; font-size: 0.9375rem; color: var(--muted); margin-top: 0.5rem; }

/* call to action inside the article */
.buy { background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 1.5rem; margin: 2.5rem 0; box-shadow: var(--shadow); }
.buy h3 { margin-top: 0; font-family: var(--serif); font-size: 1.25rem; }
.buy p { font-size: 0.9375rem; color: var(--muted); }
.buy p:last-of-type { margin-bottom: 1.1rem; }
.buy a { display: inline-block; background: var(--rust); color: #fff; text-decoration: none; font-weight: 500; padding: 0.75rem 1.35rem; border-radius: 9px; }
.buy .small { font-size: 0.8125rem; color: var(--faint); margin: 0.7rem 0 0; }

/* article listing */
ul.posts { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-direction: column; }
ul.posts li { margin: 0; padding: 1.75rem 0; border-top: 1px solid var(--line); }
ul.posts li:last-child { border-bottom: 1px solid var(--line); }
ul.posts a { text-decoration: none; }
ul.posts h2 { margin: 0 0 0.5rem; font-size: clamp(1.35rem, 3vw, 1.65rem); color: var(--ink); }
ul.posts a:hover h2 { color: var(--rust-ink); }
ul.posts p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

footer { border-top: 1px solid var(--line); padding-block: 2rem 3rem; }
footer .wrap { max-width: 60rem; }
.fine { font-size: 0.8125rem; color: var(--faint); }
footer a { color: var(--muted); }

a:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
