/* The /blog/ index. Palette, type and header are copied from the hub (laplacianmind repo:
   src/styles/global.css, SiteHeader, Wordmark, SiteFooter). If the hub's look changes, change this. */
:root {
  --black: #07060a; --bone: #efe6d6; --amber: #f2b366;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --dim: rgba(239, 230, 214, 0.62); --line: rgba(239, 230, 214, 0.14);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--black); color: var(--bone); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--amber); outline-offset: 3px; }
.mono { font-family: var(--mono); font-weight: 300; letter-spacing: 0.28em; text-transform: lowercase; }
::selection { background: rgba(242, 179, 102, 0.35); }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1100px; margin: 0 auto; padding: 22px 16px; border-bottom: 1px solid var(--line); }
.home { text-decoration: none; }
.site-header nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.site-header nav a { font-size: 0.7rem; text-decoration: none; color: var(--dim); }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--amber); }
@media (max-width: 480px) { .site-header { flex-direction: column; } }
.wordmark { position: relative; display: inline-grid; place-items: center; padding: 0.3em 0.9em; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit ellipse { fill: none; stroke: rgba(242, 179, 102, 0.5); stroke-width: 3; }
.orbit circle { fill: #fff3df; }
.wordmark .name { position: relative; font-weight: 300; letter-spacing: 0.3em; margin-right: -0.3em; font-size: 1.05rem; }

.page { max-width: 1100px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) 16px 0; }
.intro { margin: 0 0 56px; }
.kicker { font-size: 0.68rem; color: var(--amber); margin: 0 0 12px; }
h1 { font-weight: 300; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: 0; }
.empty { font-style: italic; color: var(--dim); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 44px 32px; }
.card a { display: grid; gap: 8px; text-decoration: none; }
.thumb { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border: 1px solid var(--line); background: #0b0c0e; margin-bottom: 8px; transition: border-color 0.2s; }
.card a:hover .thumb { border-color: var(--amber); }
.card a:hover .title { color: var(--amber); }
.meta { font-size: 0.62rem; color: var(--dim); }
.title { font-size: 1.7rem; line-height: 1.15; transition: color 0.2s; }
.desc { color: var(--dim); font-size: 1.1rem; line-height: 1.35; }
.tags { font-size: 0.58rem; color: var(--dim); }
.draft { color: var(--amber); }
/* A single post should not sit alone in a narrow column. */
.cards:has(> .card:only-child) { grid-template-columns: minmax(0, 640px); }

.site-footer { max-width: 1100px; margin: 96px auto 0; padding: 32px 16px 48px; border-top: 1px solid var(--line); text-align: center; }
.tagline { margin: 0 0 12px; font-style: italic; color: var(--dim); }
.small { font-size: 0.66rem; margin: 0; }
.small a { color: var(--amber); text-decoration: none; }
