:root {
  color-scheme: light;
  --paper: #f7f3ea;
  --surface: #fffdf8;
  --ink: #1d2c25;
  --muted: #4f5d53;
  --line: #d7d1c2;
  --accent: #245944;
  --accent-dark: #174031;
  --wash: #f1e8d6;
  --focus: #a24d2f;
  --serif: Georgia, Cambria, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--glyph-font, system-ui), system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

h1,
h2 {
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.14;
}

h1 {
  margin: 0 0 .8rem;
  font-size: clamp(2.25rem, 6vw, 4rem);
  letter-spacing: -.035em;
}

h2 {
  margin: 2.75rem 0 .85rem;
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  letter-spacing: -.018em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: .18em;
}

a:hover {
  color: var(--accent-dark);
}

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

.glyph {
  font-family: var(--glyph-font, system-ui), system-ui, sans-serif;
  font-weight: 400;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 1;
  top: .6rem;
  left: .6rem;
  padding: .55rem .8rem;
  background: var(--surface);
}

.site-wrap {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}

.site-header,
.site-footer {
  background: var(--surface);
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-row,
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1.25rem;
  padding-block: .55rem;
}

.site-brand {
  color: var(--ink);
  font: bold 1.21rem/1.2 var(--serif);
  text-decoration: none;
}

.site-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .4rem;
}

.site-nav a,
.site-footer nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: .47rem;
  font-size: .86rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.page-intro {
  padding-block: clamp(1.3rem, 4vw, 3rem) 1.15rem;
}

.page-lead,
.page-boundary {
  max-width: 52rem;
}

.page-lead {
  margin-bottom: .55rem;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.page-boundary {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .93rem;
}

.page-copy {
  max-width: 53rem;
  padding-bottom: 3rem;
}

.page-copy > p,
.legal-page p {
  max-width: 70ch;
}

.page-copy li + li {
  margin-top: .35rem;
}

.page-copy code {
  background: var(--wash);
  border-radius: .2rem;
  padding: .12em .25em;
  font-size: .9em;
}

.legal-page {
  min-height: 58vh;
  padding-top: 2.5rem;
}

.chart {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .65rem;
  margin-block: 1rem 1.5rem;
}

.chart table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.chart th,
.chart td {
  padding: .55rem .8rem;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.chart thead {
  background: var(--wash);
}

.chart tbody tr + tr {
  border-top: 1px solid var(--line);
}

.chart-sign {
  display: block;
  font-size: 1.9rem;
  line-height: 1.17;
}

.codepoints {
  display: block;
  color: var(--muted);
  font: .68rem/1.3 ui-monospace, monospace;
}

.name-step {
  display: inline-block;
  margin-inline-end: .4rem;
}

.name-step .glyph {
  font-size: 1.22rem;
}

.related-tools ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  gap: .7rem;
}

.related-tools li,
.related-tools li + li {
  margin: 0;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: .5rem;
}

.related-tools a {
  font-weight: 650;
}

.related-tools p {
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .91rem;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: .65rem .1rem;
  font-weight: 650;
  cursor: pointer;
}

.faq p {
  margin-left: 1.2rem;
}

.sources ul,
.changelog ul {
  padding-inline-start: 1.3rem;
}

.changelog-date {
  font-weight: 650;
}

.site-footer {
  border-top: 1px solid var(--line);
}

@media (max-width: 39rem) {
  .header-row,
  .footer-row {
    display: block;
    padding-top: .8rem;
  }

  .site-nav a,
  .site-footer nav a {
    padding-inline: .23rem;
  }

  .site-nav {
    margin-top: .15rem;
  }

  .chart th,
  .chart td {
    padding: .48rem .3rem;
  }

  .chart table {
    font-size: .79rem;
  }

  .chart-sign {
    font-size: 1.45rem;
  }

  .name-step .glyph {
    font-size: 1rem;
  }
}
