body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.wrap {
  width: 100%;
}

.top {
  flex-shrink: 0;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

button.switch {
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.doc,
.notfound {
  max-width: 808px;
  padding-top: 96px;
  padding-bottom: 112px;
  overflow-wrap: anywhere;
}

.label {
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

main > .label {
  color: var(--accent-text);
}

h1 {
  margin-top: 16px;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h2 {
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  margin-top: 28px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

p,
li,
.contact {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: -0.01em;
}

p {
  margin-top: 16px;
}

.lede {
  margin-top: 32px;
}

.summary {
  margin-top: 40px;
}

.summary .label {
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.01em;
}

section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

section:first-of-type {
  margin-top: 64px;
}

ul {
  margin-top: 16px;
  padding-left: 24px;
}

li {
  padding-left: 4px;
}

li + li {
  margin-top: 8px;
}

li::marker {
  color: var(--ink-3);
}

.rows {
  margin-top: 24px;
}

.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.row .k {
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}

.row .k small {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 400;
}

.row .v {
  flex-shrink: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.6;
  text-align: right;
}

.contact {
  margin-top: 16px;
}

a.mail {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a.mail:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.mailbig {
  margin-top: 40px;
  color: var(--ink);
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  user-select: all;
  -webkit-user-select: all;
}

.foot {
  margin-top: auto;
  padding-top: 24px;
  padding-bottom: 48px;
}

.foot a[aria-current="page"] {
  color: var(--ink-2);
}

.notfound {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-height: 55vh;
}

@media (max-width: 879px) {
  .doc,
  .notfound {
    padding-top: 56px;
    padding-bottom: 80px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.15;
  }

  p,
  li,
  .contact {
    font-size: 17px;
  }

  .lede {
    margin-top: 24px;
  }

  .mailbig {
    font-size: clamp(20px, 3.2vw, 28px);
  }
}

@media (max-width: 520px) {
  .top nav {
    gap: 4px;
  }

  section {
    margin-top: 48px;
    padding-top: 32px;
  }

  section:first-of-type {
    margin-top: 48px;
  }

  .row {
    flex-direction: column;
    gap: 8px;
  }

  .row .v {
    text-align: left;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
