/* strandxr.com. Plain on purpose: system fonts, thin rules, and the app icon as the only colour. */

:root {
  color-scheme: dark;
  --bg: #0e0e10;
  --text: #ebebed;
  --body: #c9c9ce;
  --muted: #a1a1aa;
  --faint: #71717a;
  --rule: #27272c;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgba(235, 235, 237, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 2px solid #04bdf6;
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  top: 12px;
  left: -9999px;
  padding: 8px 14px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}

.skip:focus {
  left: 12px;
}

.page {
  width: min(1040px, 100% - 48px);
  margin-inline: auto;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 26px 0;
}

.brand {
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* Type */

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 6vw, 3.25rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0 0 16px;
}

.measure {
  max-width: 640px;
}

/* Home: the opening */

.intro {
  padding: 56px 0 64px;
}

.app-icon {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 32px;
}

.lead {
  max-width: 640px;
  font-size: 1.2rem;
  line-height: 1.6;
}

.status {
  margin: 28px 0 0;
  color: var(--muted);
}

/* Actions: plain buttons, white on dark; the icon stays the only colour. */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
}

.button:hover {
  border-color: var(--muted);
}

.button.primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.button.primary:hover {
  background: #fff;
  border-color: #fff;
}

.button[aria-disabled="true"] {
  border-color: var(--rule);
  color: var(--faint);
}

/* Sections: the heading in a left column, the content to its right. */

.section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px 48px;
  padding: 52px 0;
  border-top: 1px solid var(--rule);
}

.section > :last-child {
  margin-bottom: 0;
}

.section p,
.section dd {
  color: var(--body);
  font-size: 16px;
}

/* Two columns of short blocks, each under a rule. */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid > li {
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.grid p {
  margin: 0;
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-number {
  display: block;
  margin-bottom: 10px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
}

/* Label and text side by side, like a spec sheet. */
.specs {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px 24px;
  margin: 0;
}

.specs dt {
  padding-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 14px;
}

.specs dd {
  margin: 0;
}

/* Support: questions and answers */

.faq {
  margin: 0;
}

.faq dt {
  margin: 0 0 6px;
  font-weight: 600;
}

.faq dd {
  margin: 0 0 28px;
}

.faq dd:last-child {
  margin-bottom: 0;
}

/* Documents: the support page's opening and the privacy policy */

.doc-head {
  padding: 48px 0 44px;
}

.doc {
  max-width: 720px;
  padding: 8px 0 48px;
}

.updated {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 14px;
}

.doc h2 {
  margin: 44px 0 14px;
  font-size: 1.3rem;
}

.doc > h2:first-child {
  margin-top: 0;
}

.doc h3 {
  margin: 28px 0 8px;
}

.doc p,
.doc li,
.doc td {
  color: var(--body);
}

.doc ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.doc li {
  margin: 0 0 8px;
}

.doc ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

/* The download page's package block, rewritten by publish.sh. */
.package-meta {
  color: var(--muted);
}

.hash {
  color: var(--muted);
  font-size: 14px;
}

table {
  width: 100%;
  margin: 8px 0 24px;
  border-collapse: collapse;
  font-size: 16px;
}

th,
td {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

thead th {
  padding-top: 0;
  border-top: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
}

tbody th {
  width: 30%;
  padding-right: 20px;
  font-weight: 600;
}

tbody th small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 400;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: #1c1c20;
  font-family: var(--mono);
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  margin-top: 24px;
  padding: 40px 0 56px;
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  margin-bottom: 36px;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
}

.footer-grid .brand {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--text);
}

.footer-links {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.legal {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

/* Narrower screens */

@media (max-width: 860px) {
  .section {
    grid-template-columns: 1fr;
    padding: 44px 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16.5px;
  }

  .page {
    width: calc(100% - 40px);
  }

  .site-nav .on-home {
    display: none;
  }

  .intro {
    padding: 36px 0 48px;
  }

  .app-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .specs {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .specs dd {
    margin-bottom: 16px;
  }

  .specs dd:last-child {
    margin-bottom: 0;
  }

  /* Each table row becomes a block, its heading above its text. */
  table,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tbody tr {
    padding: 12px 0;
    border-top: 1px solid var(--rule);
  }

  tbody th,
  td {
    width: auto;
    padding: 0;
    border-top: 0;
  }

  tbody th {
    margin-bottom: 4px;
  }
}
