/* ==========================================================================
   SALTBOX — global (tag styles only)
   ========================================================================== */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 1;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--text-display-l); line-height: 0.94; letter-spacing: -0.035em; }
h2 { font-size: var(--text-h2); line-height: 0.98; letter-spacing: -0.03em; }
h3 { font-size: var(--text-h3); line-height: 1.04; }
h4 { font-size: var(--text-h4); line-height: 1.15; }
h5 { font-size: var(--text-h5); line-height: 1.25; font-family: var(--font-text); font-weight: 600; letter-spacing: 0; }
h6 { font-size: var(--text-h6); line-height: 1.3; font-family: var(--font-text); font-weight: 600; letter-spacing: 0; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-ember); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

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

ul, ol { margin: 0; padding-left: 1.2em; }

blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-h3);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

hr { border: 0; border-top: var(--border-width) solid var(--color-line-on-dark); margin: 0; }

label {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-label);
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input, select, textarea {
  width: 100%;
  padding: 0.9rem 0;
  background: transparent;
  color: inherit;
  border: 0;
  border-bottom: var(--border-width) solid var(--color-line-on-dark);
  border-radius: 0;
  font: inherit;
}
input::placeholder, textarea::placeholder { color: var(--color-muted-on-dark); }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--color-ember); }
textarea { min-height: 7rem; resize: vertical; }

::selection { background: var(--color-ember); color: var(--color-charcoal); }

@media (max-width: 767px) {
  h1 { line-height: 0.98; }
}
