/* ==========================================================================
   thath inc. — light theme layer for Slopstrap (load AFTER slopstrap.css)
   Slopstrap ships dark-only; this flips its tokens and the hard-coded
   dark-mode values to a warm light palette, then adds thath-specific bits.
   ========================================================================== */

:root {
  --slop-bg: #fbfaf6;
  --slop-bg-elevated: #ffffff;
  --slop-surface: rgba(255, 255, 255, 0.82);
  --slop-surface-hover: rgba(255, 255, 255, 0.98);
  --slop-glass: rgba(15, 23, 42, 0.035);
  --slop-glass-strong: rgba(15, 23, 42, 0.06);
  --slop-border: rgba(15, 23, 42, 0.12);
  --slop-border-bright: rgba(124, 58, 237, 0.45);
  --slop-text: #0f172a;
  --slop-text-muted: #475569;
  --slop-text-dim: #64748b;
  --slop-orb-opacity: 0.16;
  --thath-link: #6d28d9;
  --thath-link-hover: #0e7490;
  --thath-grad: linear-gradient(135deg, #4f46e5 0%, #9333ea 50%, #0891b2 100%);
}

.slop-body { color-scheme: light; }
html { scroll-behavior: smooth; }

.slop-body a { color: var(--thath-link); }
.slop-body a:hover { color: var(--thath-link-hover); }
.slop-body a.slop-btn-primary,
.slop-body a.slop-btn-rainbow { color: #fff !important; }

/* faint grid: dark lines on light paper */
.slop-grid-bg {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

/* navbar */
.slop-navbar { background: rgba(251, 250, 246, 0.78); }
@media (hover: none) and (pointer: coarse), (max-width: 760px) {
  .slop-navbar { background: rgba(251, 250, 246, 0.97); }
}

/* gradient text / stat numerals: swap the white stop for deep indigo */
.slop-text-gradient,
.slop-stat-value {
  background-image: var(--thath-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.slop-prose strong, .slop-quote { color: #1e293b; }
.slop-author { border-top-color: rgba(15, 23, 42, 0.1); }

/* pills / badges / status */
.slop-pill { background: rgba(15, 23, 42, 0.05); border-color: rgba(15, 23, 42, 0.14); color: #334155; }
.slop-status { background: rgba(255, 255, 255, 0.85); color: #334155; }
.slop-stat-delta { color: #047857; }

/* cards: softer shadow instead of dark glow */
.slop-card { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 30px -12px rgba(79, 70, 229, 0.18); }
.slop-card-beam { background:
    linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)) padding-box,
    var(--slop-gradient) border-box; }

/* marquee */
.slop-marquee-logo { color: rgba(71, 85, 105, 0.78); }
.slop-marquee-logo:hover { color: #0f172a; }

/* ghost buttons */
.slop-btn-ghost { color: #1e293b; border-color: rgba(15, 23, 42, 0.2); }
.slop-btn-ghost:hover { background: rgba(15, 23, 42, 0.05); color: #0f172a; }

/* terminal-ish blocks */
.slop-terminal { background: #0f172a; color: #e2e8f0; }

/* ==========================================================================
   thath-specific styles
   ========================================================================== */
.thath-wordmark { height: 30px; width: auto; display: block; }
.thath-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.thath-hero-photo { position: relative; justify-self: center; }
.thath-hero-photo .thath-face {
  width: min(340px, 78vw); aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 6px solid #fff; box-shadow: 0 20px 60px -15px rgba(79, 70, 229, 0.45);
}
.thath-face-wrap { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.thath-face-wrap:focus-visible { outline: 3px solid #a855f7; outline-offset: 6px; border-radius: 50%; }
.thath-face-wrap .thath-face { display: block; }
.thath-glasses {
  position: absolute; left: 42%; top: -12%; width: 37.5%; height: auto;
  transform: translate(-50%, -50%) rotate(2deg); opacity: 0; pointer-events: none;
  image-rendering: pixelated;
  transition: top .9s cubic-bezier(.34, 1.45, .5, 1), opacity .25s ease;
}
.thath-face-wrap.dwi .thath-glasses { top: 52%; opacity: 1; }
.thath-dwi {
  position: absolute; right: -14%; top: 4%; z-index: 3; pointer-events: none;
  font-family: 'Bangers', 'Impact', sans-serif; font-size: clamp(1.5rem, 5.5vw, 2.4rem); letter-spacing: .04em;
  color: #111; background: #fde047; padding: .35rem .9rem .3rem;
  border: 4px solid #111; border-radius: .4rem; box-shadow: 6px 6px 0 #111;
  clip-path: none; transform: rotate(7deg) scale(0); transform-origin: left bottom; opacity: 0;
  transition: transform .35s cubic-bezier(.3, 1.8, .5, 1), opacity .1s;
}
.thath-dwi::after { content: ''; position: absolute; left: 14px; bottom: -22px; border: 12px solid transparent; border-top: 14px solid #111; border-bottom: 0; border-right-width: 4px; transform: rotate(8deg); }
.thath-face-wrap.dwi.dwi-pop .thath-dwi { transform: rotate(7deg) scale(1); opacity: 1; }
.thath-hero-photo .thath-sticker {
  position: absolute; right: -10px; bottom: 18px; transform: rotate(-8deg);
  background: #fde047; color: #1c1917; font-weight: 800; font-size: 0.85rem;
  padding: 0.45rem 0.8rem; border-radius: 0.6rem; box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.thath-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.thath-section-title { text-align: center; margin-bottom: 0.5rem; }
.thath-section-sub { text-align: center; max-width: 42rem; margin: 0 auto 2.25rem; color: var(--slop-text-muted); }

.thath-project { display: flex; gap: 1.1rem; align-items: flex-start; }
.thath-project img { width: 84px; height: 84px; object-fit: contain; flex-shrink: 0; border-radius: 0.9rem; background: #fff; padding: 6px; border: 1px solid var(--slop-border); }
.thath-project h3 { margin: 0 0 0.25rem; }
.thath-project p { margin: 0.25rem 0 0.6rem; color: var(--slop-text-muted); }

.thath-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.thath-stat-big { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }

.thath-marquee-label { text-align: center; font-weight: 700; letter-spacing: .02em; margin-bottom: .25rem; }
.thath-marquee-row + .thath-marquee-row .slop-marquee-track { animation-direction: reverse; animation-duration: 28s; }
.thath-brand { cursor: help; }
.thath-brand b { font-weight: 800; }

.thath-dogs { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.1rem; }
.thath-dog { overflow: hidden; padding: 0; }
.thath-dog img { width: 100%; height: 210px; object-fit: cover; display: block; }
.thath-dog .thath-dog-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .7rem; }
.thath-dog.thath-bad { border-color: rgba(244, 63, 94, .5); }
.thath-dog.thath-bad .slop-stars { color: #f43f5e; text-shadow: none; }
.thath-dog.thath-bad img { filter: grayscale(.6) contrast(1.05); }
.thath-dog-name { font-weight: 700; }
.thath-dog-role { font-size: .8rem; color: var(--slop-text-muted); }

.thath-form { display: grid; gap: .9rem; max-width: 34rem; margin: 0 auto; }
.thath-form label { font-weight: 600; font-size: .9rem; display: grid; gap: .35rem; }
.thath-form input, .thath-form textarea, .thath-form select {
  font: inherit; padding: .7rem .85rem; border-radius: .7rem; border: 1px solid var(--slop-border);
  background: #fff; color: var(--slop-text);
}
.thath-form input:focus, .thath-form textarea:focus, .thath-form select:focus { outline: 2px solid #a855f7; outline-offset: 1px; }

.thath-ticker { font-family: var(--slop-font-mono); font-size: .8rem; background: #0f172a; color: #86efac; padding: .35rem 0; overflow: hidden; white-space: nowrap; }
.thath-ticker span { display: inline-block; padding-left: 100%; animation: thath-tick 38s linear infinite; }
@keyframes thath-tick { to { transform: translateX(-100%); } }

.thath-footer { text-align: center; padding: 2.5rem 0 3rem; color: var(--slop-text-muted); font-size: .85rem; }
.thath-footer img { height: 26px; margin-bottom: .6rem; }
.thath-credits { font-size: .75rem; margin-top: 1rem; }
.thath-credits a { text-decoration: underline; }

/* floating "do not press" button */
.thath-dnp { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; }

/* modal */
.thath-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(15, 23, 42, .55); padding: 1rem; }
.thath-modal.open { display: flex; }
.thath-modal-box { background: #fff; border-radius: 1.4rem; max-width: 30rem; padding: 2rem; text-align: center; border: 4px dashed #f59e0b; box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: rotate(-1.2deg); }
.thath-modal-box h2 { font-size: 1.9rem; margin: 0 0 .6rem; font-family: 'Comic Sans MS', 'Comic Neue', cursive; color: #be123c; }
.thath-modal-box p { color: #334155; }
.thath-fine { font-size: .65rem; color: #94a3b8; margin-top: 1rem; }

/* cookie banner */
.thath-cookie { position: fixed; left: 1rem; bottom: 1rem; z-index: 55; max-width: 20rem; background: #fff; border: 1px solid var(--slop-border); border-radius: 1rem; padding: .9rem 1rem; box-shadow: 0 12px 40px rgba(15,23,42,.18); font-size: .85rem; }
.thath-cookie .thath-cookie-row { display: flex; gap: .5rem; margin-top: .6rem; }

@media (max-width: 800px) {
  .thath-hero { grid-template-columns: 1fr; text-align: center; }
  .thath-cta-row { justify-content: center; }
  .thath-project { flex-direction: column; }
  .thath-cookie { right: 1rem; max-width: none; bottom: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .slop-marquee-track, .thath-ticker span, .slop-orb { animation: none !important; }
}
