body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

main {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

section {
  flex: 1 1 auto;
  position: relative;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  margin-bottom: 1.25rem;
  max-width: 34ch;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

ol,
ul {
  color: var(--text-secondary);
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0.9rem 0 0.35rem;
  color: var(--text-primary);
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  color: var(--text-primary);
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

table {
  width: 100%;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text-secondary);
}

th {
  color: var(--text-primary);
  font-weight: 600;
}

details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

dt {
  font-family: var(--font-head);
  font-weight: 700;
}

dd {
  color: var(--text-secondary);
}

header {
  position: relative;
}

footer {
  margin-top: auto;
}

nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

form {
  display: block;
}
