/* The Highset free guide pages. Plain Notion-like document: white page, dark
   grey text, simple headings, grey callouts; wine only on buttons and links.
   Mobile first — nearly everyone arrives from an Instagram DM on a phone. */

:root {
  --wine: #5C0E2E;
  --wine-soft: #7a2447;
  --bg: #ffffff;
  --soft: #f1f1ef; /* callouts, prompts, input fields */
  --card: #ffffff;
  --ink: #37352f;
  --muted: #787774;
  --line: #e9e9e7;
  --pink: #f25c9a;
  --orange: #ff7a3d;
  --beige: #efe4d6;
  --err: #b3261e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--wine); }

.wrap { max-width: 480px; margin: 0 auto; padding: 24px 20px 56px; }
/* The guide page reads like a document: full phone width on mobile, a proper
   page width on desktop (roughly the PDF's text width). */
.wrap.wide { max-width: 820px; }
@media (min-width: 768px) {
  .wrap { max-width: 540px; padding: 40px 40px 72px; }
  .wrap.wide { max-width: 820px; }
}

.brand {
  display: flex; width: max-content; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 800; font-size: 14px; letter-spacing: -0.01em; color: var(--wine);
}
.brand .dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.chip {
  display: inline-block; margin-top: 32px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--wine); border: 1px solid var(--wine); border-radius: 999px; padding: 5px 11px;
}
h1 {
  margin-top: 14px;
  font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 em { font-style: italic; }
.lead { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* ---------------------------------------------------------------- form */
form {
  margin-top: 28px; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 22px 18px;
}
label.f { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field + .field { margin-top: 14px; }
input[type=text], input[type=email] {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input[type=text]:focus, input[type=email]:focus {
  border-color: var(--wine); box-shadow: 0 0 0 3px rgba(92,14,46,.12); background: #fff;
}
.consent {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 18px;
  font-size: 12.5px; line-height: 1.45; color: var(--muted); cursor: pointer;
}
.consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--wine); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { margin-top: 12px; font-size: 13px; color: var(--err); }
.btn {
  display: block; width: 100%; margin-top: 18px; text-align: center; text-decoration: none;
  font: inherit; font-size: 15px; font-weight: 600; color: #fff;
  background: var(--wine); border: 0; border-radius: 14px; padding: 14px;
  cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--wine-soft); }
.btn:disabled { opacity: .6; cursor: default; }
.fine { margin-top: 12px; text-align: center; font-size: 12px; color: var(--muted); }
.fine a { color: inherit; }

/* ---------------------------------------------------------------- guide */
.guide { margin-top: 22px; }
/* Plain document hierarchy like a Notion page: section headings (h2), smaller
   sub-headings (h3), plain lists, a grey callout box for `> ` lines. Prints the same. */
.guide h2 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; margin: 44px 0 12px; }
.guide h3 { font-size: 17px; line-height: 1.35; font-weight: 600; margin: 26px 0 8px; }
.guide p { font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
.guide strong { font-weight: 600; }
.guide ul, .guide ol { margin: 0 0 14px 22px; }
.guide li { font-size: 15px; line-height: 1.6; margin-bottom: 6px; padding-left: 2px; }
.guide li p { margin: 0; font-size: inherit; line-height: inherit; }
.guide blockquote {
  background: var(--soft); border-radius: 6px; padding: 14px 16px; margin: 22px 0;
  font-size: 15px; line-height: 1.55;
}
.guide blockquote p { font-size: inherit; line-height: inherit; margin: 0; }
.guide code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  background: var(--soft); border-radius: 4px; padding: 1px 5px;
}
.guide pre {
  background: var(--soft); border: 0; border-radius: 6px;
  padding: 14px 16px; margin: 0 0 16px; white-space: pre-wrap; word-break: break-word;
}
.guide pre code { background: none; padding: 0; font-size: 13px; line-height: 1.55; }
.codebox { position: relative; }
.codebox pre { padding-right: 88px; margin-bottom: 0; } /* room for the corner button */
.codebox .copy {
  position: absolute; top: 9px; right: 9px;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--wine);
  background: #fff; border: 1px solid var(--wine); border-radius: 999px;
  padding: 5px 14px; cursor: pointer; transition: background .15s, color .15s;
}
.codebox .copy:hover, .codebox .copy.done { background: var(--wine); color: #fff; }
.guide table {
  width: 100%; border-collapse: collapse; font-size: 13px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.guide th, .guide td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #fbfafa; }
.guide tr:last-child td { border-bottom: 0; }
.guide hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.guide img { display: block; width: 100%; max-width: 340px; border-radius: 6px; }

/* ONE spacing rule for every block in a guide, so nothing is ever glued to
   the next thing (e.g. a sentence straight under a table). Boxed blocks
   (table, prompt, numbered list, quote) get a little more air than text. */
.guide > p, .guide > ul { margin-top: 0; margin-bottom: 16px; }
.guide > table, .guide > .codebox, .guide > pre, .guide > ol { margin-top: 4px; margin-bottom: 22px; }
.guide > blockquote { margin-top: 24px; margin-bottom: 24px; }
.guide > :last-child { margin-bottom: 0; }

/* The closing box every guide ends with (see lib/render.js). */
.outro {
  margin-top: 40px; padding: 18px 20px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
}
.outro p { font-size: 14.5px; line-height: 1.55; margin: 0; }
.outro .outro-head { font-weight: 700; margin-bottom: 6px; color: var(--wine); }
.outro a { font-weight: 600; }
.outro .outro-head span { margin-right: 6px; }

.pdfbar { position: sticky; bottom: 16px; margin-top: 36px; }
.pdfbar .btn { margin-top: 0; box-shadow: 0 8px 24px rgba(92,14,46,.25); }

/* Desktop: a touch bigger headings, and a compact PDF button instead of a
   full-width bar across the whole page. */
@media (min-width: 768px) {
  h1 { font-size: 34px; }
  .wrap.wide h1 { max-width: 760px; }
  .guide h2 { font-size: 22px; margin-top: 48px; }
  .pdfbar { display: flex; justify-content: center; }
  .pdfbar .btn { width: auto; padding: 13px 36px; }
}

/* ---------------------------------------------------------------- legal + 404 */
.legal h2 { font-size: 18px; font-weight: 800; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.legal ul { margin-left: 20px; }
.legal .updated { margin-top: 8px; font-size: 13px; color: var(--muted); }
.back { display: inline-block; margin-top: 32px; font-size: 14px; }

/* ---------------------------------------------------------------- shared bits */
/* "## Label | Title" → small label above a section title. */
.guide h2 .eyebrow {
  display: block; margin-bottom: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
/* An image with an optional caption under it. */
.guide .shot { display: block; max-width: 340px; }
.guide .shot img { max-width: 100%; }
.guide .shot-cap { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.codebar { display: none; } /* window bar over prompts, only some themes show it */

/* ================================================================
   Theme "carousel" (guide header: theme: carousel). Same look as the
   @thehighset carousels: light canvas, heavy black headings with one serif
   italic word, pink eyebrow labels, white hairline cards, prompts as a Mac
   window. Everything scoped to body.theme-carousel.
   ================================================================ */
.theme-carousel {
  --c-bg: #F5F4F4; --c-ink: #1d1d1f; --c-body: #2a2a2d; --c-mute: #7a7a80;
  --c-hair: #e5e3e4; --c-pink: #D9709E;
  background: var(--c-bg); color: var(--c-body);
}
.theme-carousel .chip {
  border: 0; padding: 0; border-radius: 0; margin-top: 30px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--c-pink);
}
.theme-carousel h1 {
  margin-top: 10px; font-size: 34px; line-height: 1.03; font-weight: 900;
  letter-spacing: -0.045em; color: var(--c-ink);
}
.theme-carousel h1 em, .theme-carousel .guide h2 em {
  font-family: Newsreader, Georgia, serif; font-style: italic; font-weight: 400;
  letter-spacing: -0.01em; color: var(--c-ink);
}
.theme-carousel .lead { font-size: 17px; line-height: 1.45; color: var(--c-mute); }
.theme-carousel form { border-color: var(--c-hair); }
.theme-carousel input[type=text], .theme-carousel input[type=email] { background: var(--c-bg); }

.theme-carousel .guide p, .theme-carousel .guide li { font-size: 16px; line-height: 1.6; color: var(--c-body); }
.theme-carousel .guide strong { font-weight: 700; color: var(--c-ink); }
.theme-carousel .guide h2 {
  font-size: 29px; line-height: 1.08; font-weight: 900; letter-spacing: -0.04em;
  color: var(--c-ink); margin: 52px 0 16px;
}
.theme-carousel .guide h2 .eyebrow { color: var(--c-pink); margin-bottom: 8px; letter-spacing: .16em; }
.theme-carousel .guide h3 {
  font-size: 19px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em;
  color: var(--c-ink); margin: 30px 0 10px;
}

/* Graph screenshot in a white card, caption centred under it. */
.theme-carousel .guide .shot {
  max-width: 380px; background: #fff; border: 1px solid var(--c-hair);
  border-radius: 18px; padding: 10px 10px 12px;
}
.theme-carousel .guide .shot img { border-radius: 10px; width: 100%; max-width: none; }
.theme-carousel .guide .shot-cap { text-align: center; margin-top: 8px; color: var(--c-mute); }

/* Tables: white card, hairlines, small uppercase header, bold first column. */
.theme-carousel .guide table {
  background: #fff; border: 1px solid var(--c-hair); border-radius: 16px;
  border-collapse: separate; border-spacing: 0; font-size: 14.5px;
}
.theme-carousel .guide th {
  background: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--c-mute); border-bottom: 1px solid var(--c-hair); padding: 12px 13px;
}
.theme-carousel .guide td { border-bottom: 1px solid var(--c-hair); color: var(--c-ink); padding: 11px 13px; line-height: 1.45; }
.theme-carousel .guide tr:last-child td { border-bottom: 0; }
.theme-carousel .guide td:first-child { font-weight: 600; }

/* Lists: plain bullets; numbered steps get a big wine number, no bubbles. */
.theme-carousel .guide ul li::marker { color: var(--c-pink); }
.theme-carousel .guide ol { list-style: none; counter-reset: n; margin-left: 0; }
.theme-carousel .guide ol li { counter-increment: n; position: relative; padding-left: 34px; margin-bottom: 12px; }
.theme-carousel .guide ol li::before {
  content: counter(n); position: absolute; left: 0; top: -2px;
  font-size: 20px; font-weight: 900; color: var(--wine);
}

/* `> ` lines: a white card callout. */
.theme-carousel .guide blockquote {
  background: #fff; border: 1px solid var(--c-hair); border-radius: 16px;
  padding: 14px 16px; color: var(--c-ink);
}
.theme-carousel .guide blockquote p { color: var(--c-ink); }

/* Prompts: a white Mac window with a wine Copy button. */
.theme-carousel .guide .codebox { background: #fff; border: 1px solid var(--c-hair); border-radius: 16px; overflow: hidden; }
.theme-carousel .codebar {
  display: flex; align-items: center; gap: 6px; padding: 12px 14px;
  border-bottom: 1px solid var(--c-hair);
}
.theme-carousel .codebar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.theme-carousel .codebar i:nth-child(2) { background: #febc2e; }
.theme-carousel .codebar i:nth-child(3) { background: #28c840; }
.theme-carousel .codebar span { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: var(--c-mute); margin-right: 60px; }
.theme-carousel .guide .codebox pre { background: #fff; border: 0; border-radius: 0; padding: 14px 16px 16px; }
.theme-carousel .guide pre code { color: var(--c-ink); }
.theme-carousel .codebox .copy { top: 7px; right: 10px; background: var(--wine); color: #fff; border-color: var(--wine); padding: 4px 13px; }
.theme-carousel .codebox .copy:hover, .theme-carousel .codebox .copy.done { background: var(--wine-soft); }

.theme-carousel .outro { border-color: var(--c-hair); border-radius: 16px; }

@media (min-width: 768px) {
  .theme-carousel h1 { font-size: 42px; }
  .theme-carousel .guide h2 { font-size: 32px; margin-top: 60px; }
}

/* ---------------------------------------------------------------- ❌/✅ examples */
/* "❌ example\ why" in a guide → the example, with its explanation tucked
   under it (indented to the text, smaller), so it clearly belongs to it. */
.guide .ex { margin: 0 0 18px; }
.guide .ex p { margin: 0; }
.guide .ex-line { display: flex; gap: 10px; font-weight: 600; color: var(--ink); }
.guide .ex-mark { flex: none; }
.guide p.ex-why { margin-top: 4px; padding-left: 30px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ================================================================
   Theme "paper" (guide header: theme: paper). The plain document look, set
   on a white sheet with a thin black outline in the middle of a soft
   background, with strong heading contrast.
   ================================================================ */
.theme-paper {
  --ink: #1d1d1f; --muted: #6e6e73; --line: #e5e3e4;
  --p-bg: #EFEDED; --p-body: #2b2b2e; --p-tint: #FBF1F5;
  background: var(--p-bg); color: var(--p-body);
}
.theme-paper .wrap {
  background: #fff; border: 1px solid #1d1d1f; border-radius: 6px;
  margin: 12px auto 24px; width: calc(100% - 24px); padding: 28px 22px 40px;
}
@media (min-width: 768px) {
  .theme-paper .wrap { margin: 40px auto 56px; padding: 52px 56px 60px; }
  .theme-paper .wrap.wide { max-width: 820px; }
}
.theme-paper h1 { font-size: 34px; line-height: 1.08; font-weight: 900; letter-spacing: -0.035em; color: var(--ink); }
.theme-paper .lead { font-size: 16.5px; }
.theme-paper .guide p, .theme-paper .guide li { font-size: 15.5px; line-height: 1.65; color: var(--p-body); }
.theme-paper .guide strong { font-weight: 700; color: var(--ink); }
.theme-paper .guide h2 {
  font-size: 27px; line-height: 1.15; font-weight: 900; letter-spacing: -0.03em;
  color: var(--ink); margin: 56px 0 16px;
}
.theme-paper .guide h3 {
  font-size: 18px; line-height: 1.3; font-weight: 800; letter-spacing: -0.015em;
  color: var(--ink); margin: 30px 0 8px;
}
.theme-paper .guide .ex-line { color: var(--ink); font-size: 15.5px; }
.theme-paper .guide p.ex-why { font-size: 14px; color: var(--muted); }
.theme-paper .guide blockquote { background: var(--p-tint); color: var(--ink); }
.theme-paper .guide blockquote p { color: var(--ink); }
.theme-paper .guide pre { background: #fff; border: 1px solid var(--line); }
.theme-paper .guide code { background: var(--p-tint); }
.theme-paper .guide pre code { background: none; color: var(--ink); }
.theme-paper form input[type=text], .theme-paper form input[type=email] { background: #fff; }

@media (min-width: 768px) {
  .theme-paper h1 { font-size: 42px; }
  .theme-paper .guide h2 { font-size: 30px; margin-top: 64px; }
}

/* ================================================================
   Theme "clear" (guide header: theme: clear). The plain document look,
   just with darker text and slightly heavier headings.
   ================================================================ */
.theme-clear { --ink: #1d1d1f; --muted: #6e6e73; }
.theme-clear .guide p, .theme-clear .guide li { color: #2b2b2e; }
.theme-clear .guide strong { font-weight: 700; color: var(--ink); }
.theme-clear h1 { font-weight: 800; color: var(--ink); }
.theme-clear .guide h2 { font-weight: 700; color: var(--ink); }
.theme-clear .guide h3 { font-weight: 700; color: var(--ink); }
.theme-clear .guide p.ex-why { color: var(--muted); }

/* ================================================================
   Add-on "soft" (theme: clear soft): a soft brand-neutral page so the
   white boxes (callouts, tables, prompts, closing box) stand out.
   ================================================================ */
.theme-soft { background: #F6F5F5; }
.theme-soft .guide blockquote,
.theme-soft .guide table,
.theme-soft .guide th,
.theme-soft .guide pre,
.theme-soft .outro,
.theme-soft form { background: #fff; }
.theme-soft .guide blockquote,
.theme-soft .guide pre { border: 1px solid var(--line); }
.theme-soft input[type=text], .theme-soft input[type=email] { background: #F6F5F5; }

/* ================================================================
   Add-on "sheet" (the default look: theme "clear sheet"). The page is a
   white sheet with a thin black outline on a light margin, sized exactly
   like the PDF page: A4 wide (210 mm) with the PDF's 18 mm side margins, so
   the web page and the download look the same. Phones and tablets: the
   sheet shrinks to the screen with a small margin around it.
   ================================================================ */
.theme-sheet { background: #EFEDED; }
.theme-sheet .wrap, .theme-sheet .wrap.wide {
  background: #fff; border: 1px solid #1d1d1f; border-radius: 6px;
  width: calc(100% - 24px); max-width: 210mm;
  margin: 12px auto 24px; padding: 28px 20px 36px;
}
.theme-sheet .wrap:not(.wide) { max-width: 540px; } /* the sign-up form page stays compact */
.theme-sheet h1 { font-size: 28px; max-width: none; }
@media (min-width: 600px) {
  .theme-sheet .wrap, .theme-sheet .wrap.wide { width: calc(100% - 48px); margin: 24px auto 40px; padding: 40px 36px 48px; }
}
@media (min-width: 900px) {
  .theme-sheet .wrap.wide { margin: 40px auto 56px; padding: 18mm 18mm 20mm; }
  .theme-sheet h1 { font-size: 32px; } /* same as the PDF */
}
