/* getAiWork members area — design system (mirrors the landing page).
   Ink #0B0B0F · Paper #F7F7F2 · Yellow #FFD400 (accent ~10%) · Grays.
   Yellow never body text, never on white. Black-on-yellow for CTAs. */

:root {
  --ink: #0B0B0F;
  --paper: #F7F7F2;
  --yellow: #FFD400;
  --gray: #9CA3AF;
  --gray-dark: #55555F;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--ink); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-head { background: var(--ink); color: var(--paper); padding: 14px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logo { font-weight: 800; letter-spacing: -0.02em; color: var(--paper); text-decoration: none; font-size: 1.1rem; }
.logo b { color: var(--yellow); }
.site-nav a { color: var(--paper); text-decoration: none; margin-left: 16px; font-size: 0.95rem; opacity: 0.85; }
.site-nav a:hover { opacity: 1; }

/* Day-N streak bar — visible on every member page (§7: the day-count IS the motivation architecture) */
.streak { background: var(--yellow); color: var(--ink); padding: 8px 0; font-weight: 700; font-size: 0.95rem; }
.streak .wrap { display: flex; justify-content: space-between; align-items: center; }
.streak-track { flex: 1; height: 8px; background: rgba(11,11,15,0.15); border-radius: 4px; margin: 0 14px; overflow: hidden; }
.streak-fill { height: 100%; background: var(--ink); border-radius: 4px; }

/* Headings + the marker highlight */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 1.4em 0 0.5em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.15rem; }
.hl { background: linear-gradient(transparent 55%, var(--yellow) 55%, var(--yellow) 92%, transparent 92%); padding: 0 2px; }
.hl-inv { background: linear-gradient(transparent 55%, var(--ink) 55%, var(--ink) 92%, transparent 92%); color: var(--paper); padding: 0 2px; }

main { padding: 28px 0 64px; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
blockquote { border-left: 4px solid var(--yellow); padding: 4px 0 4px 16px; margin: 0 0 1em; color: var(--gray-dark); }
hr { border: 0; border-top: 1px solid #e2e2da; margin: 2em 0; }
small, .muted { color: var(--gray-dark); font-size: 0.9rem; }

/* Buttons: black-on-yellow primary, ink secondary */
.btn { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 800; border: 0;
  padding: 12px 22px; border-radius: 8px; text-decoration: none; cursor: pointer; font-size: 1rem; }
.btn:hover { filter: brightness(0.96); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 7px 14px; font-size: 0.9rem; }

/* Forms */
label { display: block; font-weight: 700; margin: 14px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=url], textarea, select {
  width: 100%; padding: 11px 12px; border: 2px solid var(--ink); border-radius: 8px;
  font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 160px; }
.field-hint { color: var(--gray-dark); font-size: 0.85rem; margin-top: 3px; }
form .btn { margin-top: 18px; }

/* Cards, tables, badges */
.card { background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 20px; margin: 0 0 16px; }
.card h3 { margin-top: 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 0.95rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #e2e2da; vertical-align: top; }
th { border-bottom: 2px solid var(--ink); }
.badge { display: inline-block; background: var(--ink); color: var(--paper); border-radius: 6px;
  padding: 2px 9px; font-size: 0.78rem; font-weight: 700; }
.badge-yellow { background: var(--yellow); color: var(--ink); }
.badge-gray { background: var(--gray); color: var(--ink); }
.notice { border: 2px solid var(--ink); background: #fff; border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }
.notice-yellow { background: var(--yellow); }

/* Lesson video */
.lesson-video { border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--ink); margin: 0 0 8px; }
.lesson-video video { display: block; width: 100%; max-height: 70vh; }

/* Lesson content */
.lesson-body h2 { font-size: 1.25rem; }
.lesson-body blockquote { background: #fff; border-radius: 0 8px 8px 0; }

/* Footer */
.site-foot { background: var(--ink); color: var(--gray); padding: 26px 0; font-size: 0.85rem; }
.site-foot a { color: var(--gray); }

/* Mobile-first: single column by default; slight widening on desktop */
@media (min-width: 900px) { .wrap { max-width: 780px; } }
