/* Daniel Carrillo Art - Archivo typography system
   Shared type layer for the static Netlify site. */
@import url("https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,200..900;1,200..900&display=swap");

:root {
  --font-main: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: var(--font-main);
  --font-sans: var(--font-main);
  --dc-font-display: var(--font-display);
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;
  --type-display-xl: clamp(48px, 7vw, 104px);
  --type-display-lg: clamp(36px, 5.5vw, 82px);
  --type-section: clamp(30px, 4vw, 62px);
  --type-card: clamp(20px, 2vw, 32px);
  --type-body-lg: clamp(16px, 1.35vw, 20px);
  --type-body: clamp(14px, 1vw, 16px);
  --type-label: clamp(10px, .78vw, 12px);
  --h1-size: var(--type-display-xl);
  --h2-size: var(--type-display-lg);
  --section-title-size: var(--type-section);
  --body-size: var(--type-body);
  --label-size: var(--type-label);
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--font-main) !important;
}

h1,
h2,
h3,
h4,
.dc-link,
.dc-btn,
.dc-mob-link,
.dc-footer,
.dc-footer * {
  font-family: var(--font-main) !important;
}

h1,
.hero-title,
.dc-hero-title,
.wk-hero-title,
.tips-title,
.contact-title,
.ct-hero-title,
.st-hero-title,
.case-title,
.case-hero-title,
.ab-archive-title,
.ab-dossier-title {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-black) !important;
  letter-spacing: -0.05em;
}

h2,
.section-title,
.dc-section-title,
.feature-title,
.process-head h2,
.client-panel h2,
.st-section-title,
.dc-services-intro-title,
.dc-manifesto-title,
.ab-section-title,
.ab-final-title {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-extrabold) !important;
  letter-spacing: -0.04em;
}

h3,
.card-title,
.tip-card h2,
.study-card h2,
.process-card strong,
.service-card h3,
.route-card h3,
.st-card-title,
.wk-card h3,
.wk-case-title,
.ab-file-card h2,
.ab-skill strong {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-bold) !important;
}

p,
li,
label,
input,
select,
textarea {
  font-family: var(--font-main);
  font-weight: var(--fw-regular);
}

.dc-footer-phrase,
.dc-footer .dc-footer-brand .dc-footer-phrase {
  font-family: var(--font-display) !important;
  font-weight: var(--fw-black) !important;
  letter-spacing: -0.035em !important;
}

.dc-footer-tagline {
  font-family: var(--font-main) !important;
  font-weight: var(--fw-light) !important;
}

.section-label,
.tips-label,
.feature-k,
.tip-card-k,
.study-card-k,
.signal-item strong,
.dc-footer-t,
.dc-footer-form-title {
  font-family: var(--font-main) !important;
  font-weight: var(--fw-bold) !important;
  letter-spacing: .12em;
}

.dc-btn,
.btn-card,
.btn-primary,
.btn-ghost,
.btn-submit,
.dc-header-cta,
.dc-mob-cta,
button {
  font-family: var(--font-main) !important;
  font-weight: var(--fw-bold) !important;
}

@media (max-width: 760px) {
  :root {
    --type-display-xl: clamp(40px, 12vw, 64px);
    --type-display-lg: clamp(32px, 10vw, 50px);
    --type-section: clamp(28px, 9vw, 44px);
    --type-card: clamp(19px, 6vw, 28px);
  }

  h1,
  .hero-title,
  .dc-hero-title,
  .wk-hero-title,
  .tips-title,
  .contact-title,
  .case-hero-title,
  .case-title,
  .ct-hero-title,
  .st-hero-title,
  .ab-archive-title {
    overflow-wrap: break-word;
  }

  .dc-btn,
  .btn-card,
  .btn-primary,
  .btn-ghost,
  .btn-submit {
  min-height: 44px;
  }
}

/* Global Brief entry: compact enough for the existing header, distinct enough
   to read as a protected client area rather than another public section. */
.dc-header .dc-links {
  gap: clamp(18px, 2.25vw, 32px);
}

.dc-header .dc-link.dc-brief-link {
  color: var(--dc-acid, var(--a, #c8ef4d));
  font-size: 0.92em;
}

.dc-header .dc-link.dc-brief-link:hover,
.dc-header .dc-link.dc-brief-link:focus-visible {
  color: var(--dc-white, var(--w, #fff));
}

.dc-mob-link.dc-brief-link {
  color: var(--dc-acid, var(--a, #c8ef4d));
}

/* The client Brief is a secondary header action on desktop. The menu keeps
   the same entry at compact breakpoints, avoiding duplicated navigation. */
.dc-header .dc-header-brief {
  min-height: 42px;
  min-width: 68px;
  padding: 0 14px;
  border: 1px solid var(--dc-acid, var(--a, #c8ef4d));
  background: var(--dc-acid, var(--a, #c8ef4d));
  color: var(--dc-black, var(--k, #0a0a0a));
  font-size: 12px;
  font-weight: var(--fw-extrabold);
  box-shadow: 0 0 16px color-mix(in srgb, var(--dc-acid, var(--a, #c8ef4d)) 18%, transparent);
}

.dc-header .dc-header-brief:hover,
.dc-header .dc-header-brief:focus-visible {
  border-color: var(--dc-violet, var(--v, #7552f7));
  background: var(--dc-violet, var(--v, #7552f7));
  color: var(--dc-white, var(--w, #fff));
  box-shadow: 0 0 20px color-mix(in srgb, var(--dc-violet, var(--v, #7552f7)) 30%, transparent);
}

/* Brief and Diagnostico share one compact action zone on desktop. */
.dc-header .dc-header-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.dc-header .dc-header-actions .dc-btn {
  margin: 0 !important;
}

/* Page-local ghost styles load later on a few public pages. Keep the client
   entry filled and legible without changing Diagnostico's violet hierarchy. */
.dc-header .dc-btn.dc-header-brief {
  border-color: var(--dc-acid, var(--a, #c8ef4d)) !important;
  background: var(--dc-acid, var(--a, #c8ef4d)) !important;
  color: var(--dc-black, var(--k, #0a0a0a)) !important;
  box-shadow: 0 0 16px color-mix(in srgb, var(--dc-acid, var(--a, #c8ef4d)) 18%, transparent) !important;
}

.dc-header .dc-btn.dc-header-brief:hover,
.dc-header .dc-btn.dc-header-brief:focus-visible {
  border-color: var(--dc-violet, var(--v, #7552f7)) !important;
  background: var(--dc-violet, var(--v, #7552f7)) !important;
  color: var(--dc-white, var(--w, #fff)) !important;
  box-shadow: 0 0 20px color-mix(in srgb, var(--dc-violet, var(--v, #7552f7)) 30%, transparent) !important;
}

@media (min-width: 1025px) {
  .dc-header .dc-links .dc-brief-link {
    display: none;
  }
}

@media (max-width: 1024px) {
  .dc-header .dc-header-actions {
    display: contents;
  }

  .dc-header .dc-header-brief {
    display: none !important;
  }
}

/* About / The Archive: Archivo containment fixes for oversized editorial titles. */
.ab-master-grid > *,
.ab-chapter-grid > *,
.ab-today-grid > * {
  min-width: 0;
}

.ab-master-title,
.ab-master-title.wide,
.ab-chapter-title,
.ab-timeline-title {
  max-width: min(100%, 12ch);
  overflow-wrap: anywhere;
}

#archive-today.ab-master-title,
#archive-today.ab-master-title.wide {
  font-size: clamp(38px, 4.25vw, 72px) !important;
  line-height: .88 !important;
  letter-spacing: -0.045em !important;
  max-width: 100% !important;
  overflow-wrap: anywhere;
  word-break: normal;
  contain: layout paint;
}

@media (min-width: 1180px) {
  .ab-today-grid {
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr) !important;
  }

  #archive-today.ab-master-title,
  #archive-today.ab-master-title.wide {
    font-size: clamp(34px, 3.9vw, 64px) !important;
  }
}

@media (max-width: 760px) {
  .ab-master-title,
  .ab-master-title.wide,
  .ab-chapter-title,
  .ab-timeline-title,
  #archive-today.ab-master-title,
  #archive-today.ab-master-title.wide {
    font-size: clamp(38px, 13vw, 62px) !important;
    line-height: .9 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 1180px) {
  .ab-master-title,
  .ab-master-title.wide,
  .ab-chapter-title,
  .ab-timeline-title,
  #archive-today.ab-master-title,
  #archive-today.ab-master-title.wide {
    font-size: clamp(40px, 8vw, 86px) !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
  }
}
