/* base.css — root typography, links, headings and native form-element defaults. */

:root {
  font: 17px/1.65 Arial,Helvetica,sans-serif;
  color: var(--ink);
  background: white;
}

a {
  color: inherit;
  text-underline-offset: .22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--display);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -.035em;
}

h1 {
  font-size: clamp(2.8rem,5vw,5.3rem);
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(2rem,3.4vw,3.5rem);
  margin-bottom: 25px;
}

h3 {
  line-height: 1.3;
  font-size: 1.2rem;
}

p {
  margin-bottom: 1.3rem;
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: 20px;
  top: -200px;
  padding: 15px;
  background: white;
  color: var(--ink);
  z-index: 100;
}

.skip:focus {
  top: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 22px;
}

input:not([type=checkbox]),
select,
textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
  margin-top: 8px;
  font-weight: 400;
}

input[type=number] {
  max-width: 100px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m4 6 5 5 5-5' fill='none' stroke='%23445560' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

textarea {
  resize: vertical;
}

dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 15px;
}

dt {
  font-weight: bold;
}

dd {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 1rem;
}

caption {
  text-align: left;
  font-weight: bold;
  padding: 18px 0;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: bold;
}
