/* The account and terms pages. Tokens match the homepage's. */

@font-face {
  font-family: "Signifier";
  src: url("/fonts/Signifier-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --color-ground: #f5f5f3;
  --color-panel: #ebebe8;
  --color-panel-deep: #e2e2de;
  --color-ink: #1a1a19;
  --color-muted: #55534f;
  --color-rule: #dcdcd8;
  --color-on-ink: #f4f4f3;
  --color-on-ink-muted: #a3a29e;
  --color-sun: #b04a14;
  --color-sun-on-ink: #f08a4b;

  --font-display: "Signifier", Georgia, serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --control: 44px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-ground);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 28px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

main {
  flex: 1;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

:focus-visible {
  outline: 2px solid var(--color-sun);
  outline-offset: 2px;
  border-radius: 4px;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 22px;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.label {
  font-size: 15px;
  line-height: 22px;
}

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

.num {
  font-variant-numeric: tabular-nums;
}

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

/* Header and footer */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.bar nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.bar nav .label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 32px 64px;
  border-top: 1px solid var(--color-rule);
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Type */

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 56px;
  line-height: 60px;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 17px;
  line-height: 28px;
  font-weight: 500;
}

/* Controls: one height, one radius */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--control);
  padding-inline: 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: var(--color-on-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.button:hover {
  background: #333331;
}

.button:active {
  transform: scale(0.97);
}

.button:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.button.quiet {
  background: transparent;
  color: var(--color-ink);
  box-shadow: inset 0 0 0 1px var(--color-rule);
}

.button.quiet:hover {
  background: var(--color-panel);
}

.button.danger {
  background: var(--color-sun);
  color: var(--color-on-ink);
  box-shadow: none;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: var(--control);
  height: var(--control);
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition:
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out);
}

.icon-button:hover {
  background: var(--color-panel-deep);
  color: var(--color-ink);
}

.icon-button.confirm {
  width: auto;
  padding-inline: 14px;
  background: var(--color-sun);
  color: var(--color-on-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
}

.icon-button svg,
.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input {
  height: var(--control);
  min-width: 0;
  padding-inline: 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-ground);
  box-shadow: inset 0 0 0 1px var(--color-rule);
  color: var(--color-ink);
  font: inherit;
  font-size: 16px;
}

.input:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--color-ink);
}

/* Copyable value: a literal URL or key with a copy button */

.value {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 6px 6px 6px 20px;
  border-radius: var(--radius-md);
  background: var(--color-panel);
}

.value code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

/* Two-column sections, as on the homepage */

.section {
  display: grid;
  grid-template-columns: minmax(0, 376fr) minmax(0, 680fr);
  gap: 64px;
  padding-block: 48px 80px;
  border-top: 1px solid var(--color-rule);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 10;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: var(--color-on-ink);
  font-size: 15px;
  line-height: 22px;
  translate: -50% 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}

.toast.shown {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .section {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-block: 36px 56px;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .bar {
    padding-block: 20px;
  }

  .display {
    font-size: 40px;
    line-height: 44px;
  }

  h2 {
    font-size: 28px;
    line-height: 34px;
  }

  code,
  .mono {
    font-size: 13px;
    line-height: 20px;
  }
}

/* Text links reach 44 px on touch without changing their size. */
@media (max-width: 600px), (pointer: coarse) {
  .brand,
  .bar nav a,
  .footer a {
    display: inline-flex;
    align-items: center;
    min-width: var(--control);
    min-height: var(--control);
  }

  .footer {
    align-items: center;
    gap: 0 24px;
    padding-block: 21px 53px;
  }
}

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