/* COSYdata home hero: same layout language as COSYlanguages (serif headline left, live card right).
   Two accents, used consistently: honey-gold is editorial (eyebrow, the italic word in the headline)
   and the brand signal (#0ABBB5 to #0CA2B0) is interactive (buttons, links, chips, focus rings).
   All colours come from the shared tokens so dark mode follows. */

.dh-topbar,
.dh-hero {
  --dh-accent: var(--cosy-signal-ink);
}

html[data-theme="dark"] .dh-topbar,
html[data-theme="dark"] .dh-hero {
  --dh-accent: var(--cosy-signal);
}

.dh-topbar {
  max-width: 1248px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dh-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--cosy-color-ink, #1c1917);
  font-family: var(--cosy-font-serif, Georgia, serif);
  font-weight: 700;
  font-size: 1.2rem;
}
.dh-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 8px;
  background: var(--cosy-color-honey-pale, #fff8e7);
  font-size: 1.05rem;
}

.dh-theme-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--cosy-color-border, rgba(74, 107, 80, 0.2));
  background: var(--cosy-color-warm-white, #fff);
  color: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.dh-theme-btn:hover { border-color: var(--dh-accent); }
.dh-theme-btn:focus-visible,
.dh-btn:focus-visible,
.dh-chip:focus-visible,
.dh-link:focus-visible,
.dh-sub a:focus-visible { outline: 3px solid var(--dh-accent); outline-offset: 2px; }

.dh-hero {
  padding: 2.5rem 1.5rem 3rem;
  background:
    radial-gradient(60% 70% at 85% 10%, var(--cosy-color-honey-pale, #fff8e7) 0, transparent 70%),
    var(--cosy-color-cream, #fdfcf8);
}

.dh-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: start;
}
.dh-hero-copy { min-width: 0; padding-top: 1.5rem; }

.dh-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--cosy-color-honey-pale, #fff8e7);
  color: var(--cosy-color-honey, #945e05);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dh-title {
  margin: 0 0 1rem;
  font-family: var(--cosy-font-serif, Georgia, serif);
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cosy-color-ink, #1c1917);
}
.dh-title em { font-style: italic; font-weight: 400; color: var(--cosy-color-honey, #945e05); }

.dh-sub {
  max-width: 36rem;
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--cosy-color-ink-soft, #4a4a4a);
}
.dh-sub a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.dh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-bottom: 1.5rem; }

.dh-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.dh-btn-primary {
  background: var(--cosy-fill-signal);
  color: var(--cosy-on-signal);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--cosy-signal) 32%, transparent);
}
.dh-btn-primary:hover { background: var(--cosy-fill-signal-hover); transform: translateY(-1px); color: var(--cosy-on-signal); }
.dh-btn-secondary {
  background: var(--cosy-color-warm-white, #fff);
  color: var(--cosy-color-ink, #1c1917);
  border: 1.5px solid var(--cosy-color-border-hover, rgba(74, 107, 80, 0.35));
}
.dh-btn-secondary:hover { border-color: var(--dh-accent); transform: translateY(-1px); }

.dh-link {
  color: var(--cosy-color-ink, #1c1917);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--dh-accent);
}
.dh-link:hover { color: var(--dh-accent); }

.dh-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dh-chip {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--cosy-color-border, rgba(74, 107, 80, 0.2));
  border-radius: 999px;
  background: var(--cosy-color-warm-white, #fff);
  color: var(--cosy-color-ink-soft, #4a4a4a);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.dh-chip:hover { border-color: var(--dh-accent); color: var(--cosy-color-ink, #1c1917); }
.dh-chip-more { background: transparent; border-style: dashed; }

/* Live card: the shared daily strip, in a labelled column */
.dh-today { min-width: 0; }
.dh-today-title {
  margin: 0 0 0.6rem;
  font-family: var(--cosy-font-serif, Georgia, serif);
  font-size: 1.1rem;
  color: var(--cosy-color-ink-soft, #4a4a4a);
}
.dh-today .today-picker { margin-bottom: 0.6rem; }
.dh-today .daily-strip-container { margin: 0; max-width: none; }

@media (max-width: 880px) {
  .dh-hero { padding: 1.5rem 1rem 2.25rem; }
  .dh-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .dh-hero-copy { padding-top: 0; }
  .dh-topbar { padding: 0.6rem 1rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dh-btn { transition: none; }
  .dh-btn:hover { transform: none; }
}

html[data-theme="dark"] .dh-eyebrow,
html[data-theme="dark"] .dh-title em { color: #f0b34a; }
html[data-theme="dark"] .dh-btn-primary { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
html[data-theme="dark"] .dh-hero {
  background: radial-gradient(60% 70% at 85% 10%, #2d2417 0, transparent 70%), var(--cosy-color-cream, #1a1f1a);
}
