/* Joey's Business World. Light = the courses' warm paper look; dark = their chalkboard look. */
:root {
  --bg: #f6f1e7;
  --surface: #fffaf1;
  --band: #efe6d6;
  --ink: #1f1b16;
  --muted: #655c50;
  --line: #ddd2bf;
  --accent: #c2410c;
  --accent-ink: #fffaf1;
  --accent-soft: #f6dccb;
  --shadow: 0 1px 2px rgb(31 27 22 / 6%), 0 8px 24px rgb(31 27 22 / 7%);
  --head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: Inter, "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b221e;
    --surface: #232b26;
    --band: #20282360;
    --ink: #ece7da;
    --muted: #a9a898;
    --line: #36413a;
    --accent: #f2a65e;
    --accent-ink: #1b221e;
    --accent-soft: #3a3226;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 720px; }
.section { padding-block: clamp(48px, 7vw, 88px); display: flex; flex-direction: column; gap: 18px; }
.kicker { font: 600 0.78rem/1.2 var(--body); letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.kicker a { text-decoration: none; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.meta { color: var(--muted); font-size: 0.92rem; }
.small { color: var(--muted); font-size: 0.85rem; }
.center { text-align: center; margin-top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.text-link { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { font: 800 1.05rem/1 var(--head); text-decoration: none; letter-spacing: -0.01em; }
nav { display: flex; gap: 26px; }
nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--muted); }
nav a:hover { color: var(--ink); }
.nav-toggle { display: none; font: 600 0.9rem var(--body); background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 0.98rem/1 var(--body); padding: 14px 20px; border-radius: 10px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer; transition: transform 0.12s ease, filter 0.12s ease; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.hero .wrap { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { max-width: 14ch; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 14px; color: var(--muted); font-size: 0.95rem; }
.stats strong { font: 800 1.5rem/1 var(--head); color: var(--ink); margin-right: 6px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 10px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 750 / 422; object-fit: cover; width: 100%; height: auto; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.card h3 { font-size: 1.18rem; line-height: 1.25; }
.card-sub { color: var(--muted); font-size: 0.93rem; }
.card .meta { margin-top: auto; padding-top: 8px; }

/* bands and columns */
.band { background: var(--band); border-block: 1px solid var(--line); }
.two { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.two > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 8px; }
.three > div { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--accent); padding-top: 16px; }
.three p { color: var(--muted); }
.h-small { font-size: 1rem; margin-top: 10px; }
.free-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.free-list li + li { border-top: 1px solid var(--line); }
.free-list a { display: flex; flex-direction: column; gap: 2px; padding: 13px 18px; text-decoration: none; }
.free-list a:hover { background: var(--accent-soft); }
.free-title { font-weight: 600; }
@media (min-width: 861px) { #free .two > div { position: sticky; top: 92px; } }
.about-strip > div { max-width: 62ch; display: flex; flex-direction: column; gap: 14px; }

/* sign-up */
.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px; }
.signup input { flex: 1 1 220px; min-width: 0; font: 400 1rem var(--body); padding: 13px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.form-note { flex-basis: 100%; font-size: 0.9rem; color: var(--muted); min-height: 1.2em; }

/* course page */
.course-head { padding-block: clamp(36px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.course-head h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.course-head .two { align-items: center; }
.cover, .video video, .video iframe { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--line); background: #000; object-fit: cover; box-shadow: var(--shadow); }
.video iframe { border: 0; }
.course-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); padding-block: clamp(36px, 6vw, 64px); align-items: start; }
.prose { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.prose > p, .prose > ul { max-width: 68ch; }
.prose h2 { margin-top: 26px; }
.prose ul:not(.checks):not(.lectures):not(.plain) { list-style: disc; padding-left: 1.2em; }
.hook { margin: 0; font: 700 clamp(1.3rem, 2.6vw, 1.75rem)/1.3 var(--head); letter-spacing: -0.01em; border-left: 4px solid var(--accent); padding: 4px 0 4px 20px; max-width: 26ch; text-wrap: balance; }
.notice { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 14px 16px; font-size: 0.92rem; color: var(--muted); }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 28px; }
.checks li, .plain li { position: relative; padding-left: 26px; }
.checks li::before, .plain li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plain { display: flex; flex-direction: column; gap: 8px; }
.curriculum { display: flex; flex-direction: column; gap: 10px; }
.curriculum h3 { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-family: var(--body); font-weight: 600; margin-top: 16px; }
.lectures { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.lectures > li + li { border-top: 1px solid var(--line); }
.lectures summary, .lectures .row { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 10px; padding: 12px 16px; cursor: pointer; align-items: baseline; list-style: none; }
.lectures summary::-webkit-details-marker { display: none; }
.lectures summary:hover { background: var(--accent-soft); }
.lectures .row { cursor: default; }
.num { color: var(--accent); font: 700 0.9rem var(--head); font-variant-numeric: tabular-nums; }
.lt { font-weight: 500; }
.min { color: var(--muted); font-size: 0.88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lectures details ul { padding: 0 16px 14px calc(2.2em + 26px); color: var(--muted); font-size: 0.93rem; display: flex; flex-direction: column; gap: 4px; list-style: disc; }
.side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; }
.buy-box, .free-box { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 22px; }
.buy-box { box-shadow: var(--shadow); }
.disclosure { padding-bottom: 40px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 40px 56px; color: var(--muted); font-size: 0.93rem; }
.foot-row { display: flex; flex-direction: column; gap: 12px; }
.foot-row .brand { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { text-underline-offset: 3px; }

@media (max-width: 860px) {
  .two, .course-body { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .course-head .two > div:last-child { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 6px 20px 14px; }
  nav.open { display: flex; }
  nav a { padding: 12px 0; font-size: 1rem; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}

/* catalogue of all Udemy courses (2026-11-14): search box, group links, clamped card text, related courses */
[hidden] { display: none !important; }
section[id], div[id] { scroll-margin-top: 76px; }
.filter { display: flex; flex-direction: column; gap: 12px; padding-block: 28px 0; }
.filter input { width: 100%; max-width: 560px; font: 400 1rem var(--body); padding: 13px 16px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { text-decoration: none; font-weight: 500; font-size: 0.9rem; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.chips span { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.filter .form-note { min-height: 0; }
.filter + .section { padding-top: clamp(32px, 5vw, 56px); }
.card h3 { font-size: 1.08rem; }
.card-sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.card img { background: var(--band); }
.related { border-top: 1px solid var(--line); }
.course-head .lede { font-size: clamp(1rem, 1.4vw, 1.12rem); }
.course-head h1 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
@media (max-width: 1000px) { nav { gap: 18px; } }

/* Email sign-up: the small print under the form, and the note shown after Kit redirects back (?subscribed=1) */
.signup-privacy { margin: 6px 0 0; opacity: .6; }
.signup-confirm { padding-top: 18px; }
.signup-confirm p { border: 1px solid rgba(20, 60, 40, .16); background: #eef5ef; color: #1f3d2b; border-radius: 8px; padding: 12px 16px; font-size: 15px; margin: 0; }
