/* Blog pages: one readable column in the same navy, cream and racing-green palette as the home page.
   Every article links this file, so a style change here updates the whole blog. */
:root {
  --bg: #f6f1e7; --surface: #fffdf8; --ink: #14213d; --muted: #5b6475; --line: #e7dfcf;
  --navy: #0e1f3d; --accent: #1f4d3a; --accent-ink: #fffdf8; --accent-soft: #e6efe9; --thread: #b08d57;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0d1424; --surface: #121b2e; --ink: #efe9dc; --muted: #a9b0bf; --line: #26314a; --navy: #0a1426; --accent: #8fc7a8; --accent-ink: #0d1424; --accent-soft: #19302a; --thread: #c9a464; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0d1424; --surface: #121b2e; --ink: #efe9dc; --muted: #a9b0bf; --line: #26314a; --navy: #0a1426; --accent: #8fc7a8; --accent-ink: #0d1424; --accent-soft: #19302a; --thread: #c9a464; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; word-spacing: .05em; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 760px; margin: 0 auto; padding-inline: max(16px, 4vw); }

/* top bar */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-block: 14px; max-width: 1120px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 20px/1 var(--font-display); }
.top nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 650 15px/1 var(--font-body); padding: 11px 16px; border-radius: 8px; text-decoration: none; background: var(--accent); color: var(--accent-ink) !important; border: 1px solid var(--accent); }
.btn:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }

/* page and article */
main .wrap { padding-block: clamp(32px, 6vw, 64px); }
.crumbs { font: 500 13px/1.4 var(--font-data); color: var(--muted); margin: 0; }
.crumbs a { color: var(--muted); }
.eyebrow { font: 500 13px/1.3 var(--font-data); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 0; }
h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 46px); font-weight: 700; letter-spacing: -.01em; line-height: 1.12; margin: 10px 0 0; text-wrap: balance; }
.lede { font-size: 19px; color: var(--muted); margin-top: 16px; }
.byline { font-size: 14px; color: var(--muted); margin-top: 14px; }
h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin: 44px 0 0; padding-top: 18px; border-top: 2px dashed var(--line); line-height: 1.25; text-wrap: balance; }
h3 { font-size: 18px; margin: 28px 0 0; line-height: 1.35; }
p, li { max-width: 68ch; }
p { margin: 14px 0 0; }
ul, ol { margin: 14px 0 0; padding-left: 24px; }
li + li { margin-top: 8px; }
code { font: 14px var(--font-data); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }

.takeaways { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--thread); border-radius: 8px; padding: 18px 22px; }
.takeaways h2 { margin: 0; padding: 0; border: 0; font-size: 18px; }
.takeaways ul { margin-top: 10px; }

.note { margin-top: 22px; background: var(--accent-soft); border-radius: 8px; padding: 14px 18px; font-size: 15px; }
.note p:first-child { margin-top: 0; }

blockquote { margin: 14px 0 0; max-width: 68ch; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--thread); border-radius: 8px; padding: 4px 18px 16px; font-size: 15px; }

.table-scroll { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 13px/1.3 var(--font-data); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--font-data); }
caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--muted); padding: 8px 12px; }

.faq dt { font-weight: 700; margin-top: 22px; }
.faq dd { margin: 6px 0 0; max-width: 68ch; }

.cta { margin-top: 48px; background: var(--navy); color: #efe9dc; border-radius: 10px; padding: 24px 26px; }
.cta h2 { color: #fffdf8; margin: 0; padding: 0; border: 0; font-size: 22px; }
.cta p { color: #d9d3c6; }
.cta .btn { margin-top: 16px; background: #c9a464; border-color: #c9a464; color: #0e1f3d !important; }

.related { margin-top: 40px; }
.related h2 { font-size: 20px; }

/* blog index */
.post-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.post-list li { margin: 0; max-width: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.post-list h2 { margin: 6px 0 0; padding: 0; border: 0; font-size: 22px; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }
.post-list p { margin-top: 8px; color: var(--muted); }
.post-list time { font: 500 13px/1.3 var(--font-data); color: var(--muted); }

footer { border-top: 1px solid var(--line); margin-top: 24px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 22px; font-size: 13px; color: var(--muted); max-width: 1120px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); }
