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

:root {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

html {
  background: var(--bg0);
  text-size-adjust: 100%;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background: var(--bg0);
  color: var(--t1);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

main {
  display: block;
  min-width: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block: 0 16px;
  color: var(--t1);
  line-height: 1.2;
  overflow-wrap: break-word;
}

p,
ol,
ul,
dl,
figure,
blockquote,
pre,
table {
  margin-block: 0 16px;
}

ol,
ul {
  padding-inline-start: 24px;
}

a {
  color: var(--brand-txt);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-deep);
}

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

.hp-skip-link {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: var(--z-max);
  padding: 10px 14px;
  border: 2px solid var(--brand-strong);
  border-radius: var(--r-3);
  background: var(--bg0);
  color: var(--brand-strong);
  font-weight: 700;
  transform: translateY(calc(-100% - 16px));
  transition: transform var(--dur-1) var(--ease);
}

.hp-skip-link:focus-visible {
  transform: translateY(0);
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

table {
  display: block;
  max-width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
}

pre {
  max-width: 100%;
  overflow: auto;
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
}

button,
input,
optgroup,
select,
textarea {
  max-width: 100%;
  color: inherit;
  font: inherit;
}

button,
input,
select,
textarea {
  min-height: 44px;
}

input,
select,
textarea {
  border: 1px solid var(--field-border);
  border-radius: var(--r-5);
  background: var(--bg0);
}

input,
textarea {
  padding: 10px 12px;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  border: 1px solid var(--brand);
  border-radius: var(--r-5);
  background: var(--brand);
  color: var(--bg0);
  cursor: pointer;
  padding: 10px 16px;
}

textarea {
  resize: vertical;
}

fieldset {
  min-width: 0;
  border: 1px solid var(--line2);
  border-radius: var(--r-5);
}

hr {
  border: 0;
  border-top: 1px solid var(--line1);
}

blockquote {
  margin-inline: 0;
  padding-inline-start: 16px;
  border-inline-start: 4px solid var(--brand);
  color: var(--t2);
}

::selection {
  background: var(--brand-soft2);
  color: var(--t1);
}

[hidden] {
  display: none;
}
