/* spo.me and drep.me share this stylesheet: <html data-domain> picks the accent. */

@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/albert-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/albert-sans-700.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #0e1116;
  --muted: #5b6472;
  --line: #e3e7ee;
  --surface: #f4f6fa;
  --accent: #1668d8;
  --on-accent: #ffffff;
  --error: #b42318;
  --draft-bg: #fde68a;
  --draft-fg: #1f1a00;
  --radius: 0.875rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

:root[data-domain="drep"] {
  --accent: #6a3ff0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --fg: #eef1f6;
    --muted: #9aa3b2;
    --line: #232834;
    --surface: #141821;
    --accent: #5aa7ff;
    --on-accent: #0b0d12;
    --error: #ff8f80;
  }

  :root[data-domain="drep"] {
    --accent: #a996ff;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* Header and footer */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.wordmark {
  color: var(--fg);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

.header-link {
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem;
}

.site-footer a {
  color: inherit;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-note {
  margin: 0;
}

/* Buttons and hints */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  max-width: 100%;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.button:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--fg));
}

.text-link {
  font-weight: 700;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hint.is-error {
  color: var(--error);
  font-weight: 700;
}

/* Landing page */

.hero {
  padding-block: clamp(3rem, 11vh, 7.5rem) clamp(3rem, 9vh, 5.5rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
}

.claim {
  margin: 0;
}

.claim-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: clamp(2.75rem, 10vw, 7.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  cursor: text;
}

.claim-line.is-long {
  font-size: clamp(2.25rem, 7vw, 5rem);
}

.claim-line.is-longer {
  font-size: clamp(1.5rem, 5vw, 3.5rem);
}

/* The name box sizes itself to its text: the invisible copy after it takes the room it needs. */
.claim-field {
  display: inline-grid;
  max-width: 100%;
  border-bottom: 0.06em solid color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent);
}

.claim-field:focus-within {
  border-bottom-color: var(--accent);
}

.claim-field::after,
.claim-field input {
  grid-area: 1 / 1;
  min-width: 0;
  font: inherit;
  letter-spacing: inherit;
}

.claim-field::after {
  content: attr(data-value) " ";
  visibility: hidden;
  white-space: pre;
  overflow: hidden;
}

.claim-field input {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  caret-color: var(--accent);
  outline: none;
}

.claim-field input::placeholder {
  color: var(--accent);
  opacity: 0.35;
}

/* Shown only without scripts, in place of the name box. */
.claim-static {
  display: none;
  color: var(--accent);
  opacity: 0.35;
}

.lede {
  max-width: 40rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.5;
}

.price-from {
  margin: 0.75rem 0 0;
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.5;
}

.price-from a {
  white-space: nowrap;
}

.steps,
.pricing {
  padding-block: clamp(3rem, 9vh, 5rem);
  border-top: 1px solid var(--line);
}

.section-title {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  scroll-margin-top: 2rem;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-list li {
  counter-increment: step;
}

.step-list li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.step-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.step-list p {
  margin: 0;
  color: var(--muted);
}

.redirect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  margin: clamp(2.5rem, 7vh, 4rem) 0 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: clamp(1.125rem, 2.3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.redirect-short {
  color: var(--accent);
}

.redirect-arrow {
  flex: none;
  width: 1.2em;
  height: 1.2em;
  color: var(--muted);
}

.redirect-long {
  color: var(--muted);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem 3rem;
}

.price-amount {
  margin: 0;
  color: var(--accent);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.price-text {
  flex: 1 1 20rem;
  max-width: 36rem;
}

.price-text p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.price-text .price-for {
  margin: 0;
  color: var(--fg);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.fine-print {
  max-width: 44rem;
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  color: var(--muted);
}

/* Name-status and not-found pages */

.status {
  padding-block: clamp(3rem, 12vh, 8rem);
}

.status-name {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.status-name span {
  color: var(--accent);
}

.status-title {
  max-width: 40rem;
  margin: 1.75rem 0 0;
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.status-text {
  max-width: 40rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

/* Legal pages */

.legal {
  padding-block: clamp(2rem, 6vh, 4rem) clamp(3rem, 9vh, 5rem);
}

.prose {
  max-width: 46rem;
}

.prose h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.prose h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  scroll-margin-top: 1.5rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose li::marker {
  color: var(--accent);
}

.prose .subtitle {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 1.25rem;
}

.prose .updated {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.prose .lead {
  margin: 2rem 0;
  font-size: 1.25rem;
  line-height: 1.5;
}

.summary {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem 0.25rem;
  border-radius: var(--radius);
  background: var(--surface);
}

.prose .summary h2 {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.toc {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}

.prose .toc ol {
  columns: 2 16rem;
  column-gap: 2.5rem;
}

.toc li {
  break-inside: avoid;
}

.toc li::marker {
  color: var(--muted);
}

.toc a {
  color: var(--fg);
  text-decoration-color: var(--line);
}

.toc a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.draft-banner {
  margin: 1.5rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--draft-bg);
  color: var(--draft-fg);
  font-weight: 700;
}

mark.draft {
  padding: 0 0.2em;
  border-radius: 0.2em;
  background: var(--draft-bg);
  color: var(--draft-fg);
}

@media print {
  .site-header,
  .site-footer,
  .toc {
    display: none;
  }
}
