/* liz.studio courses: shared styles for every page.
   Look matches lizstudio.io: cream paper with grain, Fraunces display, lime and tomato accents.
   Reading text stays in Spectral, as in the Leverage Master app. */

:root {
  --cream: #f4efe6;
  --cream-deep: #ece5d6;
  --paper: #fbf8f1;
  --ink: #161513;
  --ink-soft: #2a2723;
  --lime: #c8ff3a;
  --lime-deep: #a8e017;
  --tomato: #ff5b3a;

  --bg: var(--paper);
  --canvas: var(--cream);
  --surface: var(--cream-deep);
  --text: var(--ink-soft);
  --strong: var(--ink);
  --line: #ddd4c3;
  --ok: #15803d;

  --display: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --note: "Instrument Serif", Georgia, serif;
  --hand: "Kalam", "Segoe Print", cursive;
  --wrap: 1120px;
  --read: 680px;
}

/* Black Label: dark ink panels sitting on the cream page. */
.black-label {
  --bg: #1f1d1a;
  --canvas: var(--ink);
  --surface: #2a2723;
  --text: var(--cream-deep);
  --strong: var(--cream);
  --line: #38342e;
  --ok: #4ade80;
  background: var(--canvas);
  color: var(--text);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--cream);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* Paper grain, same as lizstudio.io */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
::selection { background: var(--lime); color: var(--ink); }
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 {
  color: var(--strong); margin: 0;
  font-family: var(--display); font-weight: 500; letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.read { max-width: var(--read); }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--strong); white-space: nowrap; }
.brand .sub { font: 500 11px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; }
.brand .sep { opacity: 0.4; font: 400 14px/1 var(--mono); }

/* liz.studio wordmark, as on lizstudio.io: Fraunces "liz", lime dot, italic "studio" */
.wm { display: inline-flex; align-items: baseline; color: var(--strong); }
.wm .liz {
  font: 500 27px/1 var(--display);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  letter-spacing: -0.035em;
}
.wm .dot { font: 500 27px/1 var(--display); color: var(--lime-deep); }
.wm .studio { font: italic 400 17px/1 var(--note); letter-spacing: 0.02em; margin-left: 0.25em; }
.black-label .wm .dot { color: var(--lime); }

.top-nav { display: flex; align-items: center; gap: 18px; }
.top-link { font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--strong); }
.top-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 420px) { .brand .sep, .brand .sub { display: none; } }

/* Buttons: chunky, sticker-like, hard shadow */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 999px; cursor: pointer;
  background: var(--lime); color: var(--ink);
  border: 1.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  font: 700 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translateY(1px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn.ghost { background: var(--paper); }
.btn.dark { background: var(--ink); color: var(--cream); }
.btn.small { height: 40px; padding: 0 16px; font-size: 14px; box-shadow: 0 3px 0 var(--ink); }
.black-label .btn { border-color: var(--lime); box-shadow: 0 4px 0 var(--lime-deep); }
.black-label .btn:hover { box-shadow: 0 3px 0 var(--lime-deep); }
.black-label .btn.ghost { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: 0 4px 0 #6b655b; }

/* Type */
.eyebrow, .prose .eyebrow {
  font: 500 12px/1.4 var(--mono); letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 16px; color: var(--strong);
}
.lede { font: 21px/1.55 var(--serif); margin: 18px 0 0; }
.prose p { font: 20px/1.7 var(--serif); margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }
.small { font-size: 14px; }

/* Lime marker under a word, like "taste" on lizstudio.io */
.mark { position: relative; display: inline-block; z-index: 0; }
.mark::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: 8%; height: 36%;
  background: var(--lime); z-index: -1; border-radius: 3px; transform: rotate(-1deg);
}
.black-label .mark { color: var(--ink); }
.black-label .mark::after { bottom: 4%; height: 80%; }

/* Handwritten margin note */
.note { font: italic 400 22px/1.1 var(--note); color: var(--strong); display: inline-block; }


section { padding: 64px 0; }
section h2 { font-size: 36px; line-height: 1.1; }
section h2 + p { margin-top: 14px; }
@media (min-width: 700px) {
  section { padding: 96px 0; }
  section h2 { font-size: 52px; }
}

/* Dark panel: a rounded Black Label block inside the page */
.panel { border-radius: 24px; padding: 32px 20px; position: relative; }
@media (min-width: 700px) { .panel { padding: 56px 48px; border-radius: 32px; } }

/* Sketches: pen strokes in the text color, wobble from the shared #pen filter */
.sketch { display: block; width: 100%; height: auto; }
.sketch .ink { fill: none; stroke: var(--strong); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sketch .thin { stroke-width: 1.8; }
.sketch text { fill: var(--strong); font: 20px var(--hand); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Forms */
.signup { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.signup input {
  flex: 1 1 220px; min-width: 0; height: 50px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--strong); background: var(--bg); color: var(--strong); font: 16px var(--sans);
}
.signup input:focus { outline: 3px solid var(--lime); outline-offset: 1px; }
.signup .btn { flex: 0 0 auto; }
.signup-done { display: none; margin: 14px 0 0; font: 18px/1.6 var(--serif); }
.signup.is-done { display: none; }
.signup.is-done + .signup-done { display: block; }

/* Footer, like the lizstudio.io bottom bar */
.foot { border-top: 1px solid var(--line); padding: 28px 0 44px; font: 500 11px/1.6 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
