:root {
  color-scheme: light;
  --background: #f4f4f4;
  --foreground: #060607;
  --muted: #55565b;
  --control: #ffffff;
  --border: #d8dadd;
  --control-hover: #eceef1;
  --primary: #c52230;
  --ring: rgba(197, 34, 48, 0.35);
  --radius: 0.75rem;
  font-family: Roboto, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0f1115;
  --foreground: #f2f4f7;
  --muted: #a2a9b5;
  --control: #171a20;
  --border: #303641;
  --control-hover: #292e37;
  --primary: #f16b73;
  --ring: rgba(241, 107, 115, 0.42);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-size: 1rem;
  line-height: 1.5;
}

.theme-toggle {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  right: max(1rem, calc((100vw - 57rem) / 2 + 1rem));
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--control);
  color: var(--foreground);
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}

.theme-toggle:hover {
  background: var(--control-hover);
}

.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:root[data-theme="light"] .sun-icon,
:root[data-theme="dark"] .moon-icon {
  display: none;
}

.page {
  max-width: 57rem;
  margin: 0 auto;
  padding: 4.5rem 1rem 4rem;
}

.mode {
  display: none;
}

body[data-mode="pin"] .mode-pin,
body[data-mode="usage"] .mode-usage {
  display: block;
  animation: fade-in 0.25s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

h1 {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
  line-height: 1.4;
}

.shot {
  margin: 0 0 3.5rem;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.usage-toolbar-step {
  margin-bottom: 2rem;
}

.usage-toolbar-copy {
  margin-bottom: 0;
}

.usage-workflow {
  margin-top: 4.5rem;
}

.usage-upload-step,
.usage-download-step {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 2rem);
}

.usage-upload-step {
  width: 898px;
}

.usage-download-step {
  width: 898px;
  margin-bottom: 0;
}

.switch {
  margin: 2.5rem 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  text-align: center;
}

.switch a {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.6rem 0.25rem;
  color: var(--primary);
  font-weight: 500;
  text-underline-offset: 0.2em;
}

a:focus-visible,
.theme-toggle:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

@media (max-width: 720px) {
  .page {
    padding-top: 5rem;
  }

  .theme-toggle {
    top: 1rem;
  }

  .lead {
    margin-bottom: 1.75rem;
  }

  .shot {
    margin-bottom: 2.5rem;
  }

  .usage-toolbar-step {
    margin-bottom: 1.5rem;
  }

  .usage-workflow {
    margin-top: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-mode] .mode {
    animation: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
