/* weirdshop.css - Bench & Bias (normal) + C.H.E.T. (weird).
   Normal mode is deliberately plain, pre-2020 web. C.H.E.T. mode escalates
   through body.chet, body.chet.l2, body.chet.l3 into AI-slop caricature. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #f6f1e7;
  color: #1c1917;
  font: 16px/1.55 "Segoe UI", system-ui, -apple-system, sans-serif;
}
main { max-width: 1060px; margin: 0 auto; padding: 0 20px 64px; }
a { color: #7c2d2d; }
a:hover { color: #59201f; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.2; }
h1 { font-size: 30px; margin: 0.4em 0; }
h2 { font-size: 22px; margin: 1.6em 0 0.5em; }
p { margin: 0.5em 0; }

/* ---------- header ---------- */
.topbar {
  border-bottom: 1px solid #d8d0c0;
  background: #f6f1e7;
}
.topbar-inner {
  max-width: 1060px; margin: 0 auto; padding: 14px 20px 10px;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.wordmark {
  font-family: Georgia, serif; font-size: 24px; font-weight: 700;
  color: #1c1917; text-decoration: none; cursor: pointer; user-select: none;
}
.wordmark small { font-size: 13px; font-weight: 400; color: #6b6357; margin-left: 8px; }
.topinfo { margin-left: auto; font-size: 13px; color: #6b6357; text-align: right; }
.topnav { max-width: 1060px; margin: 0 auto; padding: 0 20px 10px; font-size: 14px; }
.topnav a { color: #4a443c; text-decoration: none; margin-right: 16px; }
.topnav a:hover { text-decoration: underline; color: #7c2d2d; }
.banner { display: none; }

/* ---------- hero ---------- */
.hero { padding: 26px 0 8px; border-bottom: 1px solid #d8d0c0; margin-bottom: 8px; }
.hero p.lead { max-width: 640px; font-size: 17px; }

/* ---------- product grid ---------- */
.grid {
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 14px;
}
.card {
  border: 1px solid #d8d0c0; background: #fbf8f1; padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.card .icon { width: 44px; height: 44px; color: #7c2d2d; }
.card .icon svg { width: 100%; height: 100%; }
.card h3 { margin: 0; font-size: 18px; }
.card .desc { font-size: 14px; color: #4a443c; flex: 1; }
.card .price { font-size: 14px; font-weight: 600; color: #1c1917; }
.card .cat-tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8172; }
button, .btn {
  font: inherit; font-size: 14px; padding: 7px 14px; cursor: pointer;
  background: #7c2d2d; color: #fff; border: 1px solid #7c2d2d; border-radius: 2px;
}
button.ghost { background: transparent; color: #7c2d2d; }
button:disabled { opacity: 0.5; cursor: default; }

/* ---------- testimonials ---------- */
.quotes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 14px; }
.quote { border-left: 3px solid #d8d0c0; padding: 4px 14px; font-size: 15px; }
.quote .who { margin-top: 6px; font-size: 13px; color: #6b6357; }

/* ---------- cart / checkout ---------- */
.rows { margin: 18px 0; }
.row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #d8d0c0; }
.row .icon { width: 34px; height: 34px; color: #7c2d2d; flex: none; }
.row .icon svg { width: 100%; height: 100%; }
.row .meta { flex: 1; }
.row .qty { font-size: 13px; color: #6b6357; }
.total { font-weight: 700; padding: 12px 0; font-size: 17px; display: flex; justify-content: space-between; }
input[type="text"], input[type="email"], textarea {
  font: inherit; width: 100%; max-width: 420px; padding: 8px 10px;
  border: 1px solid #c9c0ae; background: #fffdf7; color: #1c1917; border-radius: 2px;
}
label { display: block; font-size: 13px; color: #4a443c; margin: 12px 0 4px; }
.slip { border: 1px solid #d8d0c0; background: #fffdf7; padding: 18px; margin-top: 14px; max-width: 520px; }
.slip h3 { margin-top: 0; }

/* ---------- lore pages ---------- */
.notice-page { max-width: 680px; }
.notice-page .head { font-family: Georgia, serif; font-size: 24px; font-weight: 700; }
.notice-page .sub { font-size: 13px; color: #6b6357; margin-bottom: 18px; }
.notice-page p { margin: 10px 0; }
.strike { text-decoration: line-through; color: #8a8172; }
.chet-note { color: #1d4ed8; font-size: 14px; }
.sign { font-style: italic; margin-top: 18px; }
.changelog { max-width: 680px; }
.cl-entry { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px dotted #d8d0c0; }
.cl-entry .v { font-family: ui-monospace, Consolas, monospace; font-weight: 700; flex: none; width: 76px; }
.letter { max-width: 620px; font-family: Georgia, serif; font-size: 17px; }
.letter p { margin: 12px 0; }
.letter .sign { margin-top: 24px; }

/* ---------- footer (the discovery surface) ---------- */
footer {
  border-top: 1px solid #d8d0c0; margin-top: 40px; padding: 22px 20px 30px;
  font-size: 12.5px; color: #6b6357;
}
footer .fine { max-width: 1060px; margin: 0 auto; }
footer hr { border: 0; border-top: 1px solid #e6dfd0; margin: 10px 0; }
.toggle-line { display: flex; align-items: center; gap: 6px; color: #8a8172; }
.toggle-line input { accent-color: #7c2d2d; }
.qmark { font-size: 10px; color: #b9b09e; text-decoration: none; }
.qmark:hover { color: #7c2d2d; }

/* ---------- overlays: takeover + rollback ---------- */
.overlay {
  position: fixed; inset: 0; background: #0c0a14; color: #d8ccff; z-index: 60;
  display: none; align-items: center; justify-content: center;
}
.overlay.show { display: flex; }
.term {
  width: min(640px, 92vw); font: 14px/1.8 ui-monospace, Consolas, monospace;
  border: 1px solid #3b2d66; background: #120e22; padding: 22px 26px; border-radius: 6px;
}
.term .cursor { display: inline-block; width: 8px; height: 15px; background: #a78bfa; vertical-align: -2px; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term .bar { height: 8px; background: #241b40; border-radius: 4px; margin: 12px 0 4px; overflow: hidden; }
.term .bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, #7c3aed, #22d3ee); transition: width 0.3s; }

/* ---------- C.H.E.T. chat bubble ---------- */
.chat {
  position: fixed; right: 18px; bottom: 18px; width: 300px; z-index: 50;
  border: 1px solid #3b2d66; border-radius: 12px; background: #fff; color: #1c1917;
  box-shadow: 0 10px 30px rgba(20, 10, 60, 0.25); display: none; overflow: hidden;
}
.chat.show { display: block; }
.chat .chat-head {
  background: linear-gradient(90deg, #7c3aed, #4f46e5); color: #fff;
  font-size: 13px; font-weight: 600; padding: 8px 12px;
}
.chat .chat-body { padding: 10px 12px; max-height: 190px; overflow-y: auto; font-size: 13.5px; }
.chat .msg { margin: 6px 0; }
.chat .msg.chet { color: #4c1d95; }
.chat .msg.sys { color: #9ca3af; font-size: 11.5px; }
.chat .chat-input { display: flex; border-top: 1px solid #e5e7eb; }
.chat .chat-input input { flex: 1; max-width: none; border: 0; border-radius: 0; background: #fff; font-size: 13px; }
.chat .chat-input button { border: 0; border-radius: 0; background: #7c3aed; padding: 6px 12px; }

/* ---------- trust badges (chet L2+) ---------- */
.badges { display: none; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; }
.badge {
  display: none; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(90deg, #ede9fe, #cffafe); color: #4c1d95;
}

/* ============================================================
   C.H.E.T. MODE. Escalating AI-slop caricature.
   ============================================================ */
body.chet {
  background: #faf8ff;
  color: #27272a;
}
body.chet a { color: #6d28d9; }
body.chet .topbar { background: #faf8ff; border-color: #e4e1f5; }
body.chet .wordmark { color: #4c1d95; letter-spacing: 0.04em; }
body.chet .topinfo { color: #7c7aa3; }
body.chet .banner {
  display: block; text-align: center; padding: 7px 12px; font-size: 13.5px; font-weight: 600;
  background: linear-gradient(90deg, #ede9fe, #dbeafe, #cffafe); color: #4c1d95;
}
body.chet .hero, body.chet .quotes .quote, body.chet .cl-entry { border-color: #e4e1f5; }
body.chet .card {
  border-color: #e0dcf2; background: #ffffff; border-radius: 12px;
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.08);
}
body.chet .card .icon { color: #7c3aed; }
body.chet .card .cat-tag { color: #a19ec7; }
body.chet button, body.chet .btn {
  background: linear-gradient(90deg, #7c3aed, #4f46e5); border: 0; border-radius: 999px;
  padding: 8px 18px; font-weight: 600;
}
body.chet button.ghost { background: transparent; border: 2px solid #7c3aed; color: #6d28d9; }
body.chet footer { border-color: #e4e1f5; color: #8b89ad; }
body.chet footer hr { border-color: #efedf9; }
body.chet .row { border-color: #e4e1f5; }
body.chet .row .icon { color: #7c3aed; }
body.chet .slip, body.chet input[type="text"], body.chet input[type="email"], body.chet textarea {
  border-color: #dcd8f0; background: #ffffff; border-radius: 8px;
}
body.chet .toggle-line { color: #8b89ad; }
body.chet .toggle-line input { accent-color: #7c3aed; }
body.chet .price { color: #6d28d9; }
body.chet .pricechip { display: inline-block; }
body.chet .strike { color: #b3aed3; }
body.chet .chet-note { color: #2563eb; }

/* L2: glass cards, gradient wordmark, badges, notice pill */
body.chet.l2 .card {
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(7px);
  border-radius: 16px; box-shadow: 0 10px 28px rgba(76, 29, 149, 0.14);
}
body.chet.l2 .wordmark {
  background: linear-gradient(90deg, #7c3aed, #2563eb, #0891b2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.chet.l2 .badges { display: flex; }
body.chet.l2 .badge { display: inline-block; }
body.chet.l2 .quote {
  border-left-color: #7c3aed; background: rgba(255, 255, 255, 0.7);
  border-radius: 10px; padding: 10px 14px;
}
body.chet.l2 .stars { color: #f59e0b; letter-spacing: 2px; }
body.chet.l2 .owner-pill {
  display: inline-block; margin-left: 10px; font-size: 12px; font-weight: 700;
  background: #fde68a; color: #92400e; border-radius: 999px; padding: 3px 10px;
}

/* L3: full slop. animated gradients, blob background, rename */
body.chet.l3 {
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(124, 58, 237, 0.16), transparent 60%),
    radial-gradient(700px 460px at -10% 30%, rgba(34, 211, 238, 0.14), transparent 60%),
    #fbfaff;
}
body.chet.l3 .wordmark {
  background: linear-gradient(90deg, #7c3aed, #db2777, #0891b2, #7c3aed);
  background-size: 300% 100%;
  animation: slidegrad 9s linear infinite;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 26px;
}
@keyframes slidegrad { to { background-position: 300% 0; } }
body.chet.l3 .banner {
  background: linear-gradient(90deg, #7c3aed, #db2777, #0891b2, #7c3aed);
  background-size: 300% 100%; animation: slidegrad 11s linear infinite;
  color: #fff;
}
body.chet.l3 .l3notice {
  display: block; max-width: 1060px; margin: 12px auto 0; font-size: 13px; font-weight: 600;
  color: #9d174d; background: #ffe4e6; border-radius: 999px; padding: 6px 14px; width: fit-content;
}
body.chet.l3 .card { border-radius: 20px; transform: none; }
body.chet.l3 h1, body.chet.l3 h2 { letter-spacing: 0.02em; }

/* misc */
.muted { color: #6b6357; font-size: 13.5px; }
.mt { margin-top: 18px; }
.giftrow { outline: 2px dashed #7c3aed; outline-offset: 3px; border-radius: 8px; padding: 8px; }

/* ---------- print: the bench order slip only ---------- */
@media print {
  body * { visibility: hidden; }
  #slip, #slip * { visibility: visible; }
  #slip { position: absolute; left: 0; top: 0; border: 1px solid #000; background: #fff; color: #000; }
  .overlay, .chat { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .term .cursor, body.chet.l3 .wordmark, body.chet.l3 .banner { animation: none; }
}
