/* The help center and FAQ at hotsauce.work/help and /faq. Same tokens as the landing page. */
:root {
  --paper: #fff4e2;
  --paper-2: #f8e7c9;
  --card: #fffbf4;
  --ink: #16262d;
  --muted: #46565b;
  --line: #16262d;
  --hair: #16262d29;
  --rust: #a94e26;
  --rust-ink: #fff;
  --rust-soft: #f8e2de;
  --spruce: #1f4d3a;
  --spruce-ink: #fff;
  --t2: #dde5e2;
  --t3: #f2dfc5;
  --hard: #16262d;
  --code: #16262d;
  --code-ink: #f3efe8;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101c1b;
    --paper-2: #172726;
    --card: #1a2c2a;
    --ink: #f3efe8;
    --muted: #b6c2bf;
    --line: #f3efe8;
    --hair: #f3efe82e;
    --rust: #ef8052;
    --rust-ink: #16130f;
    --rust-soft: #3b231c;
    --spruce: #7cc0a8;
    --spruce-ink: #0f1b1a;
    --t2: #1d3532;
    --t3: #3a2d1a;
    --hard: #000;
    --code: #081110;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #101c1b;
  --paper-2: #172726;
  --card: #1a2c2a;
  --ink: #f3efe8;
  --muted: #b6c2bf;
  --line: #f3efe8;
  --hair: #f3efe82e;
  --rust: #ef8052;
  --rust-ink: #16130f;
  --rust-soft: #3b231c;
  --spruce: #7cc0a8;
  --spruce-ink: #0f1b1a;
  --t2: #1d3532;
  --t3: #3a2d1a;
  --hard: #000;
  --code: #081110;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px / 1.65 var(--sans);
  overflow-x: clip;
}
a {
  color: var(--rust);
}
:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
  border-radius: 8px;
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  background: var(--card);
  padding: 8px 12px;
  z-index: 60;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* header */
header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 24px var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}
nav.links {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav.links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
}
nav.links a:hover {
  color: var(--rust);
}
nav.links a.gh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 2px solid var(--line);
  background: var(--card);
  padding: 6px 12px;
  border-radius: 99px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--hard);
}
.gh svg {
  width: 17px;
  height: 17px;
}
.mode {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  box-shadow: 3px 3px 0 var(--hard);
}
.mode svg {
  width: 18px;
  height: 18px;
}
.mode .sun {
  display: none;
}
:root[data-theme="dark"] .mode .sun {
  display: block;
}
:root[data-theme="dark"] .mode .moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mode .sun {
    display: block;
  }
  :root:not([data-theme="light"]) .mode .moon {
    display: none;
  }
}
@media (max-width: 640px) {
  nav.links {
    gap: 14px;
  }
  nav.links .m,
  nav.links a.gh {
    display: none;
  }
}

/* shared type */
h1 {
  font: 800 clamp(36px, 5.4vw, 56px) / 1.02 var(--display);
  letter-spacing: -0.035em;
  margin: 6px 0 14px;
}
h2 {
  font: 800 26px / 1.15 var(--display);
  letter-spacing: -0.02em;
  margin: 44px 0 10px;
}
h3 {
  font: 700 19px / 1.3 var(--sans);
  margin: 26px 0 6px;
}
.lede {
  font-size: clamp(18px, 2.1vw, 20px);
  color: var(--muted);
  margin: 0 0 8px;
  max-width: 38em;
}
.kicker {
  font: 500 13.5px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rust);
  margin: 0;
}
code,
kbd {
  font: 500 0.86em var(--mono);
}
code {
  white-space: nowrap;
  background: var(--paper-2);
  border: 1.5px solid var(--hair);
  border-radius: 6px;
  padding: 1px 6px;
}
kbd {
  display: inline-block;
  min-width: 1.7em;
  text-align: center;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 6px;
  padding: 0 5px;
  line-height: 1.5;
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 99px;
  font: 700 15.5px var(--sans);
  text-decoration: none;
  border: 2px solid var(--line);
  color: var(--rust-ink);
  background: var(--rust);
  box-shadow: 3px 3px 0 var(--hard);
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--hard);
}

/* article pages */
.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  padding: 12px 0 72px;
}
.side {
  position: sticky;
  top: 16px;
  align-self: start;
  max-height: calc(100vh - 32px);
  overflow: auto;
  font-size: 15px;
  padding: 4px 4px 16px 0;
}
.side .home {
  display: inline-block;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 6px;
}
.side .grp {
  font: 500 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 18px 0 6px;
}
.side ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side li a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 10px;
  border: 2px solid transparent;
}
.side li a:hover {
  background: var(--paper-2);
}
.side li a[aria-current="page"] {
  background: var(--card);
  border-color: var(--line);
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--hard);
}
.badge {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 6px;
  font: 500 11px / 1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 6px;
  border-radius: 99px;
  background: var(--t3);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.article {
  max-width: 760px;
}
.article p,
.article li {
  max-width: 40em;
}
.crumbs {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}
main .crumbs a {
  color: var(--muted);
}
.article ul,
.article ol {
  padding-left: 22px;
}
.article li {
  margin: 6px 0;
}
.article ol.steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 44px;
  margin: 12px 0;
  min-height: 30px;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 15px var(--display);
  background: var(--spruce);
  color: var(--spruce-ink);
  border: 2px solid var(--line);
}
.needs,
.tip,
.soon {
  margin: 28px 0 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 2px solid var(--line);
  font-size: 15.5px;
}
.needs {
  background: var(--paper-2);
  border-style: dashed;
}
.tip {
  background: var(--t2);
}
.soon {
  background: var(--rust-soft);
  margin: 16px 0 8px;
}
.needs b,
.tip b {
  display: block;
  font: 500 12.5px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tip a {
  color: var(--ink);
}
.needs p,
.tip p {
  margin: 4px 0 0;
}
.try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 22px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}
.ex {
  font: 500 15px / 1.5 var(--mono);
  background: var(--code);
  color: var(--code-ink);
  border-radius: 12px;
  padding: 14px 16px;
  white-space: pre-wrap;
  word-break: break-word;
  border: 2px solid var(--line);
}
.tbl {
  overflow-x: auto;
  margin: 14px 0;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th {
  text-align: left;
  font: 500 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 2px solid var(--line);
}
td {
  padding: 10px 14px;
  border-bottom: 1.5px solid var(--hair);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
.defs {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.defs dl {
  margin: 0;
  padding: 12px 16px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
}
.defs dt {
  font-weight: 700;
}
.defs dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 2px solid var(--line);
}
main .pager a {
  display: flex;
  flex-direction: column;
  max-width: 48%;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 3px 3px 0 var(--hard);
}
main .pager a.next {
  margin-left: auto;
  text-align: right;
}
main .pager small {
  font: 500 12px var(--mono);
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 860px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .side {
    position: static;
    max-height: none;
    order: 2;
    border-top: 2px solid var(--line);
    padding-top: 16px;
    margin-top: 40px;
  }
}

/* help home and FAQ */
.hub {
  padding: 24px 0 80px;
}
.hub-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px;
}
.hub-hero .lede {
  margin: 0 auto;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px auto 0;
  max-width: 560px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 99px;
  padding: 4px 8px 4px 18px;
  box-shadow: 5px 5px 0 var(--hard);
}
.search svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--muted);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 17px var(--sans);
  padding: 10px 0;
  outline: none;
}
.search:focus-within {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}
.cards li[hidden],
.group[hidden],
.none[hidden] {
  display: none;
}
.none {
  margin-top: 18px;
  color: var(--muted);
}
.group h2 {
  margin: 40px 0 14px;
}
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
main .cards a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px 18px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--hard);
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
main .cards a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--hard);
}
main .cards b {
  font-size: 17.5px;
}
main .cards span:not(.badge) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.faqpage .group {
  max-width: 780px;
  margin: 0 auto;
}
.faq {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--hard);
  overflow: hidden;
}
.faq details {
  border-bottom: 2px solid var(--line);
}
.faq details:last-of-type {
  border-bottom: 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 56px 16px 20px;
  font: 700 17.5px var(--sans);
  position: relative;
}
.faq summary:hover {
  background: var(--paper-2);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font: 700 18px / 1 var(--sans);
  transition:
    transform 0.2s,
    background 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--rust);
  color: var(--rust-ink);
}
.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

footer.foot {
  border-top: 2px solid var(--line);
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}
footer.foot a {
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .cards a {
    transition: none;
  }
}
.article figure {
  margin: 20px 0;
}
.article figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1.5px solid var(--hair);
  border-radius: 12px;
}
