:root {
  color-scheme: light;
  --text: #1a1a1a;
  --muted: #555;
  --bg: #fafafa;
  --link: #1565c0;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --text: #f0f0f0;
  --muted: #aaa;
  --bg: #121212;
  --link: #90caf9;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --text: #f0f0f0;
    --muted: #aaa;
    --bg: #121212;
    --link: #90caf9;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.logo img {
  width: 168px;
  height: auto;
}

.logo .logo-light {
  display: block;
}

.logo .logo-dark {
  display: none;
}

:root[data-theme="dark"] .logo .logo-light {
  display: none;
}

:root[data-theme="dark"] .logo .logo-dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .logo-light {
    display: none;
  }

  :root:not([data-theme="light"]) .logo .logo-dark {
    display: block;
  }
}

h2 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
}

.updated,
.contact {
  color: var(--muted);
  font-size: 0.95rem;
}

a {
  color: var(--link);
}

nav {
  margin-top: 2rem;
}

ul {
  padding-left: 1.25rem;
}

code {
  font-size: 0.9em;
}

.feedback {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.feedback label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.95rem;
}

.feedback input,
.feedback select,
.feedback textarea {
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--muted);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
}

.hint {
  color: var(--muted);
  font-weight: normal;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.feedback button {
  justify-self: start;
  font: inherit;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  border: 0;
  background: #3d7a44;
  color: #fff;
  cursor: pointer;
}

.feedback button:disabled {
  opacity: 0.6;
  cursor: default;
}

.support-link {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  background: #3d7a44;
  color: #fff;
  text-decoration: none;
}

.status {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--us, #3d7a44) 16%, var(--bg));
  color: var(--text);
  font-size: 1.05rem;
}

.status.error {
  background: color-mix(in srgb, #b82828 16%, var(--bg));
}

.sent p {
  margin: 0 0 0.85rem;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.sent p:focus {
  outline: none;
}

.sent button {
  font: inherit;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--muted);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

body.home {
  --text: #1c1c1c;
  --muted: #5a5a5a;
  --bg: #f4f3ef;
  --link: #2a6840;
  --line: #e3e0d8;
  --us: #2f6a3a;
  --them: #5a3d86;
}

:root[data-theme="dark"] body.home {
  --text: #f2f2f2;
  --muted: #b5b5b5;
  --bg: #111111;
  --link: #b7d7b4;
  --line: #2c2c2c;
  --us: #8fcea0;
  --them: #c4b0e0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.home {
    --text: #f2f2f2;
    --muted: #b5b5b5;
    --bg: #111111;
    --link: #b7d7b4;
    --line: #2c2c2c;
    --us: #8fcea0;
    --them: #c4b0e0;
  }
}

body.home header,
body.home main,
body.home footer {
  max-width: 68rem;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
}

body.home main {
  padding-top: 0;
  padding-bottom: 1rem;
}

body.home footer {
  padding-bottom: 2.5rem;
  color: var(--muted);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 2;
  padding-top: 1rem;
  padding-bottom: 0.75rem;
  background: var(--bg);
}

.site-header .logo {
  line-height: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.band,
.hero {
  scroll-margin-top: 4.5rem;
}

@media (max-width: 480px) {
  .band,
  .hero {
    scroll-margin-top: 11rem;
  }
}

@media (max-width: 340px) {
  .band,
  .hero {
    scroll-margin-top: 13rem;
  }
}

.theme-toggle {
  font: inherit;
  color: var(--link);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.theme-toggle .when-dark {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .when-light {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .when-dark {
  display: inline;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .when-light {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-toggle .when-dark {
    display: inline;
  }
}

.doc-header {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}

.doc-header + main {
  padding-top: 1rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.7fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2.75rem 0 3rem;
}

body.home h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.lede {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  line-height: 1.5;
}

.where,
.where-link {
  margin: 0;
}

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

.where-link {
  margin-top: 0.85rem;
}

.them {
  color: var(--them);
  font-weight: 650;
}

.us {
  color: var(--us);
  font-weight: 650;
}

.hero-shot {
  margin: 0;
}

.hero-shot img,
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.4rem;
  background: #000;
}

.band {
  border-top: 1px solid var(--line);
  padding: 2.75rem 0;
}

body.home .band h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem 2.5rem;
  margin: 0;
}

.facts dt {
  font-weight: 650;
}

.facts dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

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

.steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.35rem 0.75rem;
  align-items: start;
  margin: 0 0 1.1rem;
  counter-increment: step;
}

.steps li > * {
  grid-column: 2;
}

.steps li::before {
  content: counter(step);
  grid-column: 1;
  grid-row: 1;
  color: var(--us);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.45;
}

.steps li p {
  margin: 0;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.35rem;
}

.feedback-block {
  max-width: 36rem;
}

.watch-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.watch-list li + li {
  margin-top: 0.35rem;
}

#watches .where {
  margin-top: 1rem;
}

body.home a:focus-visible,
body.home button:focus-visible,
body.home input:focus-visible,
body.home select:focus-visible,
body.home textarea:focus-visible {
  outline: 2px solid var(--us);
  outline-offset: 2px;
}

:root[data-theme="dark"] .hero-shot img,
:root[data-theme="dark"] .gallery img {
  outline: 1px solid #2a2a2a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-shot img,
  :root:not([data-theme="light"]) .gallery img {
    outline: 1px solid #2a2a2a;
  }
}

@media (max-width: 800px) {
  .hero,
  .gallery,
  .facts {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1.75rem;
  }

  .hero-shot,
  .gallery figure {
    max-width: 280px;
  }

  .hero-shot {
    justify-self: center;
  }

  .gallery {
    justify-items: center;
  }
}
