@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/dm-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --paper: #f9f9f5;
  --ink: #202023;
  --muted: #53535e;
  --rule: #d8d9d2;
  --blue: #3d3dbe;
  font:
    16px/1.5 "DM Sans",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body,
figure,
h1,
h2,
h3,
p {
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
a {
  color: inherit;
  text-underline-offset: 0.23em;
}
a:hover,
button:hover {
  color: var(--blue);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #6857da;
  outline-offset: 5px;
}
.shell {
  width: min(1392px, 90%);
  margin-inline: auto;
}
header {
  border-bottom: 1px solid var(--rule);
}
nav,
footer .shell,
.brand,
.links,
.actions,
.eyebrow,
.roster-title {
  display: flex;
  align-items: center;
}
nav,
footer .shell,
.roster-title {
  justify-content: space-between;
}
nav {
  height: 74px;
}
.brand {
  text-decoration: none;
  gap: 8px;
  font-size: 25px;
  font-weight: 670;
  letter-spacing: -1.2px;
}
.brand span {
  font-weight: 400;
  margin-left: -2px;
}
.brand img {
  margin-right: 4px;
}
.links {
  gap: 30px;
  font-weight: 550;
  font-size: 14px;
}
.links a {
  text-decoration: none;
}
.nav-account {
  border: 1px solid #b7b7b2;
  border-radius: 24px;
  padding: 8px 18px;
}
.nav-account span {
  padding-left: 6px;
}
.skip {
  position: absolute;
  left: -1000px;
}
.skip:focus {
  left: 12px;
  top: 10px;
  background: white;
  padding: 6px;
  z-index: 1;
}
.hero,
.welcome {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 4%;
  padding-block: clamp(44px, 5vw, 82px);
}
.hero figure {
  background: #d8d5f4;
  border-radius: 14px;
  overflow: hidden;
}
.hero figure img,
.welcome-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.36;
  object-fit: cover;
}
.eyebrow {
  font-size: 11px;
  font-weight: 660;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  gap: 10px;
}
.stroke {
  width: 25px;
  height: 2px;
  background: currentColor;
}
h1,
h2,
h3 {
  line-height: 1.06;
  font-weight: 520;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(60px, 6.1vw, 94px);
  margin: 18px 0 22px;
}
h1 em {
  font:
    italic 1.1em/0.98 "Instrument Serif",
    "Iowan Old Style",
    Georgia,
    serif;
  letter-spacing: -0.042em;
  color: var(--blue);
}
.lead {
  font-size: clamp(17px, 1.4vw, 22px);
  max-width: 39ch;
  color: var(--muted);
  line-height: 1.5;
}
.actions {
  gap: 24px;
  margin-top: 28px;
}
.button {
  border-radius: 30px;
  background: var(--ink);
  color: white;
  padding: 0.83em 1.45em;
  text-decoration: none;
  font-weight: 570;
}
.button:hover {
  background: var(--blue);
  color: white;
}
.button span {
  margin-left: 10px;
}
.textlink {
  font-weight: 550;
}
.modes,
.setup {
  border-top: 1px solid var(--rule);
  padding-block: 48px 60px;
}
.section-head,
.setup {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: baseline;
  gap: 28px;
}
h2 {
  font-size: clamp(33px, 3.5vw, 54px);
}
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 35px;
}
.mode {
  background: #eeeeea;
  border-radius: 12px;
  padding: 28px;
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  gap: 24px;
}
.mode:nth-child(2) {
  background: #e9e8f7;
}
h3 {
  font-size: clamp(24px, 2.3vw, 32px);
}
.mode p,
aside p,
.empty p,
.setup li span {
  color: var(--muted);
  margin-top: 10px;
  max-width: 46ch;
}
.diagram {
  height: 66px;
  position: relative;
  color: #444476;
}
.diagram i,
.diagram b {
  position: absolute;
  display: block;
  border: 2px solid;
  border-radius: 4px;
  background: #edeef5;
}
.diagram i:first-child {
  width: 66px;
  height: 45px;
  left: 0;
  top: 2px;
}
.diagram i:nth-child(2) {
  width: 56px;
  height: 37px;
  right: 0;
  bottom: 0;
}
.diagram b {
  width: 31px;
  height: 22px;
  right: 10px;
  bottom: 8px;
  background: #a8a6f4;
  border-top-width: 6px;
}
.extend i:first-child {
  top: 15px;
  width: 52px;
  height: 34px;
}
.extend i:nth-child(2) {
  width: 48px;
  height: 35px;
  bottom: 16px;
}
.extend b {
  height: 3px;
  top: 31px;
  left: 16px;
  width: 71px;
  background: currentColor;
  border: 0;
}
.setup {
  align-items: start;
  grid-template-columns: 1fr 1fr;
}
.setup h2 {
  margin-top: 16px;
}
.setup ol {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}
.setup li {
  border-top: 1px solid var(--rule);
  padding: 16px 0 16px 40px;
  position: relative;
  counter-increment: steps;
}
.setup li:before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--blue);
  font: 14px/1.7 monospace;
}
.setup li span,
.device-list strong,
.device-list div > span {
  display: block;
}
.setup li span {
  margin: 2px 0;
}
footer {
  border-top: 1px solid var(--rule);
}
footer .shell {
  min-height: 84px;
}
footer .brand {
  font-size: 20px;
}
footer a:last-child {
  font-size: 14px;
}
.welcome,
.dashboard {
  min-height: 70vh;
}
.welcome-art {
  border-radius: 14px;
}
.dashboard {
  padding-block: 58px 78px;
}
.dashboard h1 {
  font-size: clamp(46px, 6vw, 86px);
  margin-bottom: 45px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 28px;
}
.roster,
aside {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 26px;
}
.dashboard h2 {
  font-size: 29px;
}
.empty {
  text-align: center;
  background: #efeff7;
  border-radius: 9px;
  margin-top: 22px;
  padding: 38px 20px;
}
.empty p {
  margin: 12px auto 0;
}
.empty h3 {
  margin-top: 12px;
}
.device-list {
  list-style: none;
  padding: 0;
}
.device-list li {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--rule);
  padding-block: 15px;
  overflow-wrap: anywhere;
}
.device-list div > span,
summary {
  font-size: 14px;
}
.online {
  color: #186238;
}
summary {
  cursor: pointer;
}
aside {
  align-self: start;
  background: #efefe9;
}
aside p {
  margin-bottom: 16px;
}
hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 24px 0 15px;
}
.subtle {
  font: inherit;
  color: var(--muted);
  border: 0;
  background: none;
  cursor: pointer;
  padding: 5px 0;
  text-decoration: underline;
}
@media (max-width: 850px) {
  .mode {
    grid-template-columns: 1fr;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero figure img {
    aspect-ratio: 1;
  }
  .dashboard-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}
@media (max-width: 680px) {
  nav {
    height: 62px;
  }
  .brand {
    font-size: 21px;
    gap: 5px;
  }
  .brand img {
    width: 27px;
    height: 27px;
  }
  .links {
    gap: 13px;
    font-size: 13px;
  }
  .nav-account {
    padding: 6px 11px;
  }
  .hero,
  .welcome {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 33px;
  }
  .hero figure img,
  .welcome-art {
    aspect-ratio: 1.58;
  }
  .hero h1 {
    margin: 13px 0;
  }
  .actions {
    margin-top: 19px;
  }
  .modes,
  .setup {
    padding-block: 32px;
  }
  .mode-grid,
  .setup,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .mode-grid {
    gap: 12px;
    margin-top: 22px;
  }
  .mode {
    grid-template-columns: 76px 1fr;
    padding: 20px;
    gap: 16px;
  }
  .diagram {
    transform: scale(0.74);
    transform-origin: left center;
    width: 100px;
  }
  .dashboard {
    padding-block: 32px;
  }
  .dashboard h1 {
    margin-bottom: 25px;
  }
  .roster,
  aside {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.device-list li {
  align-items: center;
}
.device-label {
  flex: 1;
  min-width: 0;
}
.device-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #4946aa;
  background: #ebebf5;
}
.device-icon::before {
  content: "";
  display: block;
  border: 1.7px solid currentColor;
  border-radius: 2px;
}
.device-icon.computer::before {
  width: 21px;
  height: 14px;
  box-shadow: 0 5px 0 -3px currentColor;
}
.device-icon.phone::before {
  width: 11px;
  height: 20px;
  border-radius: 3px;
}
@media (max-width: 400px) {
  nav .links a[href="/#modes"] {
    display: none;
  }
}
