/* Shared look for the smaller pages (404, blog). index.html and for-you.html keep their own styles. */
:root {
  --bg: #e2e2e2; --surface: #d6d6d6; --paper: #efefef; --ink: #7d0c14; --muted: #7a4a4e;
  --accent: #7d0c14; --accent-ink: #e2e2e2; --field: #7d0c14; --field-ink: #e2e2e2;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --margin: clamp(1rem, 2.2vw, 2rem);
  --step-small: clamp(.8125rem, .79rem + .1vw, .875rem);
  --step-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1rem + .85vw, 1.75rem);
  --step-head: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  --step-title: clamp(2.5rem, 1rem + 5.5vw, 5.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@view-transition { navigation: auto; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { display: flex; flex-direction: column; min-height: 100svh; margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 var(--font); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .07em; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
p { max-width: 62ch; text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { padding-inline: var(--margin); }
.muted { color: var(--muted); }
.title { font-size: var(--step-title); font-weight: 800; line-height: .95; letter-spacing: -.045em; text-wrap: balance; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding-top: env(safe-area-inset-top); font-size: 15px; font-weight: 600; }
.top a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.top nav { display: flex; gap: 28px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; transition: transform .15s var(--ease), background-color .2s; }
.txt { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color .2s; }
.btn:active, .txt:active { transform: scale(.97); }
.acts { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: color-mix(in srgb, var(--accent) 82%, #000); }
  .txt:hover, .top a:hover { text-decoration-color: currentColor; }
}

footer { margin-top: clamp(4rem, 2rem + 6vw, 8rem); padding-block: 40px calc(var(--margin) + env(safe-area-inset-bottom)); background: var(--field); color: var(--field-ink); }
footer .legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; max-width: none; font-size: var(--step-small); }

/* 404 */
.lost { display: flex; flex-direction: column; justify-content: center; gap: 28px; min-height: 62svh; }
.lost p { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -.02em; max-width: 30ch; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Blog: the list */
.lead { margin-top: 20px; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -.02em; max-width: 34ch; }
.posts { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3rem); max-width: 46rem; margin: clamp(3rem, 2rem + 4vw, 5.5rem) 0 0; padding: 0; list-style: none; }
.posts a { display: block; text-decoration: none; }
.posts h2 { margin-top: 6px; font-size: var(--step-lead); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.posts p { margin-top: 8px; }
@media (hover: hover) and (pointer: fine) { .posts a:hover h2 { text-decoration-color: currentColor; } }

/* Blog: a post */
.post-head { padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2rem, 1rem + 3vw, 3.5rem); }
.post-title { font-size: var(--step-head); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; max-width: 30ch; text-wrap: balance; }
.meta { margin-top: 16px; font-size: var(--step-small); }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: var(--step-lead); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: .4em; }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--surface); padding: .1em .3em; }
.prose pre { overflow-x: auto; padding: 16px; background: var(--paper); font-size: 14.5px; line-height: 1.55; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
@media (max-width: 600px) { .prose pre { margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); font-size: 13px; } }
.author { max-width: 68ch; margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); padding: 20px; background: var(--surface); }
.author .acts { margin-top: 8px; }
/* Draft notes for Bhumika. Delete each one before the post goes live. */
.todo { padding: .5em .7em; background: #ffe14d; color: #3b2a00; }
