/* ---------------------------------------------------------------
   ELEMENTS — base HTML element styling (unclassed markup)
--------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--teal-deep);
  line-height: 1.12;
  margin: 0 0 var(--sp-4);
  font-weight: 600;
}

h1{ font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2{ font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
h3{ font-size: 1.3rem; }
h4{ font-size: 1.05rem; }

p{ margin: 0 0 var(--sp-4); max-width: 68ch; }

a{
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}
a:hover{ color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

ul, ol{ margin: 0 0 var(--sp-4); padding-left: 1.2em; }
li{ margin-bottom: var(--sp-2); }

button{ font-family: inherit; cursor: pointer; }

label{ font-family: var(--font-label); font-weight: 600; }

input, textarea, select{
  font-family: var(--font-body);
  font-size: 1rem;
  padding: var(--sp-3);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  color: var(--ink);
  width: 100%;
}

table{ width: 100%; border-collapse: collapse; }

hr{ border: none; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }

::selection{ background: var(--accent); color: var(--accent-ink); }
