/* Aangan Studio — reset, type and layout primitives. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background-color: var(--bg);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  min-height: 100svh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 350;
  line-height: 1.7;
  letter-spacing: 0.005em;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: inherit; }
strong, b { font-weight: 550; }

::selection { background: var(--lamp); color: var(--on-lamp); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

/* Type: a refined display serif and a quiet sans */
.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 400;              /* the display face has one weight; never let the browser fake a bold */
  font-synthesis: none;
  letter-spacing: -0.012em;
}
.display { font-size: var(--step-5); line-height: 1; }
.h1 { font-size: var(--step-4); line-height: 1.04; }
.h2 { font-size: var(--step-3); line-height: 1.1; }
.h3 { font-size: var(--step-2); line-height: 1.18; }
.h4 { font-size: var(--step-1); line-height: 1.35; font-weight: 450; }

.lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }
.small { font-size: var(--step--1); line-height: 1.55; }
.muted { color: var(--ink-soft); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: var(--space-4); top: var(--space-4); z-index: 200;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-touch);
  background: var(--lamp); color: var(--on-lamp);
  font-weight: 500; text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--dur-2) var(--ease-out);
}
.skip:focus { transform: none; }

/* Layout */
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--space-9); position: relative; }
.stack { display: flex; flex-direction: column; gap: var(--stack, var(--space-4)); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster, var(--space-3)); }
