/* ========================================
   Task Multiplier — taskmultiplier.site
   Digital task-throughput research
   ======================================== */

:root {
  --canvas: #FAFAF8;
  --type: #1F1B24;
  --plum: #6B3FA0;
  --fade: #8E8894;
  --tile: #FFFFFF;
  --edge: #E3E0E7;
  --tint: rgba(107, 63, 160, 0.07);
  --plum-dim: #6B3FA022;
  --r: 5px;
  --xs: 0.5rem;
  --s: 1rem;
  --m: 2rem;
  --l: 3.5rem;
  --xl: 6rem;
  --col: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #13111A;
    --type: #E4E0EA;
    --plum: #9B73D1;
    --fade: #8A8591;
    --tile: #1C1924;
    --edge: #2F2B38;
    --tint: rgba(155, 115, 209, 0.08);
    --plum-dim: #9B73D122;
  }
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--type);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

/* --- Skip link --- */

.skip { position: absolute; left: -9999px; top: 0; padding: 0.75rem 1.25rem; background: var(--plum); color: #fff; font-weight: 600; z-index: 1000; text-decoration: none; border-radius: 0 0 var(--r) 0; }
.skip:focus { left: 0; outline: 3px solid var(--plum); outline-offset: 2px; }

:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }

/* --- Typography --- */

h1, h2, h3, h4 {
  font-family: 'Young Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--type);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: var(--s); }
h3 { font-size: 1.1rem; margin-bottom: var(--xs); }

p { margin-bottom: var(--s); }
p:last-child { margin-bottom: 0; }

a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color 0.15s; }
a:hover { color: var(--type); }

strong { font-weight: 600; }

blockquote { border-left: 3px solid var(--plum); padding-left: var(--s); margin: var(--m) 0; color: var(--fade); font-style: italic; }

/* --- Layout --- */

.wrap { width: min(var(--col), 100% - 2rem); margin-inline: auto; }
.wrap--w { width: min(58rem, 100% - 2rem); margin-inline: auto; }

/* --- Multiplier grid — signature element --- */

.mgrid {
  display: inline-grid;
  grid-template-columns: repeat(3, 8px);
  gap: 3px;
  vertical-align: middle;
}
.mgrid i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--plum);
  opacity: 0.25;
  animation: grid-fill 2.8s ease-in-out infinite;
}
.mgrid i:nth-child(1) { animation-delay: 0s; }
.mgrid i:nth-child(2) { animation-delay: 0.15s; }
.mgrid i:nth-child(3) { animation-delay: 0.3s; }
.mgrid i:nth-child(4) { animation-delay: 0.1s; }
.mgrid i:nth-child(5) { animation-delay: 0.25s; }
.mgrid i:nth-child(6) { animation-delay: 0.4s; }
.mgrid i:nth-child(7) { animation-delay: 0.2s; }
.mgrid i:nth-child(8) { animation-delay: 0.35s; }
.mgrid i:nth-child(9) { animation-delay: 0.5s; }

@keyframes grid-fill {
  0%, 100% { opacity: 0.18; }
  40% { opacity: 1; }
  70% { opacity: 0.18; }
}

.sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: var(--l) 0;
}
.sep .ln { width: 36px; height: 1px; background: var(--edge); }

/* --- Top accent bar --- */

.topstrip { height: 3px; background: var(--plum); }

/* --- Header --- */

.hd { padding: var(--s) 0; border-bottom: 1px solid var(--edge); background: var(--tile); }
.hd .wrap--w { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--xs); }

.brand { font-family: 'Young Serif', Georgia, serif; font-size: 1.15rem; color: var(--type); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand:hover { color: var(--plum); }

.hd nav { display: flex; gap: var(--s); flex-wrap: wrap; }
.hd nav a { font-size: 0.875rem; color: var(--fade); text-decoration: none; font-weight: 500; transition: color 0.15s; }
.hd nav a:hover { color: var(--type); }

/* --- Hero --- */

.hero { padding: var(--xl) 0 var(--l); text-align: center; }
.hero h1 { margin-bottom: var(--s); }
.hero p { color: var(--fade); font-size: 1.1rem; max-width: 36rem; margin-inline: auto; }

/* --- Sections --- */

section { padding: var(--l) 0; }

.label {
  font-family: 'Work Sans', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: var(--xs);
}

/* --- Brief cards --- */

.brief-stack { display: grid; gap: var(--s); }

.brief-card {
  display: block;
  background: var(--tile);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  padding: var(--m);
  text-decoration: none;
  color: var(--type);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.brief-card:hover { border-color: var(--plum); box-shadow: 0 2px 14px var(--tint); color: var(--type); }
.brief-card h3 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; margin-bottom: 0.4rem; }
.brief-card .meta { font-size: 0.8125rem; color: var(--fade); margin-bottom: 0.6rem; }
.brief-card p { font-size: 0.9375rem; color: var(--fade); line-height: 1.55; }

/* --- Principles --- */

.pgrid { display: grid; gap: var(--s); }
@media (min-width: 640px) { .pgrid { grid-template-columns: 1fr 1fr; } }

.pbox {
  background: var(--tint);
  border-left: 3px solid var(--plum);
  padding: var(--s) var(--s) var(--s) var(--m);
  border-radius: 0 var(--r) var(--r) 0;
}
.pbox h3 { font-size: 0.9375rem; font-family: 'Work Sans', system-ui, sans-serif; font-weight: 600; margin-bottom: 0.3rem; }
.pbox p { font-size: 0.875rem; color: var(--fade); }

/* --- Exclusion list --- */

.excl { list-style: none; display: grid; gap: 0.6rem; }
.excl li { font-size: 0.9375rem; padding-left: 1.5rem; position: relative; color: var(--fade); }
.excl li::before { content: '\00d7'; position: absolute; left: 0; color: var(--plum); font-weight: 700; font-size: 1.1rem; line-height: 1.4; }

/* --- FAQ --- */

.faq { display: grid; gap: var(--s); }
.faq-row { border-bottom: 1px solid var(--edge); padding-bottom: var(--s); }
.faq-row:last-child { border-bottom: none; }
.faq-row dt { font-family: 'Young Serif', Georgia, serif; font-size: 1rem; margin-bottom: 0.4rem; }
.faq-row dd { font-size: 0.9375rem; color: var(--fade); }

/* --- Support --- */

.sbox { background: var(--tile); border: 1px solid var(--edge); border-radius: var(--r); padding: var(--m); text-align: center; }
.sbox p { font-size: 0.9375rem; color: var(--fade); }
.sbox a { font-weight: 600; }

/* --- Article --- */

.art-head { padding: var(--l) 0 var(--m); border-bottom: 1px solid var(--edge); }
.art-head h1 { margin-bottom: 0.5rem; }
.art-head .meta { font-size: 0.875rem; color: var(--fade); }

.art-body { padding: var(--m) 0 var(--l); }
.art-body h2 { margin-top: var(--m); }
.art-body ul { margin: var(--s) 0; padding-left: 1.25rem; }
.art-body li { margin-bottom: 0.4rem; color: var(--fade); }

/* --- Legal --- */

.legal { padding: var(--l) 0; }
.legal h1 { margin-bottom: var(--m); }
.legal h2 { margin-top: var(--m); }
.legal ul { margin: var(--s) 0; padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal p + h2 { margin-top: var(--l); }

/* --- Footer --- */

.ft { border-top: 1px solid var(--edge); padding: var(--m) 0; text-align: center; font-size: 0.8125rem; color: var(--fade); }
.ft nav { display: flex; justify-content: center; gap: var(--s); flex-wrap: wrap; margin-bottom: var(--xs); }
.ft nav a { font-size: 0.8125rem; color: var(--fade); text-decoration: none; }
.ft nav a:hover { color: var(--type); }

/* --- 404 --- */

.e404 { padding: var(--xl) 0; text-align: center; }
.e404 h1 { font-size: clamp(3rem, 8vw, 5rem); color: var(--edge); margin-bottom: var(--xs); }
.e404 p { color: var(--fade); }

/* --- Responsive --- */

@media (max-width: 480px) {
  .hd .wrap--w { flex-direction: column; align-items: flex-start; }
  .hd nav { gap: 0.75rem; }
  .hero { padding: var(--l) 0 var(--m); }
  section { padding: var(--m) 0; }
}
