:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #171717;
  --heading: #000000;
  --marker: #9ca3af;
  --underline: #737373;
  --underline-hover: #a3a3a3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --text: #eaeaea;
    --heading: #f2f2f2;
    --marker: #737373;
    --underline: #a3a3a3;
    --underline-hover: #525252;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: gray transparent;
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 650px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: var(--bg);
  color: var(--text);
  font-family: "STIX Two Text", "Noto Serif SC", serif;
  font-size: 17px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main,
.page,
.section,
.panel,
.hero {
  width: 100%;
}

main {
  margin-top: 0;
}

.page {
  margin: 0;
  padding: 0;
}

header,
.hero,
.section,
.panel,
section,
footer,
.footer {
  margin: 1.25rem 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

header:first-child,
.hero:first-child,
h1:first-child {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
  line-height: 3.25rem;
}

h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.1rem;
  line-height: 1.5rem;
}

h3,
h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
}

section > h2:first-child,
section > h3:first-child,
.section > h2:first-child,
.section > h3:first-child,
.panel > h2:first-child,
.panel > h3:first-child {
  margin-top: 0;
}

p,
ul,
ol,
.summary,
.subtitle,
.language,
.lang-note,
.notice,
.footer {
  margin: 1.25rem 0;
  color: var(--text);
  font: inherit;
}

p:first-child,
ul:first-child,
ol:first-child {
  margin-top: 0;
}

a {
  color: inherit;
  font-weight: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 2.5px;
  transition: text-decoration-color 150ms ease;
}

a:hover {
  text-decoration-color: var(--underline-hover);
}

ul,
ol {
  padding-left: 0;
  list-style: none;
}

li {
  position: relative;
  margin: 0;
  padding-right: 0.25rem;
  padding-left: 1rem;
  color: var(--text);
}

li + li {
  margin-top: 0.25rem;
}

li::before {
  content: "■";
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  color: var(--marker);
  font-size: 0.5em;
  line-height: 1;
}

strong {
  color: var(--heading);
  font-weight: 500;
}

.kicker,
.eyebrow {
  display: none;
}

.meta,
.lang-grid {
  display: block;
  margin: 1.25rem 0;
}

.meta-item {
  margin: 0.25rem 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.meta-label,
.meta-value {
  display: inline;
  color: var(--text);
  font: inherit;
}

.meta-label::after {
  content: ": ";
}

.contact {
  display: inline;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

@media (min-width: 768px) {
  body > main {
    margin-top: 4rem;
  }

  h1 {
    font-size: 1.5rem;
    line-height: 3.25rem;
  }
}
