/* Page-level base for happycodes.studio. Loaded after tokens.css and before components.css. */
html { background: var(--color-bg); -webkit-text-size-adjust: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 var(--text-md)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }

/* Skip link: hidden until focused with the keyboard. */
.skip {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 10;
  padding: var(--space-3) var(--space-4);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 700;
  border-radius: var(--radius-md);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Small text pages (404). */
.notfound { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding-block: var(--space-9); }
.notfound h1 { font: 700 clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem)/1.05 var(--font-display); }
.notfound p { color: var(--color-text-muted); font-size: var(--text-lg); }

/* Footer logo is a touch smaller than the header one. */
.site-footer .mark { --mark-size: 32px; }
