:root {
  --paper: #f6f4ef;
  --sheet: #fffdf8;
  --ink: #161616;
  --muted: #5c5852;
  --rule: #e6e1d8;
  --rule-strong: #cfc8bb;
  --violet: #5d33f6;
  --violet-ink: #3d1fa8;
  --genuine: #0f6b4c;
  --not-found: #9b1c1c;
  --caution: #8a5a00;
  --focus: #5d33f6;
  --radius: 6px;
  --prose: 40rem;
  --form: 36rem;
  --page: 68rem;
  --sans: "Source Sans 3", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --serif: "Source Serif 4", "Noto Serif SC", serif;
  --mono: "IBM Plex Mono", "Source Code Pro", ui-monospace, monospace;
}

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

html {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.625;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
}

[hidden] {
  display: none !important;
}

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

a {
  color: var(--violet-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  padding: 0.4rem 0.7rem;
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.preview-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  align-items: center;
  padding: 0.45rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  line-height: 1.35;
}

html.is-live .preview-bar {
  display: none !important;
}

.preview-bar a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.preview-bar a:hover,
.preview-bar a[aria-current="page"] {
  border-bottom-color: var(--paper);
}

.preview-bar .sep {
  color: #9a958c;
}

.wrap {
  width: min(var(--page), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
  font-weight: 600;
  font-size: 0.95rem;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark img {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.wordmark .tld {
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 400;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--violet-ink);
  text-decoration: underline;
}

.lang {
  position: relative;
  padding-bottom: 0.55rem;
  margin-bottom: -0.55rem;
}

.lang-toggle {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.lang-toggle:hover,
.lang:hover .lang-toggle,
.lang:focus-within .lang-toggle {
  color: var(--ink);
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 5;
  min-width: 8rem;
  padding: 0.3rem 0;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--sheet);
}

.lang:hover .lang-menu,
.lang:focus-within .lang-menu,
.lang.is-open .lang-menu {
  display: block;
}

.lang-menu button {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button[aria-pressed="true"] {
  background: var(--paper);
}

.lang-menu button[aria-pressed="true"] {
  font-weight: 600;
}

main {
  padding: 2.5rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

h1,
h2,
.serif {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  line-height: 1.2;
}

h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  line-height: 1.3;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.lede,
p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.125rem;
  max-width: var(--prose);
}

.muted {
  color: var(--muted);
}

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

.prose > :last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  gap: 2.5rem 3rem;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.8fr);
    align-items: start;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  margin: 1.5rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border: 1px solid var(--violet);
  border-radius: var(--radius);
  background: var(--violet);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--violet-ink);
  border-color: var(--violet-ink);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.facts {
  border-top: 1px solid var(--rule);
  padding-top: 0.15rem;
}

.facts div {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.facts dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

.section {
  margin-top: 3.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

dl.defs {
  margin: 0;
  max-width: 46rem;
}

dl.defs > div {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  gap: 0.35rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

dl.defs dt {
  margin: 0;
  font-weight: 600;
}

dl.defs dd {
  margin: 0;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
}

dl.defs dd a {
  flex: none;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

dl.defs dd a:hover {
  color: var(--violet-ink);
  text-decoration: underline;
}

.service-state {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  max-width: 44rem;
}

.steps li {
  position: relative;
  padding: 0.7rem 0 0.7rem 2.4rem;
  border-bottom: 1px solid var(--rule);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.7rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}

.notice {
  max-width: 44rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rule-strong);
  background: var(--sheet);
}

.notice strong {
  display: block;
  margin-bottom: 0.25rem;
}

.notice-caution {
  border-color: #e0c48a;
}

.notice-danger {
  border-color: #e3b6b6;
}

.notice-ok {
  border-color: #b7d4c6;
}

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

label {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.hint {
  display: block;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.field {
  margin: 0 0 1.25rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.7rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: 2px solid var(--focus);
  outline-offset: 0;
  border-color: var(--focus);
}

.mono,
input[name="trf"] {
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.score-row div {
  padding: 0.7rem 0.5rem;
  border: 1px solid var(--rule);
  background: var(--sheet);
  text-align: center;
}

.score-row span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.score-row strong {
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.status {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.status-ok {
  color: var(--genuine);
}

.status-bad {
  color: var(--not-found);
}

.status-warn {
  color: var(--caution);
}

.meta-table {
  width: 100%;
  max-width: 40rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.meta-table th,
.meta-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.meta-table th {
  width: 11rem;
  color: var(--muted);
  font-weight: 400;
}

.pay-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  max-width: 32rem;
}

.pay-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.site-footer a {
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 0.85rem;
}

.site-footer p {
  margin: 0 0 0.35rem;
  max-width: 46rem;
}

.legal h1 {
  font-size: 2rem;
}

.legal .updated {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.legal h2 {
  margin-top: 1.75rem;
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--page), calc(100% - 1.5rem));
  }

  dl.defs > div {
    grid-template-columns: 1fr;
  }

  .score-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .meta-table th {
    width: 7.5rem;
  }
}

@media print {
  .preview-bar,
  .site-header nav,
  .lang,
  .actions,
  .skip {
    display: none !important;
  }

  body,
  html {
    background: #fff;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
