/* Sketchy Horizon's studio pages (support, privacy, legal), per BRAND.md: white, Newsreader
   for headings and reading, Space Mono for labels. Shantell Sans is the wordmark's alone (site-header.css). */
:root {
  --sh-coral: #FF5D52;
  --sh-coral-hover: #FF776E;
  --sh-paper: #F7F8F5;
  --sh-terminal: #0E0F14;
  --sh-graphite: #53565F;
  --sh-fog: #B4B6BC;

  --bg: #FFFFFF;
  --surface: var(--sh-paper);
  --text: var(--sh-terminal);
  --text-muted: var(--sh-graphite);
  --border: #DADCD6;
  --link: var(--sh-terminal);
  --link-line: var(--sh-coral);
  --focus: var(--sh-terminal);

  --font-serif: "Newsreader", "Iowan Old Style", "Charter", Georgia, serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--sh-terminal);
    --surface: #181A21;
    --text: var(--sh-paper);
    --text-muted: var(--sh-fog);
    --border: #2A2D36;
    --link: var(--sh-coral);
    --link-line: transparent;
    --focus: var(--sh-coral);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: var(--sh-terminal);
  --surface: #181A21;
  --text: var(--sh-paper);
  --text-muted: var(--sh-fog);
  --border: #2A2D36;
  --link: var(--sh-coral);
  --link-line: transparent;
  --focus: var(--sh-coral);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--sh-coral); color: var(--sh-terminal); }

a {
  color: var(--link);
  text-decoration: underline 2px var(--link-line);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--link); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-inline: 16px;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.page-head { padding-block: clamp(32px, 7vw, 64px) 8px; }
.page-head h1 {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.page-head .meta { margin-top: 14px; }
/* The one sketch accent on the page: a hand-drawn horizon under the title. */
.horizon-stroke {
  display: block;
  width: min(220px, 60%);
  height: 12px;
  margin-top: 18px;
  overflow: visible;
}
.horizon-stroke path { fill: var(--sh-coral); }

.card {
  margin-block: 32px 0;
  padding: clamp(20px, 5vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.intro {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.5;
  text-wrap: balance;   /* even lines, so a long word like an email address leaves no short one where it drops */
}
.page-head + .intro { margin-top: 32px; }

/* An app's section on a studio page: its name. */
.app-head {
  margin: 48px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.app-head + .card { margin-top: 16px; }

/* An app's help, pointed to under its name: one quiet line on the surface tint, the whole
   line a link. */
.help-banner {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.45;
  text-decoration: none;
}
.help-banner__text { flex: 1; min-width: 0; }
.help-banner__text strong {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline 2px var(--link-line);
  text-underline-offset: 3px;
}
.help-banner__go { flex: none; transition: transform 0.15s ease; }
.help-banner:hover .help-banner__go { transform: translateX(3px); color: var(--text); }
.help-banner + .card { margin-top: 28px; }
@media (prefers-reduced-motion: reduce) { .help-banner__go { transition: none; } }
.section + .section, .intro + .section { margin-top: 32px; }
.section h2, .section h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  text-wrap: balance;
}
.section p, .section ul { margin: 0; }
.section p + p, .section p + ul, .section ul + p { margin-top: 12px; }
.section ul { padding-left: 1.25em; }
.section li + li { margin-top: 6px; }
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* The footer is shared with Float's pages: /assets/site-footer.css. */

/* Support: the site header's width, no card around the content.
   Text keeps a readable measure; Support's questions sit two to a row when
   there's room. */
.page--wide .wrap { max-width: calc(1120px + 48px); padding-inline: 24px; }
.page--wide .card {
  margin-top: 32px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.page--wide .intro,
.page--wide .section { max-width: 42em; }
.page--wide .section p { text-wrap: pretty; }
.page--wide .section p.email {
  margin-block: 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.3;
}
@media (min-width: 900px) {
  .page--wide .card--qa {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 64px;
  }
  .page--wide .card--qa .section + .section { margin-top: 0; }
}
@media (max-width: 640px) {
  .page--wide .wrap { padding-inline: 16px; }
}
