/* ============================================================
   DailyHotTakes — design system
   Prototype stylesheet. These tokens/components are ported
   verbatim into the WordPress theme in Phase 3.
   ============================================================ */

:root {
  /* Palette */
  --bg:        #e8e3d6;   /* warm cream page background */
  --bg-panel:  #efeadf;   /* lighter cream (studio callout) */
  --ink:       #17140d;   /* warm near-black — text & buttons */
  --ink-soft:  #4a4438;   /* secondary text */
  --muted:     #8b8574;   /* meta / labels */
  --line:      #cdc7b8;   /* hairlines / borders */
  --accent:    #df5228;   /* orange-red brand accent */
  --accent-ink:#ffffff;
  --on-dark:   #f3efe4;   /* text on dark media/buttons */

  /* Heat meter unlit segment */
  --heat-off:  #c9c3b4;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Metrics */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --gap: 40px;
}

/* --------------------------- reset --------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.dht-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 28px;
}

/* --------------------------- shared type --------------------------- */
.dht-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.dht-section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0;
}
.dht-cat {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.dht-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.dht-comments {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 10px 0 0;
}
.dht-comments--lg { font-size: 12.5px; }
.dht-bubble { color: var(--muted); flex: none; }
.dht-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); display: inline-block; flex: none;
}

/* --------------------------- buttons --------------------------- */
.dht-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.dht-btn:active { transform: translateY(1px); }
.dht-btn--dark { background: var(--ink); color: var(--on-dark); }
.dht-btn--dark:hover { background: #000; }
.dht-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.dht-btn--ghost:hover { border-color: var(--ink); }
.dht-btn--icon { padding-inline: 20px; }
.dht-btn--block { width: 100%; justify-content: center; }
.dht-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* --------------------------- header --------------------------- */
.dht-header { padding-top: 26px; }
.dht-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dht-brand { display: inline-flex; align-items: center; gap: 13px; }
.dht-brand__mark {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--accent);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.dht-wordmark {
  display: block;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -.02em;
  line-height: 1;
}
.dht-wordmark__hot { color: var(--accent); }
.dht-brand__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  color: var(--muted);
  margin-top: 5px;
}
.dht-nav { display: flex; align-items: center; gap: 30px; }
.dht-nav a {
  font-weight: 500;
  font-size: 15.5px;
  color: var(--ink);
  opacity: .85;
}
.dht-nav a:hover { opacity: 1; color: var(--accent); }
.dht-nav .dht-btn { margin-left: 6px; }

.dht-rule { border: 0; border-top: 1px solid var(--line); margin: 24px 0 0; }

/* --------------------------- media / thumbnails --------------------------- */
.dht-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: #222;
  isolation: isolate;
}
.dht-media--hero { aspect-ratio: 16 / 9.4; border-radius: 16px; }
.dht-media--sm { aspect-ratio: 16 / 8.6; border-radius: 11px; }

/* decorative shapes inside media */
.dht-media::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 78% 18%, rgba(255,255,255,.10), transparent 55%);
  z-index: 1;
}
.dht-media::after {
  content: "";
  position: absolute; right: -6%; top: 8%; bottom: 8%; width: 42%;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 2px, transparent 2px 12px);
  transform: skewX(-4deg);
  z-index: 1;
  opacity: .7;
}
/* big soft circle */
.dht-tint--green,.dht-tint--blue,.dht-tint--purple,.dht-tint--dark,
.dht-tint--maroon,.dht-tint--olive,.dht-tint--slate,.dht-tint--plum,.dht-tint--teal {
  background-position: center; background-size: cover;
}
.dht-tint--green  { background: radial-gradient(90% 120% at 30% 20%, #2c4b39, #16281d 70%); }
.dht-tint--blue   { background: radial-gradient(90% 120% at 30% 20%, #274863, #15222f 72%); }
.dht-tint--purple { background: radial-gradient(90% 120% at 30% 20%, #372a4c, #1c1626 72%); }
.dht-tint--dark   { background: radial-gradient(90% 120% at 30% 20%, #33333a, #17171b 72%); }
.dht-tint--maroon { background: radial-gradient(90% 120% at 30% 20%, #4a2b28, #241413 72%); }
.dht-tint--olive  { background: radial-gradient(90% 120% at 30% 20%, #3b3a24, #1e1d12 72%); }
.dht-tint--slate  { background: radial-gradient(90% 120% at 30% 20%, #2f3742, #171b20 72%); }
.dht-tint--plum   { background: radial-gradient(90% 120% at 30% 20%, #4b2540, #241124 72%); }
.dht-tint--teal   { background: radial-gradient(90% 120% at 30% 20%, #1f4444, #112323 72%); }

/* play button */
.dht-play {
  position: absolute; inset: 0; margin: auto;
  width: 74px; height: 54px; border-radius: 12px;
  background: rgba(10,10,10,.55);
  backdrop-filter: blur(2px);
  border: none; color: #fff;
  display: grid; place-items: center;
  z-index: 3;
  transition: background .15s ease, transform .15s ease;
}
.dht-play:hover { background: rgba(0,0,0,.72); transform: scale(1.04); }
.dht-play svg { margin-left: 3px; }
.dht-play--sm { width: 52px; height: 40px; border-radius: 9px; }

/* media strip (category) */
.dht-media__strip {
  position: absolute; left: 0; bottom: 0; z-index: 3;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  margin: 14px;
  display: flex; flex-direction: column; gap: 3px;
}
.dht-media__strip--sm { margin: 10px; padding: 4px 10px; }
.dht-media__cat {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--accent);
  text-transform: uppercase;
}
.dht-media__sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
}
/* duration badge */
.dht-duration {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 9px; border-radius: 6px;
}
.dht-still {
  position: absolute; left: 14px; top: 12px; z-index: 3;
  font-family: var(--font-sans);
  font-size: 14px; color: rgba(255,255,255,.65);
}
/* badge (Today's hottest) */
.dht-badge {
  position: absolute; left: 16px; top: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10,10,10,.72);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-weight: 700; font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 13px; border-radius: 999px;
}

/* --------------------------- hero --------------------------- */
.dht-hero {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  gap: var(--gap);
  margin-top: 34px;
}
.dht-hero__meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px;
}
.dht-hero__meta .dht-cat { margin-right: 10px; }
.dht-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.03;
  letter-spacing: -.015em;
  margin: 12px 0 0;
}
.dht-hero__dek {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 16px 0 0;
}
.dht-hero__actions {
  display: flex; align-items: center; gap: 22px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.dht-hero__actions .dht-heat { flex: 1 1 240px; min-width: 200px; }

/* studio callout */
.dht-studio-cta {
  margin-top: 26px;
  background: var(--bg-panel);
  border: 1.5px dashed #b9b1a0;
  border-radius: var(--radius);
  padding: 22px 24px;
}
.dht-studio-cta__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 14px;
}
.dht-studio-cta__head {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 18px;
  max-width: 34ch;
}

/* hero sidebar cards */
.dht-hero__side { display: flex; flex-direction: column; gap: 26px; }
.dht-scard__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 12px 0 10px;
}
.dht-scard .dht-cat { display: block; margin-top: 13px; }
.dht-scard .dht-meta { margin-top: 2px; }

/* --------------------------- heat meter --------------------------- */
.dht-heat {
  display: flex; align-items: center; gap: 12px;
}
.dht-heat__track {
  display: flex; align-items: center; gap: 3px;
  flex: 1; min-width: 0;
}
.dht-heat__seg {
  height: 13px; width: 6px; border-radius: 1.5px;
  background: var(--heat-off);
  flex: none;
}
.dht-heat[data-size="lg"] .dht-heat__seg { height: 15px; width: 7px; }
.dht-heat__deg {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.01em;
  flex: none;
}
.dht-heat[data-size="lg"] .dht-heat__deg { font-size: 26px; }

/* --------------------------- library --------------------------- */
.dht-library { margin-top: 74px; }
.dht-library__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.dht-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.dht-chip {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.dht-chip:hover { border-color: var(--ink); }
.dht-chip.is-active { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

.dht-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 26px;
  margin-top: 34px;
}
.dht-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.13;
  letter-spacing: -.01em;
  margin: 13px 0 12px;
}
.dht-card .dht-cat { display: block; margin-top: 14px; }
.dht-card .dht-heat { margin-bottom: 8px; }
.dht-card .dht-meta { margin-top: 4px; }
.dht-card.is-hidden { display: none; }

/* --------------------------- about / contact --------------------------- */
.dht-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  margin-top: 84px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.dht-prose { font-size: 16.5px; color: var(--ink-soft); margin: 18px 0 0; max-width: 48ch; }
.dht-info .dht-section-title { font-size: clamp(24px, 2.6vw, 31px); }
.dht-contact__list { margin: 26px 0 0; }
.dht-contact__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.dht-contact__row dt {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.dht-contact__row dd { margin: 0; font-size: 16px; color: var(--ink); }

/* --------------------------- footer --------------------------- */
.dht-footer { margin-top: 80px; padding: 30px 0 56px; border-top: 1px solid var(--line); }
.dht-footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.dht-footer__legal {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .06em; line-height: 1.7;
  color: var(--muted); margin: 0;
}
.dht-footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.dht-footer__nav a { font-size: 15px; color: var(--ink); opacity: .8; }
.dht-footer__nav a:hover { opacity: 1; color: var(--accent); }

/* --------------------------- studio modal --------------------------- */
.dht-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.dht-modal[hidden] { display: none; }
.dht-modal__backdrop { position: absolute; inset: 0; background: rgba(20,17,10,.55); backdrop-filter: blur(3px); }
.dht-modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 92vh; overflow-y: auto;
  background: var(--bg);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.dht-modal__close {
  position: absolute; top: 16px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  font-size: 22px; line-height: 1; color: var(--ink);
}
.dht-modal__close:hover { border-color: var(--ink); }
.dht-modal__title { font-family: var(--font-display); font-weight: 600; font-size: 30px; margin: 4px 0 8px; }
.dht-modal__sub { color: var(--ink-soft); margin: 0 0 22px; }

.dht-rec__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #12100b;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; place-items: center;
}
.dht-rec__video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); background: #12100b; }
.dht-rec__timer {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  color: #fff; background: rgba(0,0,0,.5); padding: 4px 10px; border-radius: 6px;
}
.dht-rec__timer.is-rec { background: var(--accent); }
.dht-rec__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.15); }
.dht-rec__bar-fill { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
.dht-rec__hint {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.72); margin: 0; text-align: center;
}
.dht-rec__controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.dht-rec__upload { margin-left: auto; }
.dht-rec__form { margin-top: 20px; }
.dht-field { margin-bottom: 14px; }
.dht-field label {
  display: block; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.dht-field input, .dht-field select {
  width: 100%; font: inherit; font-size: 15px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
.dht-field input:focus, .dht-field select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.dht-rec__note { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); margin: 12px 0 0; line-height: 1.6; }

/* --------------------------- responsive --------------------------- */
@media (max-width: 960px) {
  .dht-hero { grid-template-columns: 1fr; }
  .dht-hero__side { flex-direction: row; flex-wrap: wrap; }
  .dht-hero__side .dht-scard { flex: 1 1 260px; }
  .dht-grid { grid-template-columns: repeat(2, 1fr); }
  .dht-info { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 680px) {
  .dht-nav { gap: 16px; }
  .dht-nav a:not(.dht-btn) { display: none; }
  .dht-library__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .dht-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .dht-footer__inner { flex-direction: column; }
}
@media (max-width: 460px) {
  .dht-grid { grid-template-columns: 1fr; }
  .dht-container { padding-inline: 18px; }
}
