/* =========================================================
   Coto Hair — Base reset & typography
   ========================================================= */

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

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--f-text);
  color: var(--c-ink);
  background: var(--c-bg);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga", "kern";
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

/* `hidden` must outrank the element rules above — otherwise the nav's
   close icon stays visible next to the hamburger. */
[hidden] { display: none !important; }

a {
  color: var(--c-ink);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out),
              opacity var(--t-fast) var(--ease-out);
}
a:hover { color: var(--c-sienna); }

::selection { background: var(--c-sienna); color: #fff; }

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

/* Headings — Josefin Sans, light weight, tight tracking */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--c-ink);
}
h1 { font-size: var(--fs-h1); font-weight: 300; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); font-weight: 300; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); font-weight: 400; }
h4 { font-size: var(--fs-h4); font-weight: 500; }
h5 { font-size: var(--fs-h5); font-weight: 500; }
h6 { font-size: var(--fs-h6); font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.display {
  font-family: var(--f-display);
  font-size: var(--fs-display);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-ink);
}

.meta  { font-size: var(--fs-meta); color: var(--c-mute); }

.eyebrow {
  font-family: var(--f-display);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--c-mute);
  display: inline-block;
}

/* Signature editorial italic — pulled from the styleguide hero pattern */
.italic, em.serif {
  font-family: var(--f-text);
  font-style: italic;
  font-weight: 400;
  color: var(--c-sienna);
}

/* The "single sienna rule" — the brand's signature mark */
.rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--c-sienna);
  margin: var(--s-5) auto;
  border: none;
}
.rule--left { margin-left: 0; margin-right: 0; }

/* Visually hidden, still readable to screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 0; top: -100px;
  background: var(--c-ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.skip-link:focus { top: 0; }
