/* Peak Human Edits: the brand's colours, type, logo and pen marks, shared by the start page, the account pages and
   the review screen. From the brand kit (Grok, Dec 2026): lots of paper, ink for text and rules, red pen only for
   marks (pins, numbers, one underline, the price), never a fill for big areas. Fonts are the Google Fonts latin
   files, served from /__app/fonts/ (SIL Open Font License, see fonts/OFL-*.txt). Page stylesheets come after this
   one and use its variables; they don't redefine the colours. */

@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap; src: url(/__app/fonts/caslon-400.woff2) format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap; src: url(/__app/fonts/caslon-400i.woff2) format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap; src: url(/__app/fonts/caslon-700.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/__app/fonts/plexmono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/__app/fonts/plexmono-500.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url(/__app/fonts/plexmono-600.woff2) format("woff2"); }

:root {
  --paper: #F3EEE3;   /* background */
  --sheet: #FBF9F4;   /* a page, a snapshot, an input */
  --ink: #1C1B18;     /* text, rules, the dark button */
  --pen: #C42A1E;     /* marks only: 4.9:1 on paper */
  --pen-dark: #EC5B4B; /* the pen on ink: 5.1:1 */
  --pencil: #6F6A60;  /* secondary text: 4.7:1 on paper */
  --rule: #DCD5C7;    /* hairlines */
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* the logo's hand-drawn ring, in pen red and in the lighter red for ink backgrounds */
  --logo-ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M28 6 C18 1 5 8 5 20 C4 31 13 37 22 36 C31 35 37 27 36 18 C35 11 30 5 21 5' fill='none' stroke='%23C42A1E' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  --logo-ring-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M28 6 C18 1 5 8 5 20 C4 31 13 37 22 36 C31 35 37 27 36 18 C35 11 30 5 21 5' fill='none' stroke='%23EC5B4B' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* the logo, option C of the kit: a hand-circled note number, then the name. Markup:
   <span class="logo"><span class="logo-mark" aria-hidden="true">1</span><span class="logo-word">Peak Human Edits</span></span>
   Its size follows the font-size it is given. */
.logo { display: inline-flex; align-items: center; gap: 0.38em; font: 700 1em/1 var(--serif); color: var(--ink); white-space: nowrap; letter-spacing: -0.005em; text-decoration: none; }
.logo-mark {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em;
  font: italic 400 0.95em/1 var(--serif); color: var(--pen);
  background: var(--logo-ring) center / 100% 100% no-repeat;
}
.logo-word { display: inline-block; }
/* on ink (dark screens, dark bands) */
.on-ink .logo, .logo.on-ink { color: var(--paper); }
.on-ink .logo-mark, .logo.on-ink .logo-mark {
  color: var(--pen-dark);
  background-image: var(--logo-ring-dark);
}

/* pen marks drawn in SVG: <path class="pen draw" pathLength="1" d="…"/>. They draw themselves in once; with
   reduced motion they are simply there. */
.pen { fill: none; stroke: var(--pen); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.pen.thin { stroke-width: 2.6; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pen-draw 0.9s cubic-bezier(0.55, 0.1, 0.3, 1) 0.2s forwards; }
.draw.late { animation-delay: 0.8s; }
@keyframes pen-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .draw { animation: none; stroke-dashoffset: 0; } }

/* a note number, as on the snapshots: a red disc with the number in mono */
.note-num { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box; border-radius: 11px; background: var(--pen); color: var(--sheet); font: 600 12px/1 var(--mono); }
