/* Article layout, typography, colors and sidenotes come from Tufte CSS.
   These rules place the artwork and style the site's interactive elements. */
:root {
  color-scheme: light dark;
}

button,
select,
input:not(.margin-toggle) {
  font: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
.text-action {
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.1em;
}
.text-action[aria-pressed="true"] {
  font-weight: bold;
  text-decoration: none;
}
.text-action:disabled {
  font-style: italic;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.inline-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", emoji;
  font-size: 0.88em;
}
.page-links p {
  font-size: 1.1rem;
}
#buy-status:not(:empty)::before {
  content: " ";
}

.guide-masthead,
.guide-masthead nav,
.guide-wordmark {
  display: flex;
  align-items: center;
}
.guide-masthead {
  max-width: 88%;
  min-height: 4.9rem;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 3px double currentColor;
}
.guide-masthead nav {
  gap: 1.25rem;
  font-size: 1.1rem;
}
.guide-wordmark {
  font-size: 2rem;
  letter-spacing: -0.045em;
  line-height: 1;
}
.guide-wordmark img {
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.32em;
}
.guide-masthead a {
  text-decoration: none;
}
.guide-masthead nav a:hover {
  text-decoration: underline;
}
.guide-page main article {
  padding-block: 2.25rem 3rem;
}
.guide-page main h1 {
  margin-top: 2rem;
}
.copy-action,
.instructions a[download] {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid currentColor;
  background: #24231d;
  color: #fffff8;
  font-size: 1.08rem;
  text-decoration: none;
}
.copy-action:hover,
.instructions a[download]:hover {
  background: #92371e;
  color: #fff;
}
.instructions code {
  overflow-wrap: anywhere;
}
#key {
  box-sizing: border-box;
  max-width: 100%;
  font-family: monospace;
}
.has-picker details > summary {
  display: none;
}
[hidden] {
  display: none !important;
}

body.site-subpage {
  --brand-paper: #fcfaf4;
  --brand-panel: #fffdf7;
  --brand-ink: #181d31;
  --brand-muted: #4d5468;
  --brand-rule: #d6d0c3;
  --brand-accent: #2e3fbb;
  --brand-on-accent: #fffdf7;
  --brand-tint: #e9eaff;
  --brand-warm: #f4eedf;
  box-sizing: border-box;
  width: min(100%, 92rem);
  max-width: none;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 6.5vw, 6.4rem);
  background: var(--brand-paper);
  color: var(--brand-ink);
}
.guide-skip {
  position: absolute;
  z-index: 1;
  inset: 0 auto auto 0;
  padding: 0.7rem 1rem;
  background: var(--brand-panel);
}
.guide-skip:not(:focus) {
  clip-path: inset(50%);
}
.site-subpage .guide-masthead {
  min-height: 5.4rem;
  max-width: none;
  border-bottom: 1px solid var(--brand-rule);
}
.site-subpage .guide-wordmark { font-size: clamp(1.85rem, 3vw, 2.35rem); }
.site-subpage .guide-wordmark img {
  flex: none;
  width: 1em;
  height: 1em;
  margin-right: 0.27em;
}
.site-subpage .guide-masthead nav {
  flex-wrap: wrap;
  gap: 0.5rem clamp(0.7rem, 2.5vw, 2rem);
}
.site-subpage [aria-current="page"] {
  color: var(--brand-accent);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
.site-subpage :is(.guide-cta, .guide-install, .copy-action, .instructions a[download]) {
  display: inline-flex;
  box-sizing: border-box;
  min-height: 2.9rem;
  align-items: center;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--brand-accent);
  border-radius: 0;
  background: var(--brand-accent);
  color: var(--brand-on-accent);
  font-size: 1.08rem;
  line-height: 1.15;
  text-decoration: none;
}
.site-subpage :is(.guide-cta, .guide-install, .copy-action, .instructions a[download]):hover {
  background: var(--brand-tint);
  color: var(--brand-accent);
}
.site-subpage.guide-page main article {
  padding-block: clamp(2.7rem, 6.5vw, 5.5rem);
}
.site-subpage main h1 {
  margin-top: 0;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.site-subpage h1 em { color: var(--brand-accent); }
.site-subpage .page-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 2rem;
  margin: clamp(1.6rem, 4vw, 3.5rem) 0 0;
  padding-block: 1.2rem 1.65rem;
  border-top: 1px solid var(--brand-rule);
}
.site-subpage .page-links .footer-name {
  font-size: 1.65rem;
  letter-spacing: -0.05em;
  text-decoration: none;
}
.site-subpage .page-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  font-size: 1.08rem;
}
.site-subpage .page-links nav a:not(:hover, :focus-visible, [aria-current="page"]) {
  text-decoration: none;
}
.privacy-article {
  max-width: 47rem;
}
.privacy-article h1 { font-size: clamp(3.4rem, 7vw, 5.8rem); }
.privacy-article .privacy-intro {
  color: var(--brand-muted);
  max-width: 39rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.privacy-article section {
  border-top: 1px solid var(--brand-rule);
  padding-block: 1.5rem;
}
.privacy-article section h2 { margin-top: 0; }
.privacy-article section p {
  width: auto;
  max-width: 40rem;
  font-size: 1.25rem;
  line-height: 1.5;
}
.privacy-article section p:last-child { margin-bottom: 0; }

@media (prefers-color-scheme: dark) {
  body.site-subpage {
    --brand-paper: #171921;
    --brand-panel: #222532;
    --brand-ink: #f1eee6;
    --brand-muted: #c3c7d6;
    --brand-rule: #535669;
    --brand-accent: #bec5ff;
    --brand-on-accent: #181d31;
    --brand-tint: #2e3451;
    --brand-warm: #292831;
  }
  .copy-action,
  .instructions a[download] {
    background: #ece9dc;
    color: #181916;
  }
  .copy-action:hover,
  .instructions a[download]:hover {
    background: #ef9974;
    color: #181916;
  }
}
@media (max-width: 760px) {
  .site-subpage .guide-masthead {
    flex-wrap: wrap;
    padding-block: 0.8rem;
  }
  .site-subpage .guide-masthead nav {
    font-size: 1.02rem;
  }
  .guide-masthead {
    max-width: 100%;
  }
  .guide-wordmark {
    font-size: 1.65rem;
  }
  .guide-masthead nav {
    gap: 0.7rem;
  }
  /* Preserve the reference's tap targets and let keyboard users toggle notes. */
  input.margin-toggle {
    display: inline-block;
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
  }
  label.margin-toggle:has(+ input:focus-visible) {
    outline: 2px solid currentColor;
  }
}
