/* Derma C — base: reset, page defaults, links, layout primitives.
   Load order: tokens.css, base.css, components.css, sections.css. */

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:var(--font-sans);
  font-size:16px;
  line-height:1.65;
  color:var(--ink);
  background:var(--cream);
}

input,select,textarea,button{font:inherit}

/* Default text links. :where() keeps specificity at zero so any class wins,
   including on hover. */
:where(a){color:var(--rose)}
:where(a:hover){color:var(--ink)}

/* Keyboard focus */
:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}

/* Anchor targets clear the sticky header */
section[id]{scroll-margin-top:90px}

/* ---------- Layout primitives ---------- */

.container{
  max-width:1240px;
  margin:0 auto;
  padding:0 32px;
}

/* Vertical rhythm for a full section */
.section{padding-top:var(--space-24);padding-bottom:var(--space-24)}
.section--compact{padding-top:96px;padding-bottom:96px}

/* Background bands */
.band--sand{background:var(--sand)}
.band--ink{background:var(--ink);color:var(--cream)}

/* A sand band that fades in from, and back out to, the cream page instead of
   meeting its neighbours on a hard line */
.band--fade{
  --fade:180px;
  background:linear-gradient(
    to bottom,
    var(--cream) 0,
    var(--sand) var(--fade),
    var(--sand) calc(100% - var(--fade)),
    var(--cream) 100%
  );
}
