@font-face {
  font-family: "Saira Condensed";
  src: url("/fonts/SairaCondensed-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saira Condensed";
  src: url("/fonts/SairaCondensed-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Azeret Mono";
  src: url("/fonts/AzeretMono.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --backing: #e8e8e1;
  --backing-dot: #b9b9ae;
  --label: #d8ff3e;
  --ink: #111111;
  --ink-muted: #5e5e55;
  --paper: #f7f7f2;
  --tomato: #ff4d2e;
  --stamp: #b92a14;
  --rule: #c6c6ba;
  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --mono: "Azeret Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --backing: #151513;
    --backing-dot: #3a3a34;
    --ink: #f2f2ec;
    --ink-muted: #b7b7aa;
    --paper: #23231f;
    --rule: #3d3d36;
    --stamp: #ff5a3d;
  }
}

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

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

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: var(--backing);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--backing-dot) 0.85px, transparent 0.95px);
  background-size: 24px 24px;
  opacity: 0.55;
}

::selection {
  color: #111111;
  background: var(--label);
}

a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

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

main {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 18px calc(44px + env(safe-area-inset-bottom));
}

.mast {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: 0.008em;
  text-transform: uppercase;
}

.meta {
  margin-top: 10px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.notice {
  margin-top: 18px;
  padding: 13px 15px;
  color: #111111;
  background: var(--tomato);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.notice.good {
  color: #111111;
  background: var(--label);
}

.notice strong {
  font-weight: 600;
}

.sheet {
  margin-top: 18px;
  padding: 26px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: 0 18px 30px -26px rgba(0, 0, 0, 0.4);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.sheet-head .mono {
  flex: 0 0 auto;
  padding-top: 7px;
  color: var(--stamp);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
}

h2 {
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.lede {
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--ink-muted);
  font-size: 16px;
}

.steps {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 0;
  border-top: 1px dashed var(--rule);
}

.steps li:first-child {
  border-top: 0;
  padding-top: 0;
}

.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  color: #111111;
  background: var(--label);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.steps p {
  max-width: 58ch;
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.55;
}

.steps p strong {
  color: var(--ink);
  font-weight: 600;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 16px;
  border: 2px solid #111111;
  border-radius: 3px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary {
  color: #111111;
  background: var(--label);
}
.primary:active {
  filter: brightness(0.94);
  transform: translateY(1px);
}

.secondary {
  color: var(--label);
  background: #111111;
}

.hint {
  font-family: var(--mono);
  font-size: 11px !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.address-card {
  margin-top: 24px;
  padding: 16px;
  color: var(--label);
  background: #111111;
  border-radius: 3px;
}

.address-card .mono {
  margin-top: 12px;
  color: var(--label);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  opacity: 0.65;
}
.address-card .mono:first-child {
  margin-top: 0;
}

.address-card code {
  display: block;
  margin-top: 4px;
  color: var(--label);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.fallback {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 12px;
  color: var(--label);
  border: 2px solid var(--label);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.why {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.why h2 {
  font-size: 1.15rem;
}

.why p {
  max-width: 64ch;
  margin: 9px 0 0;
  color: var(--ink-muted);
  font-size: 15px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 10px;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (min-width: 620px) {
  main {
    padding-top: calc(34px + env(safe-area-inset-top));
    padding-right: 26px;
    padding-left: 26px;
  }
  .sheet {
    padding: 34px 32px;
  }
  .steps li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 380px) {
  .sheet {
    padding: 20px 16px;
  }
  .install-tab {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.token-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}
.token-form label {
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.token-form input {
  width: 100%;
  height: 56px;
  padding: 0 14px;
  color: #111111;
  background: var(--label);
  border: 2px solid #111111;
  border-radius: 3px;
  outline: 0;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.token-form input:focus-visible {
  outline: 3px solid #B92A14;
  outline-offset: 2px;
}
.token-form .primary {
  align-self: flex-start;
  margin-top: 6px;
}
