/* Base. Type classes follow Font variables. Weights: H1 600, H2 500, H3 400, H4 500, H5 700, H6 900. */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-black);
  background: var(--color-white);
  font-family: var(--font-tc);
  font-size: var(--p6-size);
  font-weight: 400;
  line-height: var(--p6-lh);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea { font: inherit; color: inherit; letter-spacing: 0; }

button { cursor: pointer; }

a { color: var(--color-dark-red); text-underline-offset: 0.18em; }

a:hover { color: var(--color-red); }

h1, h2, h3, h4, h5, h6, p { margin: 0; text-wrap: pretty; }

h1, h2, h3, .sec-title {
  text-wrap: balance;
}

::selection {
  background: var(--color-pink);
  color: var(--color-black);
}

:focus { outline: none; }

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--color-light-gray); }
::-webkit-scrollbar-track { background: var(--color-pale-gray); }

#icon-sheet {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 12px;
  top: 0;
  z-index: 90;
  transform: translateY(-120%);
  background: var(--color-white);
  color: var(--color-black);
  padding: 8px 12px;
  border: 2px solid var(--color-dark-red);
}

.skip:focus { transform: none; }

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

.shell {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.h1, .h2, .h3, .h4, .h5, .h6, .p1, .p2, .p3, .p4, .p5, .p6, .p7, .p8, .p9, .p10 {
  letter-spacing: 0;
  font-family: var(--font-tc);
}

.en { font-family: var(--font-en); }

.h1 { font-size: var(--h1-size); line-height: var(--h1-lh); font-weight: 600; }
.h2 { font-size: var(--h2-size); line-height: var(--h2-lh); font-weight: 500; }
.h3 { font-size: var(--h3-size); line-height: var(--h3-lh); font-weight: 400; }
.h4 { font-size: var(--h3-size); line-height: var(--h3-lh); font-weight: 500; }
.h5 { font-size: var(--h3-size); line-height: var(--h3-lh); font-weight: 700; }
.h6 { font-size: var(--h3-size); line-height: var(--h3-lh); font-weight: 900; }
.p1 { font-size: var(--p1-size); line-height: var(--p1-lh); font-weight: 400; }
.p2 { font-size: var(--p1-size); line-height: var(--p1-lh); font-weight: 500; }
.p3 { font-size: var(--p3-size); line-height: var(--p3-lh); font-weight: 400; }
.p4 { font-size: var(--p3-size); line-height: var(--p3-lh); font-weight: 500; }
.p5 { font-size: var(--p3-size); line-height: var(--p3-lh); font-weight: 700; }
.p6 { font-size: var(--p6-size); line-height: var(--p6-lh); font-weight: 400; }
.p7 { font-size: var(--p6-size); line-height: var(--p6-lh); font-weight: 500; }
.p8 { font-size: var(--p6-size); line-height: var(--p6-lh); font-weight: 700; }
.p9 { font-size: var(--p9-size); line-height: var(--p9-lh); font-weight: 400; }
.p10 { font-size: var(--p10-size); line-height: var(--p10-lh); font-weight: 700; }

.measure { max-width: var(--measure); }

.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: -0.2em;
  object-fit: contain;
}

.icon-fill { fill: currentColor; stroke: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
