/* Shared base for the pink pages (home, projects, blog, til, txlog, links).
   Page-specific styles stay inline in each template. */
:root {
  --fog: #fbeaf2;
  --plum: #2a1424;
  --ink: #2a1424;
  --ink-soft: #7d4a68;
  --taxi: #ff8fc8;
  --shadow: #e0559a;
  --gate: #c2306f;
  --subway: #c4568f;
  --edge: #4e2743;
  --night-text: #ffe4f1;
  --night-soft: #d9a6c4;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--fog); color: var(--ink); color-scheme: light; scroll-padding-top: 1.5rem; }
::selection { background: var(--taxi); color: var(--ink); }

body {
  margin: 0;
  font-family: 'Anybody', system-ui, sans-serif;
  font-variation-settings: 'wdth' 100;
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--subway); outline-offset: 3px; }

.wrap { padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.mono { font-family: 'Fira Code', monospace; }

/* top strip: site name + section nav (templates/partials.html "strip") */
.strip {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1.25rem;
  font-variation-settings: 'wdth' 75;
  font-weight: 600;
  font-size: 1rem;
}
.strip nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.strip a { text-decoration: none; }
.strip a:hover, .strip a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

footer {
  border-top: 2px solid var(--ink);
  padding: 1.25rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-variation-settings: 'wdth' 75;
  font-weight: 600;
}
footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ```sketch blocks: Mermaid hand-drawn SVG, inlined by mainframe/sketch.go. */
figure.sketch { margin: 2em 0; text-align: center; }
figure.sketch svg { display: inline-block; max-width: 100%; height: auto; }
pre.sketch-source { white-space: pre-wrap; }

/* ```explorable blocks: sandboxed iframes, see mainframe/explorable.go. */
figure.explorable { margin: 2em 0; }
figure.explorable iframe {
  display: block; width: calc(100% - 4px); aspect-ratio: auto; box-sizing: content-box;
  border: 2px solid var(--ink); border-radius: 6px; background: #fff6fa;
}
