/* Help pages (FAQ, support, contact, rules). Same look as the privacy policy:
   CT Editorial paper and ink, Geist / Geist Mono, hairlines, small corners. */
/* an element marked hidden stays hidden, whatever display its class gives it */
[hidden] { display: none !important; }

:root {
  --ct-ink: #1e1c1a; --ct-ink-soft: #46423e; --ct-mute: #68635f; --ct-mute-soft: #706b67;
  --ct-line: #e3e0dd; --ct-line-soft: #f2f0ee; --ct-line-strong: #c4bfba;
  --ct-paper: #f9f8f5; --ct-paper-raised: #fcfbf8; --ct-paper-sunken: #f3f0ec;
  --ct-ring: #29a376; --danger: #b4453a;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme="dark"] {
  --ct-ink: #d9d5ce; --ct-ink-soft: #b4ada7; --ct-mute: #a6a19b; --ct-mute-soft: #918a85;
  --ct-line: #3b3835; --ct-line-soft: #2c2926; --ct-line-strong: #56514d;
  --ct-paper: #191715; --ct-paper-raised: #24211e; --ct-paper-sunken: #131210;
  --ct-ring: #3cdda2; --danger: #e0776a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ct-ink: #d9d5ce; --ct-ink-soft: #b4ada7; --ct-mute: #a6a19b; --ct-mute-soft: #918a85;
    --ct-line: #3b3835; --ct-line-soft: #2c2926; --ct-line-strong: #56514d;
    --ct-paper: #191715; --ct-paper-raised: #24211e; --ct-paper-sunken: #131210;
    --ct-ring: #3cdda2; --danger: #e0776a;
  }
}
html { color-scheme: light dark; -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--ct-paper); color: var(--ct-ink);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif; font-size: 15.5px; line-height: 1.65;
}
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ct-mute);
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--ct-line-strong); flex: none; }

/* top bar: back to the projects, and the help pages */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 11px 28px; border-bottom: 1px solid var(--ct-line); background: var(--ct-paper);
}
.topbar a { display: inline-block; padding: 4px 0; color: var(--ct-mute); text-decoration: none; font-family: "Geist Mono", monospace; font-size: 12.5px; letter-spacing: 0; } /* 24px tall to click */
.topbar a:hover, .topbar a[aria-current="page"] { color: var(--ct-ink); }
.topbar nav { display: flex; gap: 16px; flex-wrap: wrap; }
/* leave room on the right for the floating Sign in button */
@media (min-width: 561px) { .topbar { padding-right: 120px; } }
@media (max-width: 560px) { .topbar { padding: 10px 16px; } .topbar nav { gap: 12px; } }

.wrap { max-width: 760px; margin: 0 auto; padding: 44px 24px 110px; }
h1 { margin: 16px 0 10px; font-size: clamp(1.9rem, 2.6vw + 1rem, 2.6rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 600; }
h1 .soft { color: var(--ct-mute-soft); }
.lede { margin: 0 0 6px; color: var(--ct-ink-soft); font-size: 16.5px; }
h2 {
  margin: 48px 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -.02em;
  padding-top: 14px; border-top: 1px solid var(--ct-line); scroll-margin-top: 64px;
}
h3 { margin: 26px 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 13px; color: var(--ct-ink-soft); }
ul, ol { margin: 0 0 15px; padding-left: 22px; color: var(--ct-ink-soft); }
li { margin-bottom: 7px; }
b, strong { color: var(--ct-ink); font-weight: 600; }
a { color: var(--ct-ink); text-decoration: underline; text-decoration-color: var(--ct-line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ct-ink); }
.box { border: 1px solid var(--ct-line); border-radius: 6px; background: var(--ct-paper-raised); padding: 16px 18px; margin: 16px 0; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
footer { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--ct-line); font-family: "Geist Mono", monospace; font-size: 12.5px; letter-spacing: 0; color: var(--ct-mute-soft); }
footer a { display: inline-block; padding: 5px 0; color: var(--ct-mute); text-decoration: none; } /* 24px tall to click */
footer a:hover { color: var(--ct-ink); }

/* questions that open when clicked */
details.qa { border-bottom: 1px solid var(--ct-line); padding: 14px 0; }
details.qa:first-of-type { border-top: 1px solid var(--ct-line); }
details.qa summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
  font-size: 16px; font-weight: 500; color: var(--ct-ink);
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; font-family: "Geist Mono", monospace; color: var(--ct-mute); flex: none; }
details.qa[open] summary::after { content: "–"; }
details.qa .a { margin-top: 10px; }
details.qa .a p:last-child { margin-bottom: 0; }

/* cards that point to the other help pages */
.paths { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 22px 0 0; }
.paths a {
  display: block; padding: 14px 16px; border: 1px solid var(--ct-line); border-radius: 6px;
  background: var(--ct-paper-raised); text-decoration: none; color: var(--ct-ink);
  transition: border-color .2s var(--ease);
}
.paths a:hover { border-color: var(--ct-line-strong); }
.paths b { display: block; font-size: 15px; margin-bottom: 2px; }
.paths span { font-size: 13px; color: var(--ct-mute); }

/* the contact form */
form.contact { display: grid; gap: 14px; margin-top: 18px; }
form.contact label { display: grid; gap: 6px; font-family: "Geist Mono", monospace; font-size: 12.5px; letter-spacing: 0; color: var(--ct-mute); }
form.contact input, form.contact select, form.contact textarea {
  font: 400 15px/1.5 "Geist", ui-sans-serif, system-ui, sans-serif; color: var(--ct-ink);
  background: var(--ct-paper-raised); border: 1px solid var(--ct-line); border-radius: 4px; padding: 9px 11px;
  text-transform: none; letter-spacing: 0;
}
form.contact textarea { min-height: 150px; resize: vertical; }
form.contact input:focus, form.contact select:focus, form.contact textarea:focus { outline: 2px solid var(--ct-ring); outline-offset: 1px; border-color: transparent; }
.btn {
  justify-self: start; font: 500 14px/1 "Geist", ui-sans-serif, system-ui, sans-serif;
  padding: 11px 16px; border-radius: 4px; border: 1px solid var(--ct-ink); background: var(--ct-ink); color: var(--ct-paper); cursor: pointer;
}
.btn[disabled] { opacity: .5; cursor: default; }
.note { font-size: 13.5px; color: var(--ct-mute); }
.status { min-height: 1.4em; font-size: 14px; color: var(--ct-ink-soft); }
.status.bad { color: var(--danger); }
.status.good { color: var(--ct-ring); }

/* Touch screens (phones, tablets): every link and button is a 44px target, and the
   contact form's boxes are 16px so iOS doesn't zoom in when one is tapped.
   Nothing in this block applies with a mouse. */
@media (hover: none) and (pointer: coarse) {
  .topbar { padding-top: 0; padding-bottom: 0; row-gap: 0; }
  .topbar a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: 12px; }
  .topbar nav { column-gap: 14px; row-gap: 0; }
  footer { font-size: 12px; }
  footer a { display: inline-flex; align-items: center; min-height: 44px; }
  details.qa { padding: 4px 0; }
  details.qa summary { align-items: center; min-height: 44px; padding: 6px 0; }
  form.contact input, form.contact select, form.contact textarea { font-size: 16px; min-height: 44px; }
  .btn { min-height: 44px; }
  /* a long web address wraps instead of pushing the page wider than the screen */
  .wrap a { overflow-wrap: break-word; }
}
a { overflow-wrap: anywhere; }
