@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/InterVariable.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #252525;
  --muted: #6b6b6b;
  --rule: #e4e4e4;
  --focus: #365c82;
  --selection: #e3e9f0;
  --screen-edge: #d2d2d2;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191919;
  --ink: #e6e6e6;
  --muted: #a0a0a0;
  --rule: #383838;
  --focus: #a9c7e6;
  --selection: #344353;
  --screen-edge: #505050;
}

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

html {
  background: var(--paper);
  scrollbar-color: var(--muted) var(--paper);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--selection);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button {
  border: 0;
  border-radius: 3px;
  padding: 0;
  background: transparent;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 5px;
}

@media (hover: hover) {
  button:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

.skip {
  position: absolute;
  top: 1rem;
  left: -999px;
  background: var(--paper);
}

.skip:focus {
  left: 1rem;
}

.page {
  width: min(100% - 3rem, 40rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 2.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.site-header a {
  text-decoration: none;
}

.icon-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-inline: -0.75rem;
}

.icon-control[hidden] {
  display: none;
}

.icon-control svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-control:hover {
  color: var(--ink);
}

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

[data-theme="dark"] .icon-sun {
  display: block;
}

.post-header {
  margin-block: 1.5rem 2.5rem;
}

h1 {
  max-width: 26ch;
  margin: 0;
  font-size: clamp(1.75rem, 4.5vw, 2.125rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

article > p {
  margin: 0 0 1.4rem;
  text-wrap: pretty;
}

.feature-list {
  margin: 0 0 1.4rem;
  padding-left: 1.25rem;
}

.feature-list li + li {
  margin-top: 0.25rem;
}

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

.demo {
  position: relative;
  width: min(100%, 22rem);
  margin: 2.25rem auto 3rem;
}

.demo.is-expanded {
  left: 50%;
  width: min(calc(100vw - 1rem), 40rem);
  max-width: none;
  margin-inline: 0;
  transform: translateX(-50%);
}

.demo-screen {
  position: relative;
}

.demo.is-expanded .demo-invite {
  display: none;
}

.demo-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 4.5rem;
  padding: 0.75rem 0;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.5;
}

.demo-guide svg {
  flex: 0 0 1.125rem;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo [hidden] {
  display: none;
}

.demo button:disabled {
  cursor: progress;
}

.demo-guide:disabled {
  color: var(--muted);
}

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

.demo-invite {
  position: absolute;
  z-index: 1;
  top: 0.75rem;
  left: -7.5rem;
  width: 10rem;
  height: 10.625rem;
  color: var(--muted);
  pointer-events: none;
}

.demo-invite span {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.8125rem;
  font-style: italic;
  transform: rotate(-7deg);
}

.demo-invite svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.device {
  position: relative;
  aspect-ratio: 1072 / 1448;
  overflow: hidden;
  border: 1px solid var(--screen-edge);
  border-radius: 5px;
  background: #ffffff;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.device img {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.hotspots,
.flash {
  position: absolute;
  inset: 0;
}

.flash {
  background: #000000;
  opacity: 0;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  overflow: hidden;
  border-radius: 2px;
  color: transparent;
  font-size: 0;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  max-height: 100%;
  transform: translate(-50%, -50%);
}

.hotspot-marker {
  position: absolute;
  border: 1px solid transparent;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.demo-cue {
  position: absolute;
  border-bottom: 2px solid #365c82;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

[data-night="true"] .demo-cue {
  border-color: #a9c7e6;
}

.show-actions .hotspot-marker {
  border-color: #365c82;
  background: rgb(54 92 130 / 0.1);
}

.show-actions [data-night="true"] .hotspot-marker {
  border-color: #a9c7e6;
  background: rgb(169 199 230 / 0.12);
}

.hotspot:focus-visible {
  outline: none;
}

.hotspot:focus-visible + .hotspot-marker {
  outline: 2px solid #365c82;
  outline-offset: -2px;
}

[data-night="true"] .hotspot:focus-visible + .hotspot-marker {
  outline-color: #a9c7e6;
}

@media (hover: hover) {
  .hotspot:hover + .hotspot-marker {
    background: rgb(128 128 128 / 0.1);
  }
}

.demo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.demo-hint {
  margin: 0;
}

.demo-controls button {
  flex-shrink: 0;
  min-height: 2.75rem;
  min-width: 2.75rem;
}

.demo-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.demo-samples button {
  min-height: 2.75rem;
}

.demo-samples [aria-pressed="true"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 2px;
}

.demo-caption {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.demo-feedback {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.demo-gallery {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
}

.post-footer {
  margin-top: 3rem;
  padding-block: 1.5rem 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

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

@media (max-width: 600px) {
  .demo-invite {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-block: 1rem;
  }

  .post-header {
    margin-block: 1.25rem 2rem;
  }

  .demo {
    margin-bottom: 2.5rem;
  }
}
